ejemplo - sap sybase replication server setup

57
8/20/2019 Ejemplo - SAP Sybase Replication Server Setup http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 1/57 SAP/Sybase Replication Server Setup Ejaj Mansuri Best Viewed in Internet Explorer 10. Not supported IE8/9 Ejaj Mansuri Setting up Sybase replication server is some what involved activity. You have t o carefully execute tasks on different servers to get the setup complete and running. T his blog outlines steps involved to setup Sybase Replication Server and get start ed with basic Warm Standby Setup. There are many other configuration and designs which could be implement ed using replication server and are not covered or discussed here. Systems and Servers setup in this exercise: Sr. No Syst em T ype Host Serv er Name DB/RS Server Name Port Number Dat abase Name 1 Replication Server uxdbsrvRS01 T_RS 10000 n/a 2 (E)RSSD DB Server uxdbsrvRS01 T_ERSSD 10005 n/a 3 ASE DB Server uxdbsrvDB01 SYB01 7000 DB1 4 ASE DB Server uxdbsrvDB05 SYB05 8000 DB1 This exercise does not cover installing ASE (Adaptive Server Ent erprise) DB servers. This could be setup install as per standard Sybase ASE installation guidelines. This exercise does not cover traditional Replication Definition and Subscription based setup. This exercise does not cover Mult iSite Availability (MSA) setup. This exercise does not cover route based setup. This exercise covers Sybase Replication WARM STANDBY setup. Replication System:  -------------- -------------- -------------- | DB1 | | T_RS | | DB1 | | | | | | | | SYB01 |----->WSB(RA)----->| T_ERSSD |----->WSB(DSI)----->| SYB05 | | | Rep Agent | | | | | uxdbsrvDB01 | | uxdbsrvRS01 | | uxdbsrvDB05 |  -------------- -------------- --------------  Source/Active Replication Server Destination/Standby  Server Server  W A R M S T A N D B Y S E T U P In our exercise we will be using embedded RSSD(Replication Server System Database) in the replication setup. Advantages of using ERSSD: If using ERSSD (Embedded RSSD) database, it relieve you of deciding where RSSD will reside. RSSD is often hosted on its own ASE server or on the St andby ASE server, just so if Active site goes down and you have queued data, you will be able to drain it to St andby server. When stopping replication/RSSD server, if using ERSSD you do not have to maintain sequence of manually stopping RS before shutting down RSSD server. Rep Server takes care of this. When starting replication server, if using ERSSD you do not have to maintain sequence of manually start ing RSSD server before start ing replication server. Rep Server takes care of this.

Upload: gonzalo-molina

Post on 07-Aug-2018

270 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 1/57

SAP/Sybase Replication Server Setup

Ejaj Mansuri Best Viewed in Internet Explorer 10. Not supported IE8/9 Ejaj Mansuri

Sett ing up Sybase replication server is some what involved activ ity. You have t o carefully execute tasks on

different servers to get the setup complete and running. This blog outlines steps involved to setup Sybase

Replication Server and get start ed with basic Warm Standby Setup. There are many other configuration and

designs which could be implemented using replication server and are not covered or discussed here.

Systems and Servers setup in this exercise:

Sr. No Syst em T ype Host Serv er NameDB/RS Server

NamePort Number Dat abase Name

1Replication

Server uxdbsrvRS01 T_RS 10000 n/a

2 (E)RSSD DB Server uxdbsrvRS01 T_ERSSD 10005 n/a

3 ASE DB Server uxdbsrvDB01 SYB01 7000 DB1

4 ASE DB Server uxdbsrvDB05 SYB05 8000 DB1

This exercise does not cover installing ASE (Adapt ive Server Ent erprise) DB servers. This could be setup install

as per standard Sybase ASE installation guidelines.

This exercise does not cover traditional Replication Definition and Subscription based setup.

This exercise does not cover Mult iSite Av ailability (MSA) setup.

This exercise does not cover route based setup.

This exercise covers Sybase Replication WARM STANDBY setup.

Replication System:

-------------- -------------- --------------

| DB1 | | T_RS | | DB1 |

| | | | | |

| SYB01 |----->WSB(RA)----->| T_ERSSD |----->WSB(DSI)----->| SYB05 |

| | Rep Agent | | | |

| uxdbsrvDB01 | | uxdbsrvRS01 | | uxdbsrvDB05 |

-------------- -------------- --------------

Source/Active Replication Server Destination/Standby

Server Server

W A R M S T A N D B Y S E T U P

In our exercise we will be using embedded RSSD(Replication Server System Database) in the replicationsetup.

Advantages of using ERSSD:

If using ERSSD (Embedded RSSD) database, it relieve you of deciding where RSSD will reside. RSSD

is often hosted on its own ASE server or on the Standby ASE server, just so if Active site goes down

and you have queued data, you will be able to drain it to St andby server.

When stopping replication/RSSD server, if using ERSSD you do not have to maintain sequence of

manually stopping RS before shutting down RSSD server. Rep Server takes care of this.

When starting replication server, if using ERSSD you do not have to maintain sequence of manually

start ing RSSD server before start ing replication server. Rep Server takes care of this.

Page 2: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 2/57

HIGHLEVEL STEPS

------ -------------------------------------------- ------------------------------ ---------Task# Task Description Jump-To------ -------------------------------------------- ------------------------------ ---------1 Install Replication Server Binaries Check Out

2 Setup and Configure Sybase Replication Server : T_RS Check Out 2.1 Steps to install Rep Server Check Out

2.2 rs_init screen prints of installing Rep Server Check Out

3 Setup databae DB1 as Warm Standby database on the Replication System Check Out 3.1 Setup DB1 on SYB01 ASE DB server as ACTIVE database Check Out

3.1.1 Steps to Add DB1 as Active database Check Out 3.1.2 rs_init screen prints to Add DB1 as Active database[SYB01] Check Out

3.2 Setup DB1 on SYB05 ASE DB server as STANDBY database Check Out 3.2.1 Steps to Add DB1 as Standby database Check Out 3.2.2 rs_init screen prints to Add DB1 as Standby database[SYB05] Check Out

Install Replication Server Binaries

Sybase Replication Server binary Planning and installation

Replication Server Binary Setup Steps:

Step 1 Create the Unix account “Sybase” on Unix server uxdbsrvRS01. We will use the account “sybase” to setup

and install Replication Server

Step 2 Decide the binary installation location. In our test setup we will use /apps/sybase

Create the binary directory to install replication server at least 10Gb or 15Gb

As root run mkdir –p /apps/sybase

As root run chown sybase:dba /apps/sybase

Step 3 Create directory tmp_reppkg in /apps; Download the Sybase Replication Server Binary

Package

in /apps/tmp_reppkg

St ep 4 Unzip t he packagecd /apps/tmp_reppkg

gunzip -v <REPBinaryPackage.tgz>

St ep 5 Unt ar t he package

Page 3: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 3/57

cd /apps/tmp_reppkg

/usr/local/bin/tar xvf <REPBinaryPackage.tar>

NOTE: I f tar ball contains Long path file names, then native t ar might not support

If you see errors like tar: ././@LongLink - cannot create then install the GNU tar to extract the

package

GNU Tar: /usr/local/bin/tar

Step 6 tar will unload the package into tmp_reppkg, if you are using ebf specific release then you will see

ebf<number> subdirectory will the replication binary

ls -l /apps/tmp_reppkg

Step 7 Read the README.txt [ or <EBF<num>_>README.t xt ] to go through the installation

instructions

Step 8 After exploding tar, you should see setup.bin binary

Step 9 Ensure /tmp has enough free space on the Unix server

Step 10 Set the SYBASE environment variable to the location where you want t o install sybase binaries

export SYBASE=/apps/sybase

Step 11 Run the setup.bin file

cd /apps/tmp_reppkg/

./setup.bin

(Y ou can specify console option( -i console), but setup.bin automatically detects if GUI is set if not it

switches to console mode)

Follow the below guidelines when prompted as you navigate the setup screens:

Press Enter to cont inue when prompted "PRESS <ENTER> TO CONTINUE:"

For Inst all Folder, setup displays the install directory, press enter t o accept t he default as we have set

this in SYBASE env variable

For Install Set, select "FULL" for choose installation set (press 2 and enter)

For licesne Agreement, select the digit for your country(press 6 and press enter)

For Agreement for your country, type 'back' and press enter to go to end of agreement

For Accept ing agreement, press Y when prompted for [Y/N] and press enter

For License key, press 3, continue installation without a license key. You can install license later

For Notification, press N and enter

For Summary screen, review and press enter

For Ready to install Press Enter

As inst allat ion progress, it shows dash's "- - - - - - -"For Start Sample replication server, select NO

For installation complete, press Enter to quit

BINARY I NSTALLATION COMPLETED

Page 4: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 4/57

Setup and Configure Sybase Replication Server : T_RS

ASE Replication Server I nstallation / Configuration Setup

- With replication server setup, you need to specify the stable queue

location. Plan for this before you run rs_init.

- With replication server setup, if you are using ERSSD plan for the

ASA(Adaptive Server Anywhere) Datafile, Logfile, Log mirror, errorlog

locations. The defaults for this is under the Replication server Binary. For

the production setup this should be changed.

- If you plan to create RSSD database(instead of ERSSD) on ASE DB

server then plan for following parameters

o RSSD ASE Server

o RSDD Name

o RSDD DB Size

o Data Device Name

o Data Device

o Data Size

o Log Device Name

o Log Device

o Log Size

Steps to install Rep Server Preparation Steps (Storage/Partitions for Rep Server and RSSD database):

Step 1 Create the Stable queue location. Decide on how many partition you will end up creating on your

replication server and the size of each partition. Accordingly allocate space.

You expect v ery low latency and right ly tuned Replication system should have minimum latency. Thisdrives the decision t o have few stable queue partit ion with relatively smaller size.

e.g Three to Five (3-5) each of 1GB

However plan for the inevitable where the Standby system is down. Decide on how much data you

want to queue to avoid rebuilding or resync warm standby database. Weigh pros and cons of draining

data t o Standby and Resync Standby (Faster should win)

In our Test setup we will use one default part ition created during setup of size=50Mb .

Step 2 Create separate partition for ERSSD or ASE RSSD Data, Log, Mirror files.

Create separate partit ion for ERSSD or ASE backups.

In our setup we use the defaults locations, which are under the RepServer binary(Not recommended at all

on a production setup)

Pre rs_init Configurations:

Step 3 Setup Interfaces files entries on Repliation Server before sett ing up Rep Server;

Setup entry for REP SERVER: T_RS

Setup ent ry for RSSD or ERRSD server: T_ERSSD

On Replication Server uxdbsrvRS01, login as sybase(or sudo/su to sybase user). Go to /apps/Sybase or

$SYBASE and edit “interfaces” file to add entries like below:

$ cd $SYBASE

$ cat interfaces

# RS Server T_RS

T_RS

master tcp ether localhost 10000

master tcp ether uxdbsrvrs01 10000

Page 5: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 5/57

query tcp ether localhost 10000

# RSSD is embedded RSSD

T_ERSSD

master tcp ether localhost 10005

master tcp ether uxdbsrvrs01 10005

query tcp ether localhost 10005

Step 4 Launch rs_init

Source the Environment v ariables- cd $SYBASE

- . ./SYBASE.sh

Go to t he rs_init binary location

- cd $SYBASE/REP-15_5/install

- ls –l rs_init

Launch rs_init

- ./rs_init

rs_init Replicat ion Server Setup:

Step 5 SCREEN: RS_I NIT

- On first screen there are two options 1. Release Directory and 2. Configure Product

Release Directory /apps/sybase

Configure a Server Product

Option 1. Release Directory is already populated based on $SYBASE env variable

Replication Server Information: Release Directory

Verify the path is correct or enter 1 to update to the right path

Replication Server Information: Configure a Server product

- Enter 2 to "Configure a Server product"

This takes you to CONFIGURE SERVER PRODUCTS screen

Step 6 SCREEN: CONFIGURE SERVER PRODUCTS

- On this screen select opt ion 1 "1. Replication Server" to configure replication server

This takes you to CONFIGURE REPLICATI ON SYSTEM screen

Step 7 SCREEN: CONFIGURE REPLICATION SYSTEM

This rs_init screen has following options

1 Install a new Replication Server

2 Add a database to the replication system

3 Upgrade an existing Replication Server

4 Downgrade RSSD for an existing Replication Server

5 Upgrade an existing database in the replication system

6 Enable password encryption for a Replication Server

7 Alter a Replication Server configuration file password

- Select 1 and press enter

This takes you to NEW REPLICAT ION SERVER screen

Step 8 SCREEN: NEW REPLICATION SERVER

This lists the sections to be completed for rep server install

1 Replication Server Information Incomplete

2 ID Server Information Incomplete

Page 6: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 6/57

3 Replication Server System Database Incomplete

4 Disk Partition Incomplete

5 Remote Site Connections Incomplete

You will select all options one at a time and complete the sections (as below)

- Select 1 and press enter

This takes you to REPLICATION SERVER NAME screen

Step 9 SCREEN: REPLICATION SERVER NAME

1 Replication Server Name T_RS

-Select 1 and enter repserver name as T_RS

Press Ctrl+a to accept t he value

This takes you to REPLICATION SERVER INFORMATI ON screen

Step 10 SCREEN: REPLICATION SERVER INFORMATION

On this screen fill in the values as below:

Note: the bullets may slightly vary depending on platform and Rep Server version

1 Is this Replication Server the ID Server yes2 Replication Server error log /apps/sybase/REP-15_5/install/T_RS.log

3 Replication Server configuratino file /apps/sybase/REP-15_5/install/T_RS.cfg

4 Replication Server password encryption no

5 Replication Server character set iso_1

6 Replication Server language us_english

7 Replication Server sort order binary

8 Replication Server Interfaces Information Complete

9 Use SSL Serv ice: no

NOTE: If you select "yes" for Use SSL Service more options are presented as below:

SCREEN: REPLICAT ION SERVER INFORMATION - SSL Extension Solars only - enable network security? N/A in this setup

if yes, security system: N/A in this setup

if Yes, login name: N/A in this setup

if Yes, keytab file name: N/A in this setup

All platforms - Use secure Sockets Layer (SSL) security? N/A in this setup

If Yes, SSL identity file: N/A in this setup

if Yes, SSL private key password (default is password): N/A in this setup

NOTE: I f "8. Replication Server I nterface Information" is Incomplete rs_init has an option to add it. In my

experience it is best t o setup int erfaces file entries before LAUNCHING rs_init.

SCREEN: SERVER INTERFACES FILE ENTRY SCREEN

Just as F.Y.I

Below table can be used to identify the values

Hostname/address: uxdbsrvrs01

Port: 10000

Name alias: T_RS

Hostname/address: uxdbsrvrs01

Port: 10005

Name alias: T_ERSSD

Press Ctrl+a to accept the v alue

This takes you to NEW REPLICAT ION SERVER screen

Step 11 SCREEN: REPLICATION SERVER NAME

2 ID Server Information Complete

Page 7: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 7/57

- As you select "Is t his Replication Server the ID Server" = Yes in above screen this screen will show I D Server

information as Complete

On this screen Ent er 2 to review/change ID server information

This takes you to ID SERVER INFORMATION screen

Step 12 SCREEN: ID SERVER NAME

In our case T_RS is ID server as well, you can change default account info (in this setup we leave the defaultsas is).

1 ID Server name: T_RS

2 ID Server user: T_RS_id_user

3 ID Server password: T_RS_id_passwd

4 Starting Replication Server ID: N/A in this setup

5 Start ing database ID: N/A in this setup

Press Ctrl+a to accept the v alue

This takes you to NEW REPLICAT ION SERVER screen

Step 13 SCREEN: REPLICATION SERVER NAME

Now you should decide where RSSD catalog will be hosted

3 Replication Server System Database Incomplete

On this screen, Enter 3 to setup RSSD values

This takes you to REPLICATION SERVER SYSTEM DATABASE CHOICE screen

Step 14 SCREEN: REPLICATION SERVER SYSTEM DATABASE CHOICE

Below are the default values you see on this screen:

1 Do you want Replication Server System Database embedded no

2 Replication Server System Database on ASE Incomplete

Out Setup is going to use embedded RSSD [ERSSD]

On this screen enter 1 to change "no" to "yes" for ERSSD

Aft er you press 1, the screen content changes to:

1 Do you want Replication Server System Database embedded yes

2 Embedded Replication Server System Database Incomplete

On this screen enter 2

This takes you to EMBEDDED REPLICAT ION SERVER SYSTEM DATABASE screen

Step 15 SCREEN: REPLICATION/EMBEDDED SERVER SYSTEM DATABASE CHOICE

Will RSSD be embedded?(default is no) YES

Below are different options presented in this screen depending where RSSD is being hosted(on ASE DB server

or using Embedded RSSD Server)

Adapt ive Server Anywhere Embedded Replication Server System Database information (Complete if you

selected Yes for "Will RSSD be embedded")

1 Embedded RSSD name: T_ERSSD2 Embedded RSSD database file directory: /apps/sybase/REP-15_5/dbfile

3 Embedded RSSD transaction log directory: /apps/sybase/REP-15_5/translog

4 Embedded RSSD backup directory: /apps/sybase/REP-15_5/backup

5 Embedded RSSD error log directory: /apps/sybase/REP-15_5/errorlog

6 ERSSD Interfaces Information complete

Page 8: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 8/57

Adaptive Server Enterprise Replication Server System Database information (Complete if you selected No for

"Will RSSD be embedded?")

RSSD name: N/A in this setup

Will RSSD be replicated? N/A in this setup

Allow HA Failov er for RSSD connections? N/A in this setup

Create RSSD N/A in this setup

SA user N/A in this setup

SA password N/A in this setup

Primary User: N/A in this setup Primary password: N/A in this setup

Maintenance login: N/A in this setup

Maintenance Password: N/A in this setup

Adaptive Server Enterprise RSSD device information (Complete if you selected No for "Will RSSD be

embedded?")

Size of the RSSD database N/A in this setup

RSSD device name N/A in this setup

Create the RSSD device N/A in this setup

RSSD Device physical name N/A in this setup

RSSD device size N/A in this setup

Size of the RSSD log N/A in this setup

RSSD log device name N/A in this setup

Create the RSSD log device N/A in this setup

RSSD lgo device physical name N/A in this setup

RSSD log device size N/A in this setup

Aft er entering all values, Press Ctrl+a to accept t he value

This takes you back to REPLICAT ION SERVER SYSTEM DATABAE CHOICE screen

Step 16 SCREEN: REPLICATION SERVER SYSTEM DATABASE CHOICE

Below are the default values you see on this screen:1 Do you want Replication Server System Database embedded yes

2 Embedded Replication Server System Database Completed

Now you see the option 2 is complete

Aft er entering all values, Press Ctrl+a to accept t he value

This takes you back to NEW REPLICATION SERVER screen

Step 17 SCREEN: REPLICATION SERVER NAME

4 Disk Partition Incomplete

Now you should decide where stable queues will be created and its size;

On this screen, Enter 4 to setup initial stable queue values

This takes you to DISK PARTI TI ON INFORMATI ON screen

Step 18 SCREEN: DISK PARTITION INFORMATION

Enter the values as listed below:

1 Disk partition path /apps/sybase/queue/part01.dat

2 Logical identifier for disk partition: part01

3 Size of disk partition: 50

4 (v)Start value for partiton 0

*Note on Unix you have t o touch t he file e.g. touch part01.dat before it can be added to the replication

server

Aft er entering all values, Press Ctrl+a to accept t he value

Page 9: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 9/57

This takes you back to NEW REPLICATION SERVER screen

Step 19 SCREEN: REPLICATION SERVER NAME

5 Remote Si te Connect ions Complete

You can now review and change non-default RSI credentials

This exercise leaves them as default

On this screen, Enter 5 to setup initial stable queue values This takes you to REMOTE SIT E CONNECTIONS screen

Step 20 SCREEN: REMOTE SITE CONNECTIONS

This screen list default values as below:

1 Replciation Server login name: T_RS_rsi

2 Replication Server password: T_RS_rsi_ps

RSSD RepAgent information. (Complete if you selected Yes for "Will RSSD be replicated?" Not applicable in

our setup)

1 RepAgent name: N/A in this setup

2 RS User: N/A in this setup3 RS Password: N/A in this setup

Aft er entering all values, Press Ctrl+a to accept t he value

This takes you back to NEW REPLICATION SERVER screen

Step 21 SCREEN: NEW REPLICATION SERVER

The screen should lists "Complete" for all options

1 Replication Server Information Complete

2 ID Server Information Complete

3 Replication Server System Database Complete

4 Disk Partition Complete

5 Remote Site Connections Complete

- Verify all information is complete on t his screen

- Press Ctrl-a to accept

Once you accept, it prompts for

Execute the Replication Server tasks now? y

Press y and it will execute all t asks to install Replication Serer T_RS

rs-init will now execute all tasks. Watch the screen for any errors.rs_init completes successfully installing replication server and ERRSD server

Press Enter t o complete installation when prompted at the end.

To exit rs_init , press ctrl-x

rs_init STEPS COMPLETED

rs_init screen prints of installing Rep Server

Page 10: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 10/57

Below is screen prints of rs_init session initiated to Setup Replication server T_RS

RS_INIT SCREEN DUMP :

$ ./rs_init

The log file for this session is '/apps/sybase/REP-15_5/init /logs/log0130.001'.

RS_INIT

1. Release directory: /apps/sybase

2. Configure a Server product

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

CONFIGURE SERVER PRODUCTS

Products:

Product Date Inst alled Date Configured

1. Replication Server

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

CONFIGURE REPLICATION SYSTEM

1. Inst all a new Replication Server

2. Add a database to the replication system

3. Upgrade an existing Replication Server

Page 11: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 11/57

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an existing database in the replicat ion system

6. Enable password encryption for a Replication Server

7. Alt er a Replication Server configurat ion file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

NEW REPLICATION SERVER

1. Replication Server Information Incomplete

2. ID Server Information Incomplete

3. Replication Server System Database Incomplete

4. Disk Partit ion Incomplete

5. Remote Site Connections Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

REPLICAT ION SERVER NAME

1. Replication Server Name:

Page 12: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 12/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name for the Replicat ion Server:

T_RS

REPLICAT ION SERVER NAME

1. Replication Server Name: T _RS

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

REPLICAT ION SERVER INFORMATI ON

1. Is th is Replication Server the ID Server? no

2. Replication Server error log: /apps/sybase/REP-15_5/install/T_RS.log

3. Replication Server configurat ion file: /apps/sybase/REP-15_5/install/T_RS.cfg

4. Replication Server password encryption: no

5. Replication Server character set: iso_1

6. Replication Server language: us_english

7. Replication Server sort order: binary

8. Replication Server Interfaces Information Complete

9. Use SSL Service: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

REPLICAT ION SERVER INFORMATI ON

1. Is this Replication Server the ID Server? yes

2. Replication Server error log: /apps/sybase/REP-15_5/install/T_RS.log

3. Replication Server configurat ion file: /apps/sybase/REP-15_5/install/T_RS.cfg

Page 13: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 13/57

4. Replication Server password encryption: no

5. Replication Server character set: iso_1

6. Replication Server language: us_english

7. Replication Server sort order: binary

8. Replication Server Interfaces Information Complete

9. Use SSL Service: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

NEW REPLICATION SERVER

1. Replication Server Information Complete

2. ID Server Information Complete

3. Replication Server System Database Incomplete

4. Disk Partit ion Incomplete

5. Remote Site Connections Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

ID SERVER INFORMATI ON

1. I D Server User: T _RS_id_user

2. I D Server Password: T_RS_id_passwd

3. Start ing Replication Server ID:

4. Start ing Database ID:

Page 14: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 14/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

NEW REPLICATION SERVER

1. Replication Server Information Complete

2. ID Server Information Complete

3. Replication Server System Database Incomplete

4. Disk Partit ion Incomplete

5. Remote Site Connections Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

REPLICAT ION SERVER SYSTEM DATA BASE CHOICE

1. Do you want Replicat ion Server System Database embedded: no

2. Replication Server System Database on ASE Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

REPLICAT ION SERVER SYSTEM DATA BASE CHOICE

1. Do you want Replication Server System Database embedded: yes

2. Embedded Replication Server System Database Incomplete

Page 15: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 15/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

ERSSD NAME

1. ERSSD Name:

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name of the Embedded RSSD:

T_ERSSD

ERSSD NAME

1. ERSSD Name: T_ERSSD

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Page 16: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 16/57

Ent er the number of your choice and press return: <Ct rl+a>

EMBEDDED REPLICAT ION SERVER SYSTEM DATABASE

1. ERSSD database directory: /apps/sybase/REP-15_5/dbfile

2. ERSSD transact ion log directory: /apps/sybase/REP-15_5/t ranslog

3. ERSSD backup directory: /apps/sybase/REP-15_5/backup

4. ERSSD error log directory: /apps/sybase/REP-15_5/errorlog

5. ERSSD Int erfaces Information Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

REPLICAT ION SERVER SYSTEM DATA BASE CHOICE

1. Do you want Replication Server System Database embedded: yes

2. Embedded Replication Server System Database Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

NEW REPLICATION SERVER

1. Replication Server Information Complete

2. ID Server Information Complete

3. Replication Server System Database Complete

4. Disk Partit ion Incomplete

5. Remote Site Connections Complete

Page 17: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 17/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 4

DISK PARTITION INFORMATION

1. Disk Partit ion path:

2. Logical Identifier for Disk Part it ion:

3. Size of Disk Partit ion: 20

4. Vstart value for partit ion: 0

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Full path name of a disk partit ion for the Replicat ion Server:

/apps/sybase/queue/part01.dat

DISK PARTITION INFORMATION

1. Disk Part it ion path: /apps/sybase/queue/part01.dat

2. Logical Identifier for Disk Part it ion:

3. Size of Disk Partit ion: 204. Vstart value for partit ion: 0

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Page 18: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 18/57

Enter the number of your choice and press return: 2

Logical identifier name for the disk partition:

part01

DISK PARTITION INFORMATION

1. Disk Part it ion path: /apps/sybase/queue/part01.dat

2. Logical Ident ifier for Disk Partit ion: part01

3. Size of Disk Partit ion: 204. Vstart value for partit ion: 0

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

Size, in megabytes, of the disk partition:

50

DISK PARTITION INFORMATION

1. Disk Part it ion path: /apps/sybase/queue/part01.dat

2. Logical Ident ifier for Disk Partit ion: part01

3. Size of Disk Partit ion: 50

4. Vstart value for partit ion: 0

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

NEW REPLICATION SERVER

1. Replication Server Information Complete

2. ID Server Information Complete

3. Replication Server System Database Complete

Page 19: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 19/57

4. Disk Partit ion Complete

5. Remote Site Connections Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 5

REMOTE SITE CONNECTIONS

1. Replication Server Login Name: T_RS_rsi

2. Replication Server password: T_RS_rsi_ps

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

NEW REPLICATION SERVER

1. Replication Server Information Complete

2. ID Server Information Complete

3. Replication Server System Database Complete

4. Disk Partit ion Complete

5. Remote Site Connections Complete

Page 20: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 20/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:

Execute the Replication Server tasks now? Y

Running task: init ialize ERSSD.

Init ializing ERSSD

.SQL Anywhere Init ializat ion Ut ility Version 11.0.0.1264

..CHAR collat ion sequence: ISO1LAT IN1(CaseSensitiv ity=Respect)

CHAR character set encoding: ISO_8859-1:1987NCHAR collation sequence: UCA(CaseSensit ivity=UpperFirst;AccentSensitiv ity=Ignore;Punctuat ionSensitivit y=Primary)

NCHAR character set encoding: UTF-8

Creating system tables

.Creating system views

........Setting option values

...Database "/apps/sybase/REP-15_5/dbfile/T_ERSSD.db" created successfully

Done

Init ializing ERSSD

.SQL Anywhere Transaction Log Utility Version 11.0.0.1264

/apps/sybase/REP-15_5/dbfile/T_ERSSD.db was using log file "T_ERSSD.log"

/apps/sybase/REP-15_5/dbfile/T_ERSSD.db was using no log mirror file

/apps/sybase/REP-15_5/dbfile/T_ERSSD.db is now using log file "/apps/sybase/REP-15_5/translog/T_ERSSD.log"

/apps/sybase/REP-15_5/dbfile/T_ERSSD.db is now using log mirror file "/apps/sybase/REP-15_5/backup/T_ERSSD.mlg"

Transaction log start ing offset is 0000000000

Transaction log current relative offset is 0000446502

Done

Starting ERSSD

.Done

Task succeeded: init ialize ERSSD.

Running task: check the RSSD SQL Server.

Task succeeded: check the RSSD SQL Server.

Running task: configure the Embedded Replication Server System Database.

Loading script 'rs_init_asa.sql' into database 'T_ERSSD'.

...Done

Loaded script 'rs_init _asa.sql' successfully.

Loading script 'rs_install_systables_asa.sql' into database 'T_ERSSD'.

..Done

...Done

.................................................................Done

Loaded script 'rs_inst all_systables_asa.sql' successfully.

Loading script 'rsprocs_asa.sql' into database 'T_ERSSD'.

.............Done

Loaded script 'rsprocs_asa.sql' successfully.

Task succeeded: configure the Embedded Replication Server System Database.

Running t ask: create t he Replication Server configuration file.

Task succeeded: create the Replication Server configuration file.

Running t ask: create t he Replication Server runserver file.

Task succeeded: create the Replication Server runserver file.

Running task: start the Replication Server.

waiting for server 'T_RS' to boot...

Task succeeded: start the Replication Server.

Running t ask: configure the Replication Server.

Adding partition 'part01'.

Successfully added partition 'part01'.

Connecting to Replication Server and defining users for LTM/Replication Agent a

nd other Replication Servers.

Successfully defined users in Replication Server.

Task succeeded: configure the Replication Server.

Running task: load heterogeneous scripts to ERSSD...Done

...Done

.Done

Loaded script 'hds_udb_udds.sql' successfully.

.Done

Page 21: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 21/57

Loaded script 'hds_db2_udds.sql' successfully.

Done

Loaded script 'hds_oracle_udds.sql' successfully.

Done

Loaded script 'hds_msss_udds.sql' successfully.

.Done

Loaded script 'hds_udb_funcst rings.sql' successfully.

...Done

Loaded script 'hds_db2_funcst rings.sql' successfully.

.DoneLoaded script 'hds_oracle_funcstrings.sql' successfully.

.Done

Loaded script 'hds_msss_funcstrings.sql' successfully.

.Done

Loaded script 'hds_iq_funcstrings.sql' successfully.

Done

Loaded script 'hds_udb_errors.sql' successfully.

Done

Loaded script 'hds_db2_errors.sql' successfully.

.Done

Loaded script 'hds_oracle_errors.sql' successfully.

.Done

Loaded script 'hds_msss_errors.sql' successfully.

Done

Loaded script 'hds_iq_errors.sql' successfully.

..........Done

Loaded script 'rs_ase_to_db2.sql' successfully.

........Done

Loaded script 'rs_ase_to_udb.sql' successfully.

.............Done

Loaded script 'rs_ase_to_oracle.sql' successfully.

.....Done

Loaded script 'rs_ase_to_msss.sql' successfully.

Done

Loaded script 'rs_ase_to_sqlany.sql' successfully.

.......Done

Loaded script 'rs_ase_to_ase.sql' successfully.

........Done

Loaded script 'rs_ase_to_iq.sql' successfully.

.......Done

Loaded script 'rs_db2_to_msss.sql' successfully.

..............Done

Loaded script 'rs_db2_to_oracle.sql' successfully.

.........Done

Loaded script 'rs_db2_to_udb.sql' successfully.

...Done

Loaded script 'rs_db2_to_sqlany.sql' successfully.

.........Done

Loaded script 'rs_db2_to_ase.sql' successfully.

..............Done

Loaded script 'rs_oracle_to_db2.sql' successfully.

..............Done

Loaded script 'rs_oracle_to_udb.sql' successfully.

...........Done

Loaded script 'rs_oracle_to_msss.sql' successfully.

......Done

Loaded script 'rs_oracle_to_sqlany.sql' successfully.

............Done

Loaded script 'rs_oracle_to_ase.sql' successfully..........Done

Loaded script 'rs_msss_to_db2.sql' successfully.

............Done

Loaded script 'rs_msss_to_oracle.sql' successfully.

.......Done

Page 22: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 22/57

Loaded script 'rs_msss_to_udb.sql' successfully.

.Done

Loaded script 'rs_msss_to_sqlany.sql' successfully.

.......Done

Loaded script 'rs_msss_to_ase.sql' successfully.

....Done

Loaded script 'rs_udb_to_sqlany.sql' successfully.

............Done

Loaded script 'rs_udb_to_db2.sql' successfully.

.........DoneLoaded script 'rs_udb_to_msss.sql' successfully.

...............Done

Loaded script 'rs_udb_to_oracle.sql' successfully.

..........Done

Loaded script 'rs_udb_to_ase.sql' successfully.

............Done

Loaded script 'rs_sqlany_to_oracle.sql' successfully.

.......Done

Loaded script 'rs_sqlany_to_udb.sql' successfully.

.....Done

Loaded script 'rs_sqlany_to_msss.sql' successfully.

.........Done

Loaded script 'rs_sqlany_to_db2.sql' successfully.

.......Done

Loaded script 'rs_sqlany_to_ase.sql' successfully.

.........Done

Loaded script 'rs_db2_to_db2.sql' successfully.

............Done

Loaded script 'rs_oracle_to_oracle.sql' successfully.

.......Done

Loaded script 'rs_udb_to_udb.sql' successfully.

.....Done

Loaded script 'rs_msss_to_msss.sql' successfully.

.Done

Loaded script 'rs_sqlany_to_sqlany.sql' successfully.

.............Done

Loaded script 'rs_ase_to_oracle_ecda.sql' successfully.

..............Done

Loaded script 'rs_db2_to_oracle_ecda.sql' successfully.

............Done

Loaded script 'rs_msss_to_oracle_ecda.sql' successfully.

............Done

Loaded script 'rs_oracle_to_oracle_ecda.sql' successfully.

............Done

Loaded script 'rs_sqlany_to_oracle_ecda.sql' successfully.

...............Done

Loaded script 'rs_udb_to_oracle_ecda.sql' successfully.

..............Done

Loaded script 'rs_ase_to_oracle_eco.sql' successfully.

...............Done

Loaded script 'rs_db2_to_oracle_eco.sql' successfully.

.............Done

Loaded script 'rs_msss_to_oracle_eco.sql' successfully.

.............Done

Loaded script 'rs_oracle_to_oracle_eco.sql' successfully.

.............Done

Loaded script 'rs_sqlany_to_oracle_eco.sql' successfully.

................Done

Loaded script 'rs_udb_to_oracle_eco.sql' successfully.Task succeeded: load heterogeneous scripts to ERSSD.

Configurat ion completed successfully.

Press <return> to continue.

Page 23: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 23/57

CONFIGURE REPLICATION SYSTEM

1. Inst all a new Replication Server

2. Add a database to the replication system

3. Upgrade an existing Replication Server

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an existing database in the replicat ion system

6. Enable password encryption for a Replication Server

7. Alt er a Replication Server configurat ion file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: Ctrl+x

CONFIGURE SERVER PRODUCTS

Products:

Product Date Inst alled Date Configured

1. Replication Server Jan 30 2011 11:27

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: Ctrl-x

RS_INIT

1. Release directory: /apps/sybase

2. Configure a Server product

Page 24: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 24/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: Ctrl-x

Exiting.

The log file for this session is '/apps/sybase/REP-15_5/init /logs/log0130.001'.

Setup databae DB1 as Warm Standby database on the Replication System

Adding ACTIVE(Primary) Database to Replication Syystem

Exercise: Add DB1 database on SYB01 server to Replication system as Act ive

database

Setup DB1 on SYB01 ASE DB server as ACTIVE database

Note: We are using "sa" login to complete the setup. For simplicity we haveset "sa" password to "sa" for all servers (RepServer T_RS, ASE server ASE01 and

ASE Server ASE05)

Steps to Add DB1 as Active database

Prerequisite:

Step 1 Prerequisite: Sybase Replication Server is installed and setup

Before sett ing up Warm Standby setup Rep Server should be installed. In this setup we are using T_RS as

replication server created above.

Step 2 Prerequisite: Create Primary ASE database Server and all user databases

Sett ing up Warm Standby replication involves replicating data from one DB to another. In t his setup we use

ASE01 as source/primary DB server with one user database DB1. You can setup Ase server as normal(not part

of this exercise)

Step 3 Prerequisite: Create Standby ASE database server and all user databases

Sett ing up Warm Standby replication involves replicating data from one DB to another. In t his setup we use

ASE05 as destinat ion/standby DB server with one user database DB1. You can setup ASE server as normal

(not part of this exercise)

Step 4 Prerequisite: Ensure the logins are in sync between PRIMARY and STANDBY ASE servers

Login between ASE01 and ASE05 should be same including the suid's of the logins

You could create logins in same sequence or just re-sync the syslogins and sysloginroles tables. Be careful

Page 25: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 25/57

when playing with system tables and do it only if you know what you are doing!

Step 5 First we have to create logical connection, Identify following to be used in setup:

- Execute following cmd t o create logical connection

On T_RS Replication Server:

create logical connection to LDS.LDBDB1

1>

2> create logical connection to LDS.LDBDB1 Note:

3> go Step to be executed on

Logical connection to 'LDS.LDBDB1' is created. Replication Server: T_RS

1>

Step 6 Add entry for Primary ASE server to Replication Server interfaces file

Hostname/addresses: uxdbsrvdb01

Port: 7000

Name alias SYB01

Update t he interfaces file with SYB01 entry as below:

$ cat $SYBASE/interfaces

#

# --- These entries added by Sybase installer ---

# --- for the sample Replication Server ---

#

T_RS

master tcp ether localhost 10000

master tcp ether uxdbsrvrs01 10000 Note:

query tcp ether localhost 10000 Step is executed on Unix

# Server where T_RS Sybase Rep

T_ERSSD Server is running. Interfaces file

master tcp ether localhost 10005 for T_RS to be updated.

master tcp ether uxdbsrvrs01 10005

query tcp ether localhost 10005

SYB01

master tcp ether uxdbsrvdb01 7000

query tcp ether uxdbsrvdb01 7000

Step 7

Launch rs_init to add Primary Database to the replication system

cd $SYBASE/REP-15_5/install

./rs_init

rs_init ADD PRIMARY DB STEPS:

St ep 8 SCREEN: RS_I NI T

- On first screen there are two options 1. Release Directory and 2. Configure Product

Release Directory /apps/Sybase

Configure a Server Product

Option 1. Release Directory is already populated based on $SYBASE env variable

Replication Server Information: Release Directory

Verify the path is correct or enter 1 to update to the right path

Page 26: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 26/57

Replication Server Informat ion: Configure a Server product

- Enter 2 to "Configure a Server product"

This takes you to CONFIGURE SERVER PRODUCTS screen

Step 9 SCREEN: CONFIGURE SERVER PRODUCTS

- On this screen select opt ion 1 "1. Replication Server" to configure replication server

This takes you to CONFIGURE REPLICATI ON SYSTEM screen

Step 10 SCREEN: CONFIGURE REPLICATION SYSTEM

This rs_init screen has following options

1 Install a new Replication Server

2 Add a database to the replication system

3 Upgrade an existing Replication Server

4 Downgrade RSSD for an existing Replication Server

5 Upgrade an existing database in the replication system

6 Enable password encryption for a Replication Server

7 Alter a Replication Server configuration file password

- Select 2 and press enter

This takes you to ADD DATA BASE TO REPLICAT ION SYSTEM screen

Step 11 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

1 Replication Server Information Incomplete

2 Database Informat ion Incomplete

- On this screen select 1 for "1. Replication Server Information" and update as below

1. Replication Server Information

1 Repl icat ion Server Name: T_RS

2 RS SA user: sa

3 RS SA Passw ord: sa

After completing "Replication Server Information", you will come back to "ADD DAT ABASE TO REPLICATION

SYSTEM" screen

- On this screen select 2 for "2. Database Informat ion" and update as below

2. Database Information

1 SQL Server (Adaptive Server) name: SYB01

2 SA User sa

3 SA Password sa

4 Database Name DB1

5 Wil l the database be replicated yes6 Maintenance user DB1_maint

7 maintenance password DB1_maint_ps

8 Is this a physical connection for an existing logical connection? yes

When you select "yes" for 8 opt ions 9 "Logical DB Setup" is displayed

9 Logical DB Setup Incomplete

- On this screen select 9 for "9. Logical DB Setup"

This takes you to LOGICAL CONNECTION INFORMATION screen

Step 12 SCREEN: LOGICAL CONNECTION INFORMATION

(Complete if you selected yes for "is this a physical connection for an exist ing logical connection?")

Screen lists following as default as it first shows:

Page 27: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 27/57

1 Is this an active connection or a standby connection? active

2 Logical DS name

3 Logical DB name

Set the values as below:

1 Is this an active connection or a standby connection? active

2 Logical DS name LDS

3 Logical DB name LDBDB1

- Complete and press Ctrl-a to accept all values

This takes you to DATABASE INFORMATION screen

Step 13 SCREEN: DATABASE INFORMATION

- Verify all information in "DATA BASE INFORMATION" Screen is complete

- Press Ctrl-a to accept

This takes you to ADD DATA BASE TO REPLICAT ION SYSTEM screen

Step 14 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

Screen will show like:1 Replication Server Information Complete

2 Database Informat ion Complete

3 Database Replication Agent Complete

- Verify all information on "ADD DATABASE TO REPLICATION SYSTEM" is Complete

Note: default information for Dat abase Replication A gent is populated

- Select options 3 to set Replication Agent information ( if you want to change defaults)

This takes you to DATABASE REPLICAT ION AGENT OR LTM screen

Step 15 SCREEN: DATABASE REPLICATION AGENT OR LTM

Enter the Rep agent credentials1 RS User T_RS_ra

2 RS Password T_RS_ra_ps

You can select appropriate opt ions if you want to change to use non-default values

- When done, Press Ctrl-a to accept and return to parent screen

This takes you to ADD DATA BASE TO REPLICAT ION SYSTEM screen

Step 16 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

- Verify all information is complete on t his screen

- Press Ctrl-a to accept

Once you accept, it prompts for

Execute the Replication Server tasks now?

Press y and it will execute all tasks to add Active database to replication system

rs_init STEPS COMPLETED

Step 17 Login to replication server T_RS and verify no threads are down

On T_RS Replication Server:

1> admin who_is_down

2> go Note:

Spid Name State Info Step is executed on Sybase

---- ---------- -------------------- ------------- Replication Server T_RS

1>

Page 28: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 28/57

*After Active DB is added no RS thread should be down including rep_agent

Step 18 Check the repagent on Primary ASE server and verify rep_agent

On SYB01 Sybase DB server:

1> sp_config_rep_agent DB1, 'send warm standby xacts'

2> go

Parameter_Name Default_Value Config_Value Run_Value Note:

----------------------- ------------- ------------ --------- Step is executed on Sybase

send warm standby xacts false true true Primary DB Server ASE01

(1 row affected)(return status = 0)

Step 19 Set the Replication to Standby status to ALL

*Applies to Warm Standby Setup

On SYB01 Sybase DB server:

1> use DB1

2> go

1> sp_reptostandby DB1

2> go

The replication status for database 'DB1' is 'NONE'.

The replication mode for database 'DB1' is 'off'.(return status = 0)

1> Note:

2> sp_reptostandby DB1, "ALL" Step is executed on Sybase

3> go Primary DB Server ASE01

The replication status for database 'DB1' has been set to 'ALL'.

(return status = 0)

1>

2> sp_reptostandby DB1

3> go

The replication status for database 'DB1' is 'ALL'.

The replication mode for database 'DB1' is 'off'.

(return status = 0)

1>

rs_init screen prints to Add DB1 as Active database[SYB01]

Below is screen print s of rs_init session init iated to add Act ive database DB1 on SYB01 server to replication system

RS_INIT SCREEN DUMP :

$ ./rs_init

The log file for this session is '/apps/sybase/REP-15_5/init /logs/log0131.001'.

RS_INIT

1. Release directory: /apps/sybase

2. Configure a Server product

Page 29: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 29/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

CONFIGURE SERVER PRODUCTS

Products:

Product Date Inst alled Date Configured

1. Replication Server Jan 30 2011 11:27

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

CONFIGURE REPLICAT ION SYSTEM

1. Install a new Replication Server

2. Add a database to the replication system

3. Upgrade an exist ing Replication Server

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an exist ing database in the replication system

6. Enable password encrypt ion for a Replication Server

7. Alt er a Replicat ion Server configuration file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

ADD DATABASE TO REPLICAT ION SYSTEM

Page 30: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 30/57

1. Replication Server Information Incomplete

2. Database Information Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

REPLICAT ION SERVER NAME

1. Replication Server Name:

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name for the Replication Server:

T_RS

REPLICAT ION SERVER NAME

1. Replication Server Name: T _RS

Page 31: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 31/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

REPLICAT ION SERVER INFORMATION

1. RS SA user: sa

2. RS SA password:

3. Replication Server Int erfaces Information Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

Enter the SA password for this Replicat ion Server:

sa

REPLICAT ION SERVER INFORMATION

1. RS SA user: sa

2. RS SA password: sa

3. Replication Server Int erfaces Information Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

Page 32: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 32/57

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

DATABASE I NFORMATION

1. SQL Server name:

2. SA user: sa

3. SA password:

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:

7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name of the SQL Server:

SYB01

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password:

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:

7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Page 33: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 33/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

Enter the SA password for this SQL Server:

sa

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password: sa

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:

7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 4

Enter the name of the database:

DB1

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password: sa4. Database name: DB1

5. Will the database be replicated: no

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Page 34: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 34/57

Enter the number of your choice and press return: 5

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password: sa

4. Database name: DB1

5. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 8

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password: sa

4. Database name: DB15. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: yes

9. Logical DB Setup Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 9

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: active

2. Logical DS Name:

3. Logical DB Name:

Page 35: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 35/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

Logical DS Name:

LDS

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: active

2. Logical DS Name: LDS

3. Logical DB Name:

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

Logical DB Name:

LDBDB1

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: active

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

Page 36: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 36/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

DATABASE I NFORMATION

1. SQL Server name: SY B01

2. SA user: sa

3. SA password: sa4. Database name: DB1

5. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: yes

9. Logical DB Setup Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Complete

3. Database Replication Agent Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

DATABASE REPLICATI ON AGENT OR LTM

1. RS user: T_RS_ra

2. RS password: T_RS_ra_ps

Page 37: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 37/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Complete

3. Database Replication Agent Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:

Execute the Replication Server tasks now? Y

Running task: check the SQL Server.

Task succeeded: check the SQL Server.

Running t ask: verify users and t heir passwords.

Verified that 'T_RS_ra' can log into Replication Server 'T_RS'.

Verified that 'sa' can log into Replication Server 'T_RS'.Task succeeded: verify users and their passwords.

Running task: check the database.

Verified that database 'DB1' exists.

Verified that SQL Server 'SYB01' supports replication.

Added maintenance user login 'DB1_maint' to database 'DB1'.

Verified that maintenance user 'DB1_maint' can log into SQL Server 'SYB01'.

Task succeeded: check the database.

Running t ask: configure database for primary data.

Loading script 'rs_install_primary.sql' into database 'DB1'.

...Done

Loaded script 'rs_inst all_primary.sql' successfully.

Granting permissions on the lastcommit functions and rs_marker.Granting permissions on t he lastcommit functions.

SQL Server message: msg 17962, level 16, state 1

WARNING: "The replication status for 'rs_lastcommit ' is already set t o false. R

eplication status for 'rs_lastcommit' does not change."

Page 38: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 38/57

Press <return> to continue.

Granted maintenance user permissions on the lastcommit functions and rs_marker.

Granted replication role to maintenance user

Task succeeded: configure database for primary data.

Running task: configure the Replication Agent.

Task succeeded: configure the Replication Agent.

Running task: set connection to the database.

Adding dat abase 'DB1' to t he replication system.

Successfully executed 'create connect ion'. Database 'DB1' is now managed by Replication Server 'T_RS'.

Task succeeded: set connection to the database.

Running task: start t he Replication Agent .

Task succeeded: start the Replication Agent .

Configurat ion completed successfully.

Press <return> to continue.

CONFIGURE REPLICAT ION SYSTEM

1. Install a new Replication Server 2. Add a database to the replication system

3. Upgrade an exist ing Replication Server

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an exist ing database in the replication system

6. Enable password encrypt ion for a Replication Server

7. Alt er a Replicat ion Server configuration file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

<Ctrl+x>

Setup DB1 on SYB05 ASE DB server as STANDBY database

Adding STANDBY(replicate) Database to Replication System

Exercise: Add DB1 database on SYB05 ASE server to Replication system as St andby database

Steps to Add DB1 as Standby database

ADD STANDBY DB TO REPLICATI ON SYSTEM:

Step 1 Create the maintenance user LOGIN on Standby server SYB05

On SYB05 Sybase DB Server:

Page 39: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 39/57

1> sp_addlogin DB1_maint, DB1_maint_ps

2> go

Password correctly set. Note:

Account unlocked. Step is executed on Standby ASE

New login created. Database Server SYB05

(return status = 0)

1>

2>

Step 2 Update Replication Server interfaces file with standby server entry

Hostname/addresses: uxdbsrvdb02

Port: 8000

Name alias SYB05

Add the above Standby ASE server ASE05 entry in interfaces file

$ cat $SYBASE/interfaces

#

# --- These entries added by Sybase installer ---

# --- for the sample Replication Server ---

#

T_RS

master tcp ether localhost 10000master tcp ether uxdbsrvrs01 10000 Note:

query tcp ether localhost 10000 Step is executed on Unix Server

# T_RS Sybase Replication server

T_ERSSD Interfaces file for T_RS is to be

master tcp ether localhost 10005 updated

master tcp ether uxdbsrvrs01 10005

query tcp ether localhost 10005

SYB01

master tcp ether uxdbsrvdb01 7000

query tcp ether uxdbsrvdb01 7000

SYB05

master tcp ether uxdbsrvdb02 8000 query tcp ether uxdbsrvdb02 8000

Step 3

Launch rs_init t o add Standby Database to t he replication system

cd $SYBASE/REP-15_5/install

./rs_init

rs_init ADD STANDBY DB STEPS:

Step 4 SCREEN: RS_INIT

- On first screen there are two options 1. Release Directory and 2. Configure Product

Release Directory /apps/Sybase

Configure a Server Product

Option 1. Release Directory is already populated based on $SYBASE env variable

Replication Server Information: Release Directory

Verify the path is correct or enter 1 to update to the right path

Replication Server Information: Configure a Server product

- Enter 2 to "Configure a Server product"

Page 40: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 40/57

This takes you to CONFIGURE SERVER PRODUCTS screen

Step 5 SCREEN: CONFIGURE SERVER PRODUCTS

- On this screen select option 1 "1. Replication Server" to configure replication server

This takes you to CONFIGURE REPLICATI ON SYSTEM screen

Step 6 SCREEN: CONFIGURE REPLICATION SYSTEM

This rs_init screen has following options

1 Install a new Replication Server

2 Add a database to the replication system

3 Upgrade an existing Replication Server

4 Downgrade RSSD for an existing Replication Server

5 Upgrade an existing database in the replication system

6 Enable password encryption for a Replication Server

7 Alter a Replication Server configuration file password

- Select 2 and press enter

This takes you to ADD DATABASE TO REPLICAT ION SYSTEM screen

Step 7 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

1 Replication Server Information Incomplete

2 Database Informat ion Incomplete

- On this screen select 1 for "1. Replication Server Informat ion" and update as below

1. Replication Server Information

1 Repl icat ion Server Name: T_RS

2 RS SA user: sa

3 RS SA Passw ord: sa

Aft er complet ing "Replication Server Information", you will come back to "ADD DA TABASE TO REPLICAT ION

SYSTEM" screen

- On this screen select 2 for "2. Database Informat ion" and update as below

2. Database Information

1 SQL Server (Adaptive Server) name: SYB05

2 SA User Sa

3 SA Password Sa

4 Database Name DB1

5 Wil l the database be replicated yes

6 Maintenance user DB1_maint

7 maintenance password DB1_maint_ps8 Is this a physical connection for an existing logical connection? yes

When you select "yes" for 8 opt ions 9 "Logical DB Setup" is displayed

9 Logical DB Setup Incomplete

- On this screen select 9 for "9. Logical DB Setup"

This takes you to LOGICAL CONNECTION INFORMATI ON screen

Step 8 SCREEN: LOGICAL CONNECTION INFORMATION

(Complete if you selected yes for "is this a physical connect ion for an exist ing logical connection?")

Screen lists following as default as it first shows:

1 Is this an active connection or a standby connection? active

2 Logical DS name

3 Logical DB name

Page 41: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 41/57

- Select 1 to change the connect ion to standby database

As soon as you select 1 and enter "Standby" the SCREEN expands with other standby db options

Populate the screen as below:

1 Is this an Active Connection or Standby Connection: standby standby

2 Logical DS Name: LDS

3 Logical DB Name: LDBDB1

4 Active DS name : SYB01

5 Active DB name : DB1

6 Act ive DB sa user : sa sa

7 Act ive DB sa password : sa8 Initialize standby using dump and load : yes yes

9 Use Dump Marker to Start Replicating to Standby: no yes

- select 1 .. 9 and update the values as shown above

- press Ctrl+a to accept

This takes you to DATABASE INFORMATI ON screen

Step 9 SCREEN: DATABASE INFORMATION

- Verify all information in "DATABASE INFORMATI ON" Screen is complete - Press Ctrl-a to accep

This takes you to ADD DATABASE TO REPLICAT ION SYSTEM screen

Step 10 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

Screen will show like:

1 Replication Server Information Complete

2 Database Informat ion Complete

3 Database Replication Agent Complete

- Verify all information on "ADD DAT ABASE TO REPLICAT ION SYSTEM" is Complete

Note: default information for Database Replication Agent is populated

- Select opt ions 3 to set Replication Agent information ( if you want to change defaults)

This takes you to DATABASE REPLICAT ION AGENT OR LTM screen

Step 11 SCREEN: DATABASE REPLICATION AGENT OR LTM

Enter the Rep agent credent ials

1 RS User T_RS_ra

2 RS Password T_RS_ra_ps

You can select appropriate options if you want to change to use non-default v alues

- Press Ctrl-a to accept and return to parent screen

This takes you to ADD DATABASE TO REPLICAT ION SYSTEM screen

Step 12 SCREEN: ADD DATABASE TO REPLICATION SYSTEM

- Verify all information is complete on t his screen

- Press Ctrl-a to accept

Once you accept, it prompts for

Execute the Replication Server tasks now? y

Press y and it will execute all tasks to add Standby database to replication system

Page 42: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 42/57

rs_init STEPS COMPLETED

Step 13 Verify the replication threads. The DSI for DB1 for SYB05 should be down

On T_RS Replication Server:

1> admin who_is_down

2> go

Spid Name State Info Note:

---- ---------- -------------------- ------------------- Step is executed on Sybase

DSI EXEC Suspended 104(1) SYB05.DB1 Replication Server T_RS

DSI Suspended 104 SYB05.DB1

1>

*this is expected and OK

Step 14 Re-Verify if replication to standby is enabled on the PROD server

On SYB01 Sybase DB Server:

1> use DB1

2> go

1> sp_reptostandby DB1 Note:

2> go Step is executed on Sybase ASEThe replication status for database 'DB1' is 'ALL'. Database Server SYB01

The replication mode for database 'DB1' is 'off'. ACTIVE DB SERVER

(return status = 0)

1>

Step 15 Make maintenance user a dbo on Primary SYB01 server

On SYB01 Sybase DB Server:

1>

2> use DB1

3> go

1> sp_helpuser 2> go

Users_name ID_in_db Group_name Login_name

---------- -------- ---------- ----------

DB1_maint 5 public DB1_maint

dbo 1 public sa Note:

(return status = 0) Step is executed on Sybase ASE

1> Database Server SYB01

2> set replication off ACTIVE DB SERVER

3> go

1>

2> sp_dropuser DB1_maint

3> go

User has been dropped from current database.

(return status = 0)

1>

2> sp_helpuser

3> go

Users_name ID_in_db Group_name Login_name

---------- -------- ---------- ----------

dbo 1 public sa

(return status = 0)

1>

2> sp_addalias DB1_maint, dbo

3> go

Alias user added.

(return status = 0)

1>

2> sp_helpuser

3> go

Users_name ID_in_db Group_name Login_name

---------- -------- ---------- ----------

dbo 1 public sa

(return status = 0)

1>

2> sp_helpuser dbo

Page 43: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 43/57

3> go

Users_name ID_in_db Group_name Login_name

---------- -------- ---------- ----------

dbo 1 public sa

Users aliased to user.

Login_name

----------

DB1_maint

(return status = 0)

1>

2> set replication on

3> go

1>

2>

Step 16 Dump database DB1 on SYB01 server

On SYB01 Sybase DB Server:

1> dump database DB1 to "/sybdata/sybase_dump/DB1.dmp"

2> go

Backup Server: 4.171.1.1: The current value of 'reserved pages threshold' is 85%.

Backup Server: 4.171.1.2: The current value of 'allocated pages threshold' is 40%.

Backup Server: 4.171.1.5: The current value of 'parallel scan' is 2.

Backup Server session id i s: 131. Use this value when executing the 'sp_volchanged'system stored procedure after fulfilling any volume change request from the Backup

Server.

Backup Server: 4.41.1.1: Creat ing new di sk fi le /sybdata/sybase_dump/DB1.dmp. Note:

Backup Server: 6.28.1.1: Dumpfile name 'emdb1140310EE88' section number 1

mounted on disk file '/sybdata/sybase_dump/DB1.dmp' Step is executed on Sybase ASE

Backup Server: 4.188.1.1: Database DB1: 12056 kilobytes (6%) DUMPED. Database Serv er SYB01

Backup Server: 4.188.1.1: Database DB1: 54556 kilobytes (22%) DUMPED. ACTIVE DB SERVER

Backup Server: 4.188.1.1: Database DB1: 77812 k ilobytes (38%) DUMPED.

Backup Server: 4.188.1.1: Database DB1: 86926 k ilobytes (51%) DUMPED.

Backup Server: 4.188.1.1: Database DB1: 110090 k ilobytes (68%) DUMPED.

Backup Server: 4.188.1.1: Database DB1: 125438 k ilobytes (84%) DUMPED.

Backup Server: 4.188.1.1: Database DB1: 165940 kilobytes (100%) DUMPED.

Backup Server: 3.43.1.1: Dump phase number 1 completed.

Backup Server: 3.43.1.1: Dump phase number 2 completed.

Backup Server: 3.43.1.1: Dump phase number 3 completed.Backup Server: 4.188.1.1: Database DB1: 166206 kilobytes (100%) DUMPED.

Backup Server: 3.42.1.1: DUMP is complete (database DB1).

1>

Step 17 Copy the dump to Unix server where SYB05 Sybase server is running

On SYB05 Unix Server:

$ cd /sybdata/sybbase_dump

$

$ Note:

$: scp uxdbsrvdb01:/sybdata/sybase_dump/DB1.dmp . Step is executed on Unix Server Password: where SYB05 ASE Server is running

STANDBY DB UNIX SERVER

DB1.dmp 100% 162MB 4.9MB/s 7.9MB/s 00:33

$

$

Step 18 Restore the database DB1 on SYB05 server

On SYB05 Sybase server:

1>

2> load database DB1 from "/sybdata/sybase_dump/DB1.dmp"

3> go

Backup Server session id i s: 144. Use this value when executing the 'sp_volchanged'

system stored procedure after fulfilling any volume change request from the Backup

Server.

Backup Server: 6.28.1.1: Dumpfile name 'emdb1140310EE88' section number 1

mounted on disk file '/sybdata/sybase_dump/DB1.dmp'

Page 44: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 44/57

Backup Server: 4.188.1.1: Database DB1: 12804 k ilobytes (5%) LOADED.

Backup Server: 4.188.1.1: Database DB1: 55814 ki lobytes (21%) LOADED.

Backup Server: 4.188.1.1: Database DB1: 96266 ki lobytes (37%) LOADED.

Backup Server: 4.188.1.1: Database DB1: 129036 kilobytes (50%) LOADED. Note:

Backup Server: 4.188.1.1: Database DB1: 171534 ki lobytes (67%) LOADED. Step is executed on Sybase ASE

Backup Server: 4.188.1.1: Database DB1: 214286 ki lobytes (83%) LOADED. Database Server SYB05

Backup Server: 4.188.1.1: Database DB1: 255760 ki lobytes (99%) LOADED. STANDBY DB SERVER

Backup Server: 4.188.1.1: Database DB1: 256018 kilobytes (100%) LOADED.

Backup Server: 4.188.1.1: Database DB1: 256026 kilobytes (100%) LOADED.

Backup Server: 3.42.1.1: LOAD is complete (database DB1).

Started estimating recovery log boundaries for database 'DB1'.

Database 'DB1', checkpoint=(101059, 10), first=(101059, 10), last=(101059, 10).

Completed estimating recovery log boundaries for database 'DB1'.

Started ANALYSIS pass for database 'DB1'.

Completed ANALYSIS pass for database 'DB1'.

Started REDO pass for database 'DB1'. The total number of log records to process is 1.

Completed REDO pass for database 'DB1'.

Use the ONLINE DATABASE command to bring this database online; ASE will not bring

it online automatically.

1>

2>

3> online database DB1

4> go

Started estimating recovery log boundaries for database 'DB1'.

Database 'DB1', checkpoint=(101059, 10), first=(101059, 10), last=(101059, 10).

Completed estimating recovery log boundaries for database 'DB1'.

Started ANALYSIS pass for database 'DB1'.

Completed ANALYSIS pass for database 'DB1'.

Recovery of database 'DB1' w ill undo incomplete nested t op actions.

Database 'DB1' is now online.

1>

2> use DB1

3> go

1>

2> checkpoint

3> go

1>

Step 19 Resume connection to SYB05.DB1 database

On T_RS Replication Server:

1>

2> admin who_is_down

3> go

Spid Name State Info

---- ---------- -------------------- --------------------

DSI EXEC Suspended 104(1) SYB05.DB1

DSI Suspended 104 SYB05.DB1 Note:

1> Step is executed on Sybase

2> resume connection to SYB05.DB1 Replication Server T_RS

3> go

Connection to 'SYB05.DB1' is resumed.

1>2> admin who_is_down

3> go

Spid Name State Info

---- ---------- -------------------- --------------------

1>

Step 20 Verify replication is working fine

On SYB01 Sybase Server:

-

Create table trep and insert 1 row in table- Verify the row is visible on the Standby server

1>

2> use DB1

3> go

1> Note:

Page 45: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 45/57

2> create table trep(c1 int, c2 datetime) Step is executed on Sybase ASE

3> go Database Server SYB01

1> insert into trep select 1, getdate() ACTIVE DB SERVER

2> go

(1 row affected)

1>

On SYB05 Sybase Server:

- Verify the row and the table are created on SYB05 DB1 database

1> Note:

2> use DB1 Step is executed on Sybase ASE

3> go Database Server SYB05

1> STANDBY DB SERVER

2> select * from trep

3> go

c1 c2

----------- --------------------------

1 Jan 31 2011 5:18PM

(1 row affected)

1>

2>

* Above we confirmed Warm Standby Replication Setup is working fine

rs_init screen prints to Add DB1 as Standby database[SYB05]Below is screen prints of rs_init session initiated to add Standby database DB1 on SYB05 server to replication system

RS_INIT SCREEN DUMP :

$ ./rs_init

The log file for this session is '/apps/sybase/REP-15_5/init /logs/log0131.002'.

RS_INIT

1. Release directory: /apps/sybase

2. Configure a Server product

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

CONFIGURE SERVER PRODUCTS

Products:

Page 46: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 46/57

Product Date Inst alled Date Configured

1. Replication Server Jan 31 2011 16:30

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

CONFIGURE REPLICAT ION SYSTEM

1. Install a new Replication Server

2. Add a database to the replication system

3. Upgrade an exist ing Replication Server

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an exist ing database in the replication system

6. Enable password encrypt ion for a Replication Server

7. Alt er a Replicat ion Server configuration file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Incomplete

2. Database Information Incomplete

Page 47: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 47/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

REPLICAT ION SERVER NAME

1. Replication Server Name:

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name for the Replication Server:

T_RS

REPLICAT ION SERVER NAME

1. Replication Server Name: T _RS

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

REPLICAT ION SERVER INFORMATION

1. RS SA user: sa

Page 48: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 48/57

2. RS SA password:

3. Replication Server Int erfaces Information Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

Enter the SA password for this Replicat ion Server:

sa

REPLICAT ION SERVER INFORMATION

1. RS SA user: sa

2. RS SA password: sa

3. Replication Server Int erfaces Information Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Incomplete

Page 49: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 49/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

DATABASE I NFORMATION

1. SQL Server name:

2. SA user: sa

3. SA password:

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:

7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Enter the name of the SQL Server:

SYB05

DATABASE I NFORMATION

1. SQL Server name: SY B05

2. SA user: sa

3. SA password:

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

Enter the SA password for this SQL Server:

sa

Page 50: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 50/57

DATABASE I NFORMATION

1. SQL Server name: SY B05

2. SA user: sa

3. SA password: sa

4. Database name:

5. Will the database be replicated: no

6. Maintenance user:

7. Maintenance password:

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 4

Enter the name of the database:

DB1

DATABASE I NFORMATION

1. SQL Server name: SY B05

2. SA user: sa

3. SA password: sa

4. Database name: DB15. Will the database be replicated: no

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 5

DATABASE I NFORMATION

1. SQL Server name: SY B05

2. SA user: sa

3. SA password: sa

4. Database name: DB1

5. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

Page 51: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 51/57

8. Is this a Physical Connect ion for Exist ing Logical Connection: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 8

DATABASE I NFORMATION

1. SQL Server name: SY B05

2. SA user: sa

3. SA password: sa

4. Database name: DB1

5. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: yes

9. Logical DB Setup Incomplete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 9

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: active

2. Logical DS Name:

3. Logical DB Name:

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 1

Page 52: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 52/57

Is t his an Act ive Connection or Standby Connect ion:

standby

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name:

3. Logical DB Name:

4. Act ive DS name :

5. Act ive DB name :6. Act ive DB sa user : sa

7. Act ive DB sa password :

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 2

Logical DS Name:

LDS

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name:

4. Act ive DS name :

5. Act ive DB name :

6. Act ive DB sa user : sa

7. Act ive DB sa password :

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

Logical DB Name:

LDBDB1

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

4. Act ive DS name :

5. Act ive DB name :

Page 53: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 53/57

6. Act ive DB sa user : sa

7. Act ive DB sa password :

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 4

Act ive DS name :

SYB01

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

4. Act ive DS name : SYB01

5. Act ive DB name :

6. Act ive DB sa user : sa

7. Act ive DB sa password :

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 5

Act ive DB name :

DB1

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

4. Act ive DS name : SYB01

5. Act ive DB name : DB1

6. Act ive DB sa user : sa

7. Act ive DB sa password :

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Page 54: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 54/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 7

Act ive DB sa password :

sa

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

4. Act ive DS name : SYB01

5. Act ive DB name : DB1

6. Act ive DB sa user : sa

7. Act ive DB sa password : sa

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: no

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 9

LOGICAL CONNECTION INFORMATION

1. Is this an Act ive Connection or Standby Connection: standby

2. Logical DS Name: LDS

3. Logical DB Name: LDBDB1

4. Act ive DS name : SYB01

5. Act ive DB name : DB1

6. Act ive DB sa user : sa

7. Act ive DB sa password : sa

8. Init ialize standby using dump and load : yes

9. Use Dump Marker to Start Replicating to Standby: yes

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

DATABASE I NFORMATION

1. SQL Server name: SY B05

Page 55: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 55/57

2. SA user: sa

3. SA password: sa

4. Database name: DB1

5. Will the database be replicated: yes

6. Maintenance user: DB1_maint

7. Maintenance password: DB1_maint_ps

8. Is this a Physical Connect ion for Exist ing Logical Connection: yes

9. Logical DB Setup Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Complete

3. Database Replication Agent Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return: 3

DATABASE REPLICATI ON AGENT OR LTM

1. RS user: T_RS_ra

2. RS password: T_RS_ra_ps

Page 56: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 56/57

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+a>

ADD DATABASE TO REPLICAT ION SYSTEM

1. Replication Server Information Complete

2. Database Information Complete

3. Database Replication Agent Complete

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Enter the number of your choice and press return:

Execute the Replication Server tasks now? Y

Running task: check the SQL Server.

Task succeeded: check the SQL Server.

Running t ask: verify users and t heir passwords.

Verified that 'T_RS_ra' can log into Replication Server 'T_RS'.

Verified that 'sa' can log into Replication Server 'T_RS'.

Task succeeded: verify users and their passwords.

Running task: check the database.

Verified that database 'DB1' exists.

Verified that SQL Server 'SYB01' supports replication.

Verified that the maintenance user 'DB1_maint' is defined in database 'DB1'.

Verified that maintenance user 'DB1_maint' can log into SQL Server 'SYB01'.

Verified that maintenance user 'DB1_maint' can log into SQL Server 'SYB05'.

Task succeeded: check the database.

Running t ask: configure database for primary data.Granted maintenance user permissions on the lastcommit functions and rs_marker.

WARNING: Please verify that suids in the syslogins table of the Standby SQL ser

ver correspond to syslogins of the Active SQL Server

Granted replication role to maintenance user

Task succeeded: configure database for primary data.

Running task: configure the Replication Agent.

Task succeeded: configure the Replication Agent.

Running task: set connection to the database.

Adding dat abase 'DB1' to t he replication system.

SQL Server message: msg 17962, level 16, state 1

WARNING: "The replication status for 'rs_lastcommit ' is already set t o false. R

eplication status for 'rs_lastcommit' does not change."

Press <return> to continue.

SQL Server message: msg 17962, level 16, state 1

Page 57: Ejemplo - SAP Sybase Replication Server Setup

8/20/2019 Ejemplo - SAP Sybase Replication Server Setup

http://slidepdf.com/reader/full/ejemplo-sap-sybase-replication-server-setup 57/57

WARNING: "The replication status for 'rs_update_lastcommit' is already set to t

rue. Replication status for 'rs_update_lastcommit' does not change."

Press <return> to continue.

Successfully executed 'create connect ion'. Database 'DB1' is now managed by Rep

lication Server 'T_RS'.

Task succeeded: set connection to the database.

Running task: start t he Replication Agent .

Task succeeded: start the Replication Agent .

Configurat ion completed successfully.Press <return> to continue.

CONFIGURE REPLICAT ION SYSTEM

1. Install a new Replication Server

2. Add a database to the replication system

3. Upgrade an exist ing Replication Server

4. Downgrade RSSD for an existing Replication Server

5. Upgrade an exist ing database in the replication system

6. Enable password encrypt ion for a Replication Server

7. Alt er a Replicat ion Server configuration file password

Ctrl-a Accept and Continue, Ctrl-x Exit Screen, ? Help.

Ent er the number of your choice and press return: <Ct rl+x>