2

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

ROLE_NAME  TABLE SELECT INSERT DELETE UPDATE EXECUTE
Pascal Belloncle
  • 11,184
  • 3
  • 56
  • 56
Sambhav jain
  • 882
  • 2
  • 12
  • 16
  • possible duplicate of [How to show all privileges from a user in oracle](http://stackoverflow.com/questions/9811670/how-to-show-all-privileges-from-a-user-in-oracle) – Preet Sangha Apr 14 '14 at 05:51

1 Answers1

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;

Krishna
  • 471
  • 2
  • 7