Oracle Privilege information
All roles granted to user.
SELECT *
FROM dba_role_privs
WHERE grantee= :username
Privileges granted to user:
1. system privileges
SELECT *
FROM dba_sys_privs
WHERE grantee = :username
2. object grants
SELECT *
FROM dba_tab_privs
WHERE grantee = :username
Permissions granted to roles.
Roles granted to other roles.
SELECT *
FROM role_role_privs
WHERE role IN (SELECT granted_role FROM dba_role_privs WHERE grantee= :username)
1. system privileges
SELECT *
FROM role_sys_privs
WHERE role IN (SELECT granted_role FROM dba_role_privs WHERE grantee= :username)
2. object grants
SELECT *
FROM role_tab_privs
WHERE role IN (SELECT granted_role FROM dba_role_privs WHERE grantee= :username)
Oracle version
SELECT *
FROM v$version