Oracle用戶權限決定了該用戶可以執行哪些操作。下面為您介紹的是查看Oracle用戶權限的方法,如果您對Oracle用戶權限方面感興趣的話,不妨一看。
1.查看所有用戶:
- select * from dba_user;
- select * from all_users;
- select * from user_users;
2.查看用戶系統權限:
- select * from dba_sys_privs;
- select * from all_sys_privs;
- select * from user_sys_privs;
3.查看Oracle用戶對象權限:
- 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.查看當前用戶的缺省表空間
- select username,default_tablespace from user_users;
7.查看某個角色的具體權限,
- grant connect,resource,create session,create vIEw to TEST;
查看RESOURCE具有那些權限,用
- SELECT * FROM DBA_SYS_PRIVS WHERE GRANTEE='RESOURCE';