cdr enable server
The cdr enable server command enables replication on a replication server that was disabled by the cdr disable server command.
Syntax
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
server_group | Name of the database server to enable. | Must be the name of an existing database server group in SQLHOSTS. | Long Identifiers |
The following table describes the cdr enable server option.
Long Form | Short Form | Meaning |
---|---|---|
--hub | -h | Specifies that when replication on a hub server is enabled, replication on all its child servers is also enabled. |
Usage
Use the cdr enable server command when you are ready to restart replication on a disabled replication server. After you enable replication, you must synchronize the server with the rest of the replication domain. Before synchronization is complete, the replicates on the newly enabled replication server have the Pending Sync attribute. For replicates with the Pending Sync attribute, ATS and RIS files are not created if transactions are aborted on this server. You can see the Pending Sync attribute of a replicate in the OPTIONS field of the output of the cdr list replicate command.
Examples
The following command enables the disabled replication server, g_cdr1:cdr enable server -c g_cdr1 g_cdr1
The following command enables the disabled replication server, g_cdr1, and its child servers:
cdr enable server -c g_cdr1 --hub g_cdr1