欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

查看用户所拥有的权限

程序员文章站 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'
相关标签: 权限