>>-cdr delete server--+-------------------------+---------------> | (1) | '-| Connect Option |------' >--server_group------------------------------------------------><
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
server_group | Name of database server group to remove from the global catalog | The database server group must be currently defined in Enterprise Replication. | Long Identifiers |
The cdr delete server command deletes the database server in server_group from the global catalog, removes the database server from all participating replicates, and purges all replication data from the send queues for the specified database server. The command shuts down Enterprise Replication on the database server and removes the global catalog from the database server.
When you delete an Enterprise Replication server, you must issue the cdr delete server command twice: once on the server being deleted and once on another server in the enterprise. The first cdr delete server removes the Enterprise Replication server from the local global catalog and removes the Enterprise Replication connection to other hosts. The second cdr delete server removes the Enterprise Replication server from the other replication servers in the system. For more information, see the Examples.
You can issue the cdr delete server command from any replication server. The only limitation is that you cannot delete a server with children. You must delete the children of a server before deleting the parent server.
You cannot delete a server from the enterprise if it is stopped. To delete a server with cdr delete server, you must issue a cdr start command first.
This example removes the server g_italy from the replication environment (assume that you issue the commands from the replication server g_usa):
cdr delete server -c usa g_italy cdr delete server -c italy g_italy
The first command performs the following actions:
The second command connects to server italy and removes Enterprise Replication from italy. That is, it removes the syscdr database and removes or stops other components of Enterprise Replication.
Figure 19 shows a replication environment with three replication servers, g_usa, g_italy, and g_japan.
To remove Enterprise Replication from this environment, issue the following commands from the computer where the usa replication server resides.
cdr delete server g_italy
This command removes connections between the italy replication server and all other servers in the replication system (usa and japan) and removes any queued data.
cdr delete server -c italy g_italy
This command removes all replication information (including the syscdr database) from the italy database server.
cdr delete server g_japan cdr delete server -c japan g_japan
These commands remove the japan replication server.
cdr delete server g_usa
This command removes the replication information from the usa replication server itself.