cdr enable grid
The cdr enable grid command authorizes users to run commands on the grid and designates servers from which grid commands can be run.
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 in the grid. | Must be the name of an existing database server group in SQLHOSTS. | Long Identifiers |
user_name | Name of the user. | Must have Connect privilege for databases on all the replication servers in the grid. | Long Identifiers |
The following table describes the cdr enable grid options.
Long Form | Short Form | Meaning |
---|---|---|
--grid= | -g | Specifies the grid for which to provide privileges. |
--node= | -n | Specifies the servers on which to provide privileges. |
--user= | -u | Specifies the users to provide privileges. |
Usage
Use the cdr enable grid command to control who can perform grid operations from which server in the grid. All the authorized users can run grid commands on all the authorized servers. The users must have Connect privilege for all databases on which they run grid routines on all the servers in the grid. You must authorize at least one user and one server to be able to run commands from the grid. User informix does not have permission to perform grid operations unless you include it in the user list.
Authorizing more than one server from which to run grid commands can lead to conflicts between grid commands.
After you initially enable a grid, you can add authorized users and servers by running the cdr enable grid command with the appropriate options.
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 authorizes the users bill and tom and the server gserv1 to run grid routines on the grid named grid1:
cdr enable grid --grid=grid1 --user=bill --user=tom --node=gserv1
The following example adds the user srini to the list of authorized users for the grid1 grid:
cdr enable grid --grid=grid1 --user=srini
The following example adds the server gserv2 to the list of authorized servers for the grid1 grid:
cdr enable grid --grid=grid1 --node=gserv2