REVOKE ROLE Statement

Removes a users membership in a role or his or her ability to administer the role.

Quick Links:

Go to Parameters

Go to Examples

Go to Standards

Go to Permissions

Syntax

REVOKE [ ADMIN OPTION FOR ] ROLE role_name [,...] 
   FROM grantee [,...]

role_name
   dbo†††
   | diagnostics†††
   | PUBLIC†††
   | rs_systabgroup†††
   | SA_DEBUG†††
   | SYS†††
   | SYS_AUTH_SA_ROLE
   | SYS_AUTH_SSO_ROLE
   | SYS_AUTH_DBA_ROLE
   | SYS_AUTH_RESOURCE_ROLE
   | SYS_AUTH_BACKUP_ROLE
   | SYS_AUTH_VALIDATE_ROLE
   | SYS_AUTH_WRITEFILE_ROLE 
   | SYS_AUTH_WRITEFILECLIENT_ROLE
   | SYS_AUTH_READFILE_ROLE 
   | SYS_AUTH_READFILECLIENT_ROLE 
   | SYS_AUTH_PROFILE_ROLE 
   | SYS_AUTH_USER_ADMIN_ROLE 
   | SYS_AUTH_SPACE_ADMIN_ROLE 
   | SYS_AUTH_MULTIPLEX_ADMIN_ROLE 
   | SYS_AUTH_OPERATOR_ROLE 
   | SYS_AUTH_PERMS_ADMIN_ROLE
   | SYS_REPLICATE_ADMIN_ROLE†††
   | SYS_RUN_REPLICATE_ROLE†††
   | SYS_SPATIAL_ADMIN_ROLE†††
   | user-defined role name

†††The ADMIN OPTION FOR clause is not supported for system roles.

Parameters

(back to top)

Examples

(back to top)

Standards

(back to top)

Permissions

(back to top)

Requires the MANAGE ROLES system privilege to revoke these roles:
  • diagnostics
  • dbo
  • PUBLIC
  • rs_systabgroup
  • SA_DEBUG
  • SYS
  • SYS_RUN_REPLICATE_ROLE
  • SYS_SPATIAL_ADMIN_ROLE
Requires administrative privilege over the role to revoke these roles:
  • SYS_AUTH_SA_ROLE
  • SYS_AUTH_SSO_ROLE
  • SYS_AUTH_DBA_ROLE
  • SYS_AUTH_RESOURCE_ROLE
  • SYS_AUTH_BACKUP_ROLE
  • SYS_AUTH_VALIDATE_ROLE
  • SYS_AUTH_WRITEFILE_ROLE
  • SYS_AUTH_WRITEFILECLIENT_ROLE
  • SYS_AUTH_READFILE_ROLE
  • SYS_AUTH_READFILECLIENT_ROLE
  • SYS_AUTH_PROFILE_ROLE
  • SYS_AUTH_USER_ADMIN_ROLE
  • SYS_AUTH_SPACE_ADMIN_ROLE
  • SYS_AUTH_MULTIPLEX_ADMIN_ROLE
  • SYS_AUTH_OPERATOR_ROLE
  • SYS_AUTH_PERMS_ADMIN_ROLE
  • <user-defined role name>
Related reference
GRANT ROLE Statement
GRANT System Privilege Statement