www.linuxidc.com@ORCL> select username,default_tablespace from dba_users;
desc 表名
www.linuxidc.com@ORCL> select table_name from user_tables;
www.linuxidc.com@ORCL> select table_name from all_tables;
www.linuxidc.com@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;
www.linuxidc.com@ORCL> select * from dba_sys_privs;
www.linuxidc.com@ORCL> select * from user_sys_privs;
www.linuxidc.com@ORCL> select * from dba_tab_privs;
www.linuxidc.com@ORCL> select * from all_tab_privs;
www.linuxidc.com@ORCL> select * from user_tab_privs;
www.linuxidc.com@ORCL> select * from dba_roles;
www.linuxidc.com@ORCL> select * from dba_role_privs;
www.linuxidc.com@ORCL> select * from user_role_privs;
www.linuxidc.com@ORCL> select * from role_sys_privs;
www.linuxidc.com@ORCL> select * from role_tab_privs;
www.linuxidc.com@ORCL> select * from system_privilege_map;
www.linuxidc.com@ORCL> select * from table_privilege_map;