oracle角色相关查询
电脑版发表于:2018/10/11 15:20
--查询所有的角色
select * from dba_roles
--查询角色具有的系统权限
select * from dba_sys_privs where grantee ='DBA'
--查询角色具有的对象权限
select * from dba_tab_privs where grantee ='DBA'
--角色拥有的角色权限
select * from dba_role_privs where grantee ='DBA'
--查看哪些用户被授予了DBA权限
select * from dba_role_privs where granted_role='DBA';