>>-cdr start replicate--+-------------------------+-------------> | (1) | '-| Connect Option |------' .------------------. V | >--repl_name----+--------------+-+------------------------------> '-server_group-' >--+-------------------------------------------------------------------+->< '- --syncdatasource=data_server--+--------------------------------+-' '- --extratargetrows=-+-delete-+-' +-keep---+ '-merge--'
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
data_server | The database server from which the data is copied to all other database servers listed | The database server must be defined in Enterprise Replication. | |
repl_name | Name of the replicate to start | The replicate must exist. | Long Identifiers |
server_group | Name of database server groups on which to start the replicate | The database server groups must be defined for Enterprise Replication. |
The following table describes the cdr start replicate options.
The cdr start replicate command causes the replicate to enter the active state (capture-send) on the specified database servers and the source database server specified by the --syncdatasource option. If no server is specified, the repl_name starts on all servers that are included in the replicate. A replicate can have both active and inactive participants. When at least one participant is active, the replicate is active. You cannot start replicates that have no participants.
If a replicate belongs to an exclusive replicate set, you cannot run cdr start replicate to start that individual replicate. You must use cdr start replicateset to start all replicates in the exclusive replicate set.
Because Enterprise Replication does not process log records that were produced before the cdr start replicate command was run, transactions that occur during this period might be partially replicated. To avoid problems, either issue the cdr start replicatecommand on an idle system (no transactions are occurring) or use the BEGIN WORK WITHOUT REPLICATION statement until after you successfully start the replicate.
The following command starts the replicate accounts on the server groups g_svr1 and g_svr2:
cdr sta rep accounts g_svr1 g_svr2