Granting and revoking of privileges
The GRANT and REVOKE commands set up and revoke object and administrator privileges.
There are two kinds of
global objects: system wide and database specific. When
a transaction is issued against a primary's replicated database, its
effect
on the replica is to replicate, not to replicate (does not abort
but has no effect on the
replica), or to abort the transaction on the primary. Handling
of transactions depends on whether
the objects that are referred to are replicated, non-replicated, or
a mixture of both. The system
replicates only complete statements and only replicated objects. Therefore,
if the complete
statement contains both non-replicated and replicated objects, it aborts.
The following table describes the handling of GRANT and REVOKE
SQL statements on
replicated, non-replicated, and system databases:
| Database type | Replication of administrative privileges | Replication of object privileges |
|---|---|---|
| Replicated | Global and local objects are replicated. |
|
| Non-replicated |
|
|
| System | Replicated |
|