Allow global role administrators to administer a new role.
For this reason, it is strongly recommended that you consider always adding the global role administrator to the list of role administrators during the creation process.
Create Type | Statement |
---|---|
Global role administrator only; no role administrators |
CREATE ROLE role_name |
Both role and global role administrators* |
CREATE ROLE role_name WITH ADMIN ONLY SYS_MANAGE_ROLES_ROLE, admin_name [,...] |
Execute this statement to create the Sales role and allow only global role administrators to manage it:
CREATE ROLE Sales
Execute this statement to make Joe and Bob role administrators of the Sales role, with administrative rights only, as well as allow global role administrators to manage the role:
CREATE ROLE Sales WITH ADMIN ONLY SYS_MANAGE_ROLES_ROLE, Joe, Bob