DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: database size

  1. #1
    Join Date
    Jul 2000
    Posts
    9

    database size

    Hi All,

    help me to find out exact totall size of database.

    Thanx

    Sam

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    It depends on what you are looking for.

    If you want to know the SGA size then log on to sqlplus as system and type "show sga".

    If you want to know how much storage is allocated try the following:

    -- megs allocated
    SELECT ROUND(SUM(BYTES)/1024/1024) MB FROM DBA_EXTENTS;

    -- megs by schema owner
    SELECT OWNER, ROUND(SUM(BYTES)/1024/1024) MB
    FROM DBA_EXTENTS
    GROUP BY OWNER;

    -- megs by tablespace
    SELECT TABLESPACE_NAME, ROUND(SUM(BYTES)/1024/1024) MB
    FROM DBA_EXTENTS
    GROUP BY TABLESPACE_NAME;

    -- total size of all files
    SELECT ROUND(SUM(BYTES)/1024/1024) MB FROM DBA_DATA_FILES;

    -- total size of each tablespaces
    SELECT TABLESPACE_NAME, ROUND(SUM(BYTES)/1024/1024) MB
    FROM DBA_DATA_FILES
    GROUP BY TABLESPACE_NAME;

    It really depends on what you are looking for. Hope this helps.

  3. #3
    Join Date
    Jul 2000
    Posts
    9
    thanxs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width