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

Unknown's avatar

About Ahmed Tawfik

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

Leave a comment