oracle用户权限决定了该用户可以执行哪些操作。下面为您介绍的是查看oracle用户权限的方法,如果您对oracle用户权限方面感兴趣的话,不妨一看。
1.查看所有用户:
- select*fromdba_user;
- select*fromall_users;
- select*fromuser_users;
2.查看用户系统权限:
- select*fromdba_sys_privs;
- select*fromall_sys_privs;
- select*fromuser_sys_privs;
3.查看oracle用户对象权限:
- select*fromdba_tab_privs;
- select*fromall_tab_privs;
- select*fromuser_tab_privs;
4.查看所有角色:
- select*fromdba_roles;
5.查看用户所拥有的角色:
- select*fromdba_role_privs;
- select*fromuser_role_privs;
6.查看当前用户的缺省表空间
- selectusername,default_tablespacefromuser_users;
7.查看某个角色的具体权限,
- grantconnect,resource,createsession,createviewtoTEST;
查看RESOURCE具有那些权限,用
- SELECT*FROMDBA_SYS_PRIVSWHEREGRANTEE='RESOURCE';