You can grant table-level and routine-level privileges to a role if you have the authority to grant these same privileges to login names or to PUBLIC. A role cannot hold database-level privileges.
In Dynamic Server, you can also grant type-level privileges to a role.
The syntax is more restricted for granting privileges to a role than to a user:
In this way, whoever has the role can revoke these same privileges. For more information, see AS grantor Clause.
A role cannot, in turn, grant the same access privileges to another user.
This example grants Insert privilege on the supplier table to the role payables:
GRANT INSERT ON supplier TO payables;
Anyone who has been granted the payables role, and who successfully activates it by issuing the SET ROLE statement, can now insert rows into supplier.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]