- Two replication servers are installed and started.
- All target databases must have the same columns and Primary key.
- No identity in the target table (or subscription that know to update identity column).
- The passwords to all RSs in the process should be the same.
- The RepAgent has to use a known servers names (in the ini files).
- Source and target tables must have a primary keys.
- Edit the ini file in the new server with:
- Current (new) RS.
- ASE instance of the RSSD.
- ASE instance of the replicatec(=target) database.
- First (=source) RS.
- Edit the ini of the first (=source) RS with:
- New RS.
- ASE instance of the source RSSD.
- Run rs_init:
- Two ways to do that:
- run rs_init
- create <SAP_RS_FOLSER>/REP-16_0/init/rs/RS2.rs (copied and edited from install.rs) and run it
- ./rs_init -r ../init/rs/RS2.rs
- In rs_init we define the servers, databases, RSSDs, users, etc.
- Two ways to do that:
- Check that RS is up:
- isql64 -S RSFOG2 -Usa -P<password>
- admin version
go - admin who
go
# |
RS1 (source
RS) |
RSSD
of RS1 (RS1_RSSD) |
RS2 (second
RS) |
Target
replicated database |
|
1 |
Create route |
alter
connection to SERVERNAME.RS1_RSSD set log transfer ON |
|
|
|
1.a |
Monitor the
new route until it became active |
|
1>
rs_helproute |
|
|
2 |
add
connection RS2 (second RS) → target database |
|
Use rs_init |
|
|
3 |
Configure
a rep_agent to the RSSD |
|
1> use
RS1_RSSD |
|
|
4 |
Grant
permissions in the target database |
|
|
|
1> grant
all on FirstTable to <target
database name>_maint |
5 |
create a
subscription to the replicate connection in the second RS |
|
|
1> create
subscription subTest3 for repdefTest with primary at
PRIMARYDBSERVERNAME.PRIMARYDB with replicate at TARGETDBSERVER.TARGETDBNAME
without materialization |
|
No comments:
Post a Comment