Solved

Oracle - View roles assigned to my username

Posted on 2013-06-13
6
420 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
oracle query help 18 99
T-SQL Convert to PL/SQL 23 80
ORA-12560: TNS:protocol adapter error 8 87
Oracle 12c database link between pdb not working 20 45
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

895 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

11 Experts available now in Live!

Get 1:1 Help Now