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 check all the schemas and their sizes
SQL> set linesize 150
SQL> set pagesize 5000
SQL> col owner for a15
SQL> col segment_name for a30
SQL> col segment_type for a20
SQL> col TABLESPACE_NAME for a30
SQL> clear breaks
breaks cleared
SQL> breaks cleared
SP2-0734: unknown command beginning "breaks cle..." - rest of line ignored.
SQL> clear computes
computes cleared
SQL> computes cleared
SP2-0734: unknown command beginning "computes c..." - rest of line ignored.
SQL> compute sum of SIZE_IN_GB on report
SQL> break on report
SQL> select OWNER,sum(bytes)/1024/1024/1000 "SIZE_IN_GB" from dba_segments group by owner order by owner;
OWNER SIZE_IN_GB
--------------- ------------------------------------
APEX_030200 .077375
CMIS .122625
CTXSYS .003625
DBSNMP .002
EXFSYS .003625
HMIS 13.5956875
IDMS7 6.3909375
MDSYS .0658125
OLAPSYS .005125
ORDDATA .0134375
ORDSYS .0004375
OUTLN .0005625
SCOTT .0003125
SYS 4.92725
SYSMAN .1731875
SYSTEM .1571875
WMSYS .0024375
XDB .1576875
------------------
sum 25.6993125
18 rows selected.
Happy Learning ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment