显示用户信息视图 | Select * from Dba_users |
显示用户拥有的 系统权限 | Select * from Dba_sys_privs |
显示用户拥有的 对象权限 | Select * from Dba_tab_privs |
显示用户拥有的 列权限 | Select * from Dba_col_privs |
显示用户拥有 的角色 | Select * from Dba_role_privs |
显示用户 所有可访问的表 | Select * from All_tables |
显示用户 拥有的表 | Select * from User_tables |
显示 dba 所拥有的表 | Select * from Dba_tables |
显示当前数据库实例名称 | Select * from global_name |
显示当前数据库实例名称 | Select * from global_name |
显示所有权限信息 | Select * from System_privilege_map |
显示所有角色 | Select * from Dba_roles |
显示数据库表空间 | Select * from Dba_tablespaces |
显示数据库表空间 | Select * from Dba_tablespaces |
查询用户具有的角色 | Selec t * from dba_role_privs where grantee=’userName’ |
查看角色包括哪种权限 | Select * from dba_sys_privs where grantee = ’role’ |
Select * from role_sys_privs where role = ‘role’ | |
查看角色拥有的对象权限 | Select * from dba_tab_privs where grantee = ‘role’ |
查看表约束视图 | select * from all_constraints where table_name='EMP' |
查看表索引视图 | select * from all_indexes where table_name='EMP' |
Oracle基本视图操作
猜你喜欢
转载自liguanfeng.iteye.com/blog/2199265
今日推荐
周排行