您好,欢迎访问一九零五行业门户网

Oracle 基础知识之查看用户,用户权限,用户表空间,用户默认表空间

1. 查看用户和默认表空间的对应关系www.linuxidc.com@orclgt; select username,default_tablespace from dba_users;2. 查看表结
oracle 基础知识之查看用户,用户权限,用户表空间,用户默认表空间
[日期:2011-04-07]来源:linux社区 作者:leishifei[字体:]
@orcl> select username,default_tablespace from dba_users;
@orcl> select table_name from user_tables; 
@orcl> select table_name from all_tables;  
@orcl> select a.file_id fileno,a.tablespace_name tablespace_name,
  2  a.bytes bytes,a.bytes-sum(nvl(b.bytes,0)) used,
  3  sum(nvl(b.bytes,0)) free,
  4  sum(nvl(b.bytes,0))/a.bytes*100 %free
  5  from dba_data_files a, dba_free_space b
  6  where a.file_id=b.file_id(+)
  7  group by a.tablespace_name, a.file_id,a.bytes 
  8  order by a.tablespace_name;
@orcl> select * from dba_sys_privs;
@orcl> select * from dba_roles;
@orcl> select * from role_sys_privs;
@orcl> select * from role_tab_privs;
@orcl> select * from system_privilege_map;
@orcl> select * from table_privilege_map;

其它类似信息

推荐信息