Getting List of Users and Roles on Oracle DB

This is a simple SQL statement to get you a list of all users and their roles in the Oracle DB:

“SELECT * FROM DBA_role_privs;”

And if you want to get the list of users related to a specific role, you can simply modify the SQL statement to be like this:

“SELECT * FROM DBA_role_privs where GRANTED_ROLE=’SSE_ROLE’;”

Source: http://www.dbforums.com/oracle/1650816-how-get-list-all-users-their-roles.html

About SoCRaT

Software Engineer, OSS & Linux Geek
This entry was posted in Uncategorized and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s