cdr change grid
The cdr change grid command adds or deletes replication servers to or from a grid.
Syntax
Element | Purpose | Restrictions | Syntax |
---|---|---|---|
grid_name | Name of the grid. | Must be the name of an existing grid. | Long Identifiers |
server_group | Name of a database server group to add to, or remove from, the grid. | Must be the name of an existing database server group in SQLHOSTS. | Long Identifiers |
The following table describes the cdr change grid options.
Long Form | Short Form | Meaning |
---|---|---|
--add | -a | Add the specified replication servers to the grid. |
--delete | -d | Delete the specified replication servers from the grid. |
Usage
Use the cdr change grid command to add a new replication server to an existing grid or to remove a replication server from an existing grid.
Return codes
A return code of 0 indicates that the command was successful.
If the command is not successful, one of the following error codes is returned: 5, 220, 222.
For information on these error codes, see Return Codes for the cdr Utility.
Examples
The following example adds two servers to a grid named grid_1:
cdr change grid grid_1 --add gserv3 gserv4
The following example removes a server from a grid named grid_1:
cdr change grid grid_1 --delete gserv1