Assign roles
Alternatively, the DBA can define a role with the CREATE
ROLE statement, and use the GRANT and REVOKE statements to cancel
or assign roles to users, and to grant and revoke privileges of roles.
For example:
GRANT engineer TO nmartin;
The SET ROLE statement is needed to activate a non-default role. For more information on roles and privileges, see Access-management strategies and Privileges on a database and on its objects. For more information on the GRANT and REVOKE statements, see the HCL OneDB™ Database Design and Implementation Guide. For more information about the syntax of these statements, see HCL OneDB Guide to SQL: Syntax.