查看Oracle用戶權限一般要通過一些實際操作,首先需要遍歷所有用戶,然後才是查看Oracle用戶的權限等等操作。希望本文能給大家有所幫助。
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