Revoking privileges granted by a role
You can use the REVOKE statement to revoke privileges that are granted by a role in a trusted context.
About this task
To revoke privileges that are granted by a role, you can issue the REVOKE statement in the trusted context that was defined with the ROLE AS OBJECT OWNER clause. Also, make sure the role that revokes a privilege matches the one that grants the privilege. For a static REVOKE statement, the revoker is the role that owns the plan or package. For a dynamic REVOKE statement, the role for the primary authorization ID that executes the REVOKE statement becomes the revoker.
An authorization ID or role that has the SYSADM or SYSCTRL authority can use the BY (ROLE role-name) clause of the REVOKE statement to revoke privileges that are granted by a role.