Problems With Solutions .... Hi, I am working as an On-call DBA in one of the Multi-Disciplinary 24/7 Hospital that features Speciality Centers Providing a wide range of comprehensive treatment options in Kingdom of Saudi Arabia.. You Can Contact me at : moinblog79@gmail.com
Thursday, October 29, 2015
Query to find all the Schemas,Objects and Sizes
set pages 999
col "size MB" format 999,999,999
col "Objects" format 999,999,999
Select obj.owner "Owner", obj_cnt "Objects", decode(seg_size, NULL, 0, seg_size) "size GB" from (select owner, count(*) obj_cnt from dba_objects group by owner) obj, (select owner, ceil(sum(bytes)/1024/1024/1024) seg_size from dba_segments group by owner) seg
where obj.owner = seg.owner(+) order by 3 desc ,2 desc, 1;
Owner Objects size GB
------------------------------ ------------ ----------------------------
HMIS 3,554 14
IDMS7 4,092 7
SYS 32,105 5
SYSMAN 3,659 1
APEX_030200 2,561 1
ORDSYS 2,512 1
MDSYS 1,973 1
XDB 1,688 1
CMIS 938 1
OLAPSYS 722 1
SYSTEM 584 1
CTXSYS 388 1
EXFSYS 312 1
WMSYS 306 1
ORDDATA 257 1
DBSNMP 65 1
OUTLN 10 1
SCOTT 6 1
PUBLIC 33,305 0
FLOWS_FILES 13 0
OWBSYS_AUDIT 12 0
ORDPLUGINS 10 0
ORACLE_OCM 8 0
SI_INFORMTN_SCHEMA 8 0
APPQOSSYS 5 0
ARCHIVEDB 3 0
OWBSYS 2 0
HMISDMS 1 0
28 rows selected.
Happy Learning ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment