>>-cdr change replicate--+-------------------------+------------> | (1) | '-| Connect Option |------' .-----------------------. V | >--+- --add--replicate----participant--modifier-+-+-------------> | .-------------. | | V | | '- --delete--replicate----participant-+--------' >--+---------------+------------------------------------------->< +- --verify-----+ '- --autocreate-'
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
modifier | Specifies the rows and columns to replicate | Participant Modifier | |
participant | Specifies the database server and table for replication | The participant must exist. | Participant |
replicate | Name of the replicate to change | The replicate must exist. | Long Identifiers |
The following table describes the options to cdr change replicate.
Use this command to add or delete a participant from a replicate. You can define a replicate that has zero or one participants, but to be useful, a replicate must have at least two participants. You cannot start and stop replicates that have no participants.
The following example adds two participants to the replicate named repl_1: db1@server1:antonio.table with the modifier select * from table1, and db2@server2:carlo.table2 with the modifier select * from table2:
cdr change repl -a repl_1 \ "db1@server1:antonio.table1" "select * from table1" \ "db2@server2:carlo.table2" "select * from table2"
The following example removes the same two participants from replicate repl_1:
cdr change repl -d repl_1 \ "db1@server1:antonio.table1" \ "db2@server2:carlo.table2"