Q
Problem solve Get help with specific problems with your technologies, process and projects.

What privileges are granted by a role?

How do you determine what privileges are granted by a role?

The following data dictionary views will provide you with the information you need:

ROLE_ROLE_PRIVS                Roles which are granted to roles
ROLE_SYS_PRIVS                 System privileges granted to roles
ROLE_TAB_PRIVS                 Table privileges granted to roles
If you want to know which system privileges (things like CREATE TABLE or DROP USER) are available through a specific role, such as the DBA role, simply execute this query:
SELECT privilege, admin_option
  FROM role_sys_privs
 WHERE role = 'DBA' ;

PRIVILEGE                                ADM
---------------------------------------- ---
ALTER ANY TYPE                           YES
ALTER DATABASE                           YES
ALTER PROFILE                            YES
ALTER RESOURCE COST                      YES   ...and so on
You can query the other views in similar fashion, just describe each view to determine the columns they contain and query for what you wish to see.

Hope that helps!

For More Information


Dig Deeper on Oracle database security

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close