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 first published in June 2006

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close