Solved

List All Active Users and Associated Roles In Oracle 10gR2

Posted on 2011-03-14
2
663 Views
Last Modified: 2012-08-13
I need to create a query that returns all active Oracle users (Unlocked) and their associated roles.
0
Comment
Question by:AUSA_IT5
2 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 35129080
Users and status can be found in dba_users.

Assigned roles in dba_role_privs.

You also realize there can be individual privs assigned?  Not just roles.
0
 
LVL 4

Expert Comment

by:MarioAlcaide
ID: 35129243
SELECT DBA_ROLE_PRIVS.GRANTEE,DBA_ROLE_PRIVS.GRANTED_ROLE
FROM DBA_ROLE_PRIVS,DBA_USERS
WHERE DBA_ROLE_PRIVS.GRANTEE = DBA_USERS.USERNAME
AND DBA_USERS.ACCOUNT_STATUS = 'OPEN'
ORDER BY GRANTEE;
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

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

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

25 Experts available now in Live!

Get 1:1 Help Now