Solved

Oracle - View roles assigned to my username

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

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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.

810 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