如何查看Oracle的用戶權(quán)限?
"ORACLE數(shù)據(jù)字典視圖的種類分別為:USER,ALL 和 DBA.
USER_*:有關(guān)用戶所擁有的對象信息,即用戶自己創(chuàng)建的對象信息
ALL_*:有關(guān)用戶可以訪問的對象的信息,即用戶自己創(chuàng)建的對象的信息加上
其他用戶創(chuàng)建的對象但該用戶有權(quán)訪問的信息
DBA_*:有關(guān)整個數(shù)據(jù)庫中對象的信息
(這里的*可以為TABLES,INDEXES,OBJECTS,USERS等。)
1、查看所有用戶
SELECT * from dba_user;
select * from all_users;
select * from user_users;
2、查看用戶系統(tǒng)權(quán)限
select * from dba_sys_privs;
select * from all_sys_privs;
select * from user_sys_privs;
3、查看用戶對象權(quán)限
select * from dba_tab_privs;
select * from all_tab_privs;
select * from user_tab_privs;
4、查看所有角色
select * from dba_roles;
5、查看用戶所擁有的角色
select * from dba_role_privs;
select * from user_role_privs;
6、查看當(dāng)前用戶的缺省表空間
select username,default_tablespace from user_users;
7、查看某個角色的具體權(quán)限
如grant connect,RESOURCE,create session,create view to TEST;
8、查看RESOURCE具有那些權(quán)限
用SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='RESOURCE
"