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

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';

Dig Deeper on Oracle database design and architecture

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