Solved

Oracle - View roles assigned to my username

Posted on 2013-06-13
6
418 Views
Last Modified: 2013-06-13
In oracle is there a way to see what roles/permissions are assigned to my username?
0
Comment
Question by:patriotpacer
  • 3
  • 2
6 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 39244422
There are a few views you can check:

http://docs.oracle.com/cd/E11882_01/server.112/e25513/toc.htm

USER_ROLE_PRIVS
USER_ROLE_PRIVS describes the roles granted to the current user.

USER_SYS_PRIVS
USER_SYS_PRIVS describes system privileges granted to the current user.

USER_TAB_PRIVS
USER_TAB_PRIVS describes the object grants for which the current user is the object owner, grantor, or grantee. Its columns are the same as those in DBA_TAB_PRIVS.
0
 

Author Closing Comment

by:patriotpacer
ID: 39244433
Thx (again) slightwv!
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39244468
try these:
SELECT * FROM USER_SYS_PRIVS;
SELECT * FROM USER_TAB_PRIVS;
SELECT * FROM USER_ROLE_PRIVS;
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 48

Expert Comment

by:PortletPaul
ID: 39244470
:0 oops no refresh - too late (again) sorry
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39244472
Way late this time Paul!!!  ;)
0
 
LVL 48

Expert Comment

by:PortletPaul
ID: 39244492
yes, had to put a cat to bed :)
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now