Q

Which roles/privileges are associated with a user?

Is there a way to find out which privileges and roles are associated to a specific user?

Is there a way to find out which privileges and roles are associated to a specific user? Thanks for your help.
To see which system privileges are granted to the user SCOTT, use the following query:
SELECT privilege FROM dba_sys_privs WHERE grantee='SCOTT';
To see which object privileges are granted to the user SCOTT, use the following query:
SELECT owner,table_name,privilege FROM dba_tab_privs WHERE grantee='SCOTT';
To see which roles are granted to the user SCOTT, use the following query:
SELECT granted_role FROM dba_role_privs WHERE grantee='SCOTT';
This was last published in June 2006

Dig Deeper on Oracle database design and architecture

PRO+

Content

Find more PRO+ content and other member only offers, here.

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close