【收藏】Linux查看用户权限
1.查看所有用户:
select * from dba_users;
select * from all_users;
select * from user_users;
2.查看用户或角色系统权限:
select * from dba_sys_privs;
select * from user_sys_privs;
3.查看角色所包含的权限
sql>select * from role_sys_privs;
4.查看用户对象权限:
select * from dba_tab_privs;
select * from all_tab_privs;
select * from user_tab_privs;
5.查看所有角色:
select * from dba_roles;
6.查看用户或角色所拥有的角色:
select * from dba_role_privs;
select * from user_role_privs;
注意:
1、以下语句可以查看Oracle提供的系统权限
select name from sys.system_privilege_map
2、查看一个用户的所有系统权限(包含角色的系统权限)
---------------------------------------------------------------------------当前用户的对象
select object_name, object_type from all_objects where object_type= 'procedure' ---can not work
select object_name, object_type from all_objects where object_type= 'PROCEDURE'
TOAD中sql 是区分大小写的?
select object_name, object_type from all_objects
查看当前用户所在的DB中已经有的对象。