cdr modify replicate
The cdr modify replicate command modifies replicate attributes.
Syntax
- 1 See Connect Option.
- 2 See ids_erp_300.html#ids_erp_300__sii-xaclu-31363.
- 3 See ids_erp_300.html#ids_erp_300__sii-xaclu-62103.
- 4 See Frequency Options.
- 5 See Special Options.
| Element | Purpose | Restrictions | Syntax |
|---|---|---|---|
| participant | Name of a participant in the replication. | The participant must be a member of the replicate. | Participant and participant modifier |
| replicate | Name of the replicate to modify. | The replicate name must exist. | Long Identifiers |
The following table describes the option to cdr modify replicate.
| Long Form | Short Form | Meaning |
|---|---|---|
| --name=n | -n n | Removes the name verification attribute from a master replicate. |
Special Options
| Long Form | Short Form | Meaning |
|---|---|---|
| --alwaysRepLOBS= | Specifies whether columns that contain unchanged large objects are included in replicated rows:
|
|
| --ats y or --ats n | -A y or -A n | Activates (y) or deactivates (n) aborted-transaction spooling for replicate transactions that fail to be applied to the target database. |
| --cascaderepl | None | Enables replication of data arriving through ER. With traditional ER, data
replicated by ER is not eligible for further replication. A cascade replicate, however, would also
pick up data modifications arriving through ER, or otherwise caused by ER, e.g. as a result of a
trigger action. Valid values are:
e.g. Consider ER set up on three servers A and B + C, table X being present on all of them. Replicate R1 is defined to replicate data modifications from A to B, and another replicate R2 is defined to replicate modifications from B to C. In a traditional ER setup, i.e. without
--cascaderepl option,
A cascade replicate created by adding --cascaderepl, would pick data arriving via ER also. To avoid circular replication, among the participants of a cascade replicate only one can be in sending mode (Primary or Send-Only). |
| --firetrigger y or --firetrigger n | -T y or -T n | Causes the rows that are inserted by the replicate to fire (y) or not fire (n) triggers at the destination. |
| --fullrow y or --fullrow n | -f y or -f n | Specifies to (y) replicate the full row and enable upserts or (n) replicate only changed columns and disable upserts. |
| --ignoredel= | -D | Specifies whether to retain deleted rows on
other nodes:
|
| --ris y or --ris n | -R y or -R n | Activates (y) or deactivates (n) row-information spooling for replicate row data that fails conflict resolution or encounters replication-order problems. |
| --serial | -s | Specifies that replicated transactions for the replicate are applied serially instead of in parallel. |
| --UTF8= | Specifies
whether to enable conversion to and from UTF-8 (Unicode) when you
replicate data between servers that use different code sets.
|
Usage
The cdr modify replicate command modifies the attributes of a replicate or of one or more participants in the replicate. You can also change the mode of a participant. If the command does not specify participants, the changes apply to all participants in the replicate.
To add or delete a participant, use the cdr change replicate command.
If you change the conflict resolution rule with cdr modify replicate, you must also specify the scope with the --scope option, even if you are not changing the scope.
- You cannot change the machine-independent decimal representation (--floatcanon) or IEEE floating point (--floatieee) formats.
- You cannot change the conflict resolution from ignore to a non-ignore
option (time stamp, SPL routine, or time stamp and SPL routine). You
cannot change a non-ignore conflict resolution option to ignore.
However, you can change from time stamp resolution to SPL routine resolution or from SPL routine resolution to time stamp.
- The --ats, --ris, --firetrigger, and --fullrow options require a yes (y) or no (n) argument.
When you run the cdr modify replicate command, an event alarm with a class ID of 63 is generated, if that event alarm is enabled.
You can run this command from within an SQL statement by using the SQL administration API.
Examples
cdr modify repl --every=300 smilecdr modify repl -a 01:00 smilecdr modify repl -a L.5:00 -A y -T n smilecdr mod repl smile R db1@server1:antonio.table1 \
P db2@server2:carlo.table2