查看用户所拥有的权限
程序员文章站
2022-05-10 11:04:07
...
查看用户所拥有的权限:
select '角色'|| grantee, privilege, admin_option
from dba_sys_privs dsp
where dsp.grantee in (select granted_role
from dba_role_privs drp
where drp.grantee = 'SCOTT')
union
select '用户'|| grantee, privilege, admin_option
from dba_sys_privs dsp2
where dsp2.grantee like 'SCOTT'