1 三者的字典表
1.1 用戶
select * from dba_users;
select * from all_users;
select * from user_users;
1.2 角色
select * from dba_roles;
1.3 權限
分為系統權限與對象權限:
select * from system_privilege_map;
select * from table_privilege_map;
2 三者之間關系的字典表
這類關系字典表的表名後綴都包含"_privs"
2.1 用戶與角色
用戶擁有的角色:
select * from dba_role_privs;
select * from user_role_privs;
select * from role_role_privs;
role_role_privs和role_role_privs 都是dba_role_privs的子集.
dba_role_privs的grantee字段包括用戶名與角色名.
user_role_privs的username字段包括操作用戶的用戶名.
role_role_privs的role字段只是角色名.
注意: 沒有role_all_privs, 為什麼沒有搞懂.
2.2 用戶與權限
用戶擁有的系統權限:
select * from dba_sys_privs;
select * from user_sys_privs;
注意: 沒有all_sys_privs, 為什麼沒有搞懂.
用戶擁有的對象權限:
select * from dba_tab_privs;
select * from all_tab_privs;
select * from user_tab_privs;
select * from dba_col_privs;
select * from all_col_privs;
select * from user_col_privs;
2.3 角色與權限
查詢授出去的對象權限(通常是屬主自己查)
select * from role_sys_privs;
select * from role_tab_privs;
3 其他
查詢授出去的對象權限(通常是屬主自己查)
select * from user_tab_privs_made;
select * from all_tab_privs_made;
用戶擁有的對象權限
select * from user_tab_privs_recd;
select * from all_tab_privs_recd;
用戶分配出去的列的對象權限
select * from user_col_privs_made;
select * from all_col_privs_made;
用戶擁有的關於列的對象權限
select * from user_col_privs_recd;
select * from all_col_privs_recd;
轉自:http://blog.csdn.net/huang_xw/article/details/6527762