Preparing for Role Separation (UNIX)
You can use role separation to allow members of the DBSA group to run Enterprise Replication commands, in addition to the user informix. For some Enterprise Replication commands, you must grant the DBSA user additional permissions on tables or files. For non-root servers, role separation is not supported. Only the owner of a non-root server is allowed to run the Enterprise Replication commands that require additional permissions for a DBSA.
The DBSA user who runs Enterprise Replication commands must be a member of the DBSA group on all of the replication servers in the domain.
The following table describes the permissions that are needed for each command.
Command | Type of Permission | Tables, Files, or Database |
---|---|---|
cdr check replicate cdr check replicateset cdr define replicate cdr define replicateset cdr define template cdr realize template cdr sync replicate cdr sync replicateset |
INSERT UPDATE DELETE |
The tables that participate in replication. Must be granted on all replication servers in the domain. |
The following commands with the --background option:
|
CONNECT or INSERT, depending on the object | sysadmin database: CONNECT ph_task table in the sysadmin database: INSERT Must be granted on the database server from which the command is run. |
cdr define repair cdr start repair cdr stop repair cdr delete repair The following commands with the --syncdatasource option:
|
INSERT, UPDATE, or DELETE, depending on the table | The following syscdr tables:
Must be granted on all replication servers in the domain. |
cdr repair cdr view atsdir cdr view risdir |
read | ATS and RIS files Must be granted on the database server on which the files are located. |
To update the permissions on a table or database, use the GRANT statement. For example, the following statement grants INSERT and UPDATE permissions on the rsncjobdef_tab table to the DBSA member with the user name of carlo:
GRANT INSERT, UPDATE ON rsncjobdef_tab TO carlo;
For more information about the GRANT statement, see the HCL OneDB™ Guide to SQL: Syntax.
To update the permissions on ATS and RIS files, use an operating system command, such as the chown UNIX™ command.