Performing a synchronization (dosynchronize) v7
The dosynchronize
command performs synchronization replication on the specified subscription for a single-master replication system or for an entire multi-master replication system.
Synopsis
For a multi-master replication system use:
-dosynchronize pubname -repsvrfile pubsvrfile -repgrouptype m
Note
For SMR only: You can use the dosynchronize
command on a subscription without first having to perform a snapshot using the dosnapshot
command. The dosynchronize
command automatically performs the first required snapshot.
Note
For MMR only: Be sure an initial snapshot replication was performed from the primary definition node to every other primary node in the multi-master replication system. If a newly added primary node didn't undergo an initial snapshot, any later synchronization replication might not apply the transactions to that primary node. You can take the initial snapshot when you add the primary node (see Creating more primary nodes or Adding a publication database). Alternatively, you can perform an on-demand snapshot (see Performing snapshot replication or Take a multi-master snapshot).
See Performing synchronization replication for more information on performing synchronization replication for a single-master replication system. See Performing synchronization replication for a multi-master replication system.
Parameters
subname
For SMR only: The name of the subscription for which to perform synchronization replication.
pubname
For MMR only: The name of the publication for which to perform synchronization replication.
subsvrfile
For SMR only: The file containing the subscription server login information.
pubsvrfile
For MMR only: The file containing the publication server login information.
-repgrouptype
Specify s
if this command applies to a single-master replication system. Specify m
if this command applies to a multi-master replication system. The default is s
.
Examples
This example performs synchronization replication on subscription dept_emp_sub
of a single-master replication system.
This example performs synchronization replication on publication emp_pub
of a multi-master replication system. The -repgrouptype m
parameter is required in this case.
- On this page
- Synopsis
- Parameters
- Examples