oracle11G 命令【导库数量对比】

1、查询用户有哪些表
select * from all_tables where owner='ZJY';

160 rows selected.

2. 查询总数
select object_type,count(*) from all_objects where owner='ZJY' group by  object_type;

OBJECT_TYPE	      COUNT(*)
------------------- ----------
SEQUENCE		   280
TRIGGER 		   113
TABLE			   160
INDEX			   477
VIEW			     1

3. 查询表空间

select username,default_tablespace,temporary_tablespace from dba_users where username='ZJY';

USERNAME		       DEFAULT_TABLESPACE
------------------------------ ------------------------------
TEMPORARY_TABLESPACE
------------------------------
NJNYDX_ZJK		       NJNYDX_ZJK
NJNYDX_ZJK_TEMP



select distinct tablespace_name from all_tables where owner='NJNYDX_ORA'; 

TABLESPACE_NAME
------------------------------
HZKJ_ORA
USERS
NJNYDX_ORA
WHDX_ORA
上一篇:django2.2连oracle11g解决版本冲突问题


下一篇:linux redhat6 Oracle11g rac +lvm +asm安装详细过程 总结经验