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