2

What is the query to get all objects with privileges under a specific role.

ROLE_NAME  TABLE SELECT INSERT DELETE UPDATE EXECUTE
1

1 Answer 1

6

SELECT * FROM DBA_TAB_PRIVS WHERE GRANTEE='ROLE_NAME';

DBA_TAB_PRIVS describes all object grants in the database.

Or to get the grants for all the roles, you can use below query.

SELECT grantee role_name,table_name,privilege FROM dba_tab_privs dtp,dba_roles dr WHERE dtp.grantee=dr.role ORDER BY role_name,table_name,privilege;

1
  • Note, this does not cover System Privileges like SELECT ANY TABLE. Also you can grant a ROLE to another ROLE, this is not covered, either. Apr 14, 2014 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.