oracle用户,角色,权限

前提:用system用户登录


1.查询所有的角色


select * from dba_roles;


2.查询一个角色所包含的系统权限


select * from dba_sys_privs where grantee='xxx';

或者

select * from role_sys_privs where role='xxx'(好像要重新登录一下才行)


3.查询一个角色所包含的对象权限


select * from dba_tab_privs where grantee='xxx'


4.查询所用的用户


select * from dba_users;


5.用户所具有的角色


select * from dba_role_privs where grantee='xxx'




 

你可能感兴趣的:(Oralce用户,oralcle,oralce权限,oralce角色)