oracle11G 命令【导库数量对比】
发布时间:2021-03-08 19:45:39 所属栏目:百科 来源:网络整理
导读: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
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 (编辑:广州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |