select * from dba_sys_privs; --->所有用户的拥有的权限,可查询某个用户所拥有的系统权限
select * from role_sys_privs; --->查看角色(只能查看登陆用户拥有的角色)所包含的权限
查看用户对象权限:
select * from dba_tab_privs; --->查看所有用户的对象权限
select * from all_tab_privs; --->查看当前用户的所拥有对象
select * from user_tab_privs; --->查看当前用户的对象权限
select * from V$PWFILE_USERS; --->查看当前用户有sysdba或sysoper系统权限(查询时需要相应权限)
查看一个用户的所有权限包含其角色的权限
select privilege from dba_sys_privs where grantee='SCOTT'
union
select privilege from dba_sys_privs where grantee in (select granted_role from dba_role_privs where grantee='SCOTT' );