1.查看所有使用者:
select * from dba_users;
select * from all_users;
select * from user_users;
2.查看使用者或角色系統許可權(直接賦值給使用者或角色的系統許可權):
select * from dba_sys_privs;
select * from user_sys_privs;
3.查看角色(只能查看登陸使用者擁有的角色)所包含的許可權
sql>select * from role_sys_privs;
4.查看使用者物件許可權:
select * from dba_tab_privs;
select * from all_tab_privs;
select * from user_tab_privs;
5.查看所有角色:
select * from dba_roles;
6.查看使用者或角色所擁有的角色:
select * from dba_role_privs;
select * from user_role_privs;
7.查看哪些使用者有sysdba或sysoper系統許可權(查詢時需要相應許可權)
select * from V$PWFILE_USERS
注意:
1、以下語句可以查看Oracle提供的系統許可權
select name from sys.system_privilege_map
2、查看一個使用者的所有系統許可權(包含角色的系統許可權)
select privilege from dba_sys_privs where grantee='DATAUSER'
union
select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='DATAUSER' );
轉自:http://junmail.javaeye.com/blog/135331