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

Thread: database free space

  1. #1
    Join Date
    Dec 2000
    Posts
    32
    Hi All,

    I am trying to get the total free space in the database and using DBA_FREE_SPACE view.Could anybody tell me that it includes the free space in logs also ? Could you tell me exactly how to determine the free space ?

    Thanks in advance.

    ---Radha

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    dba free space tells the free space of each tablespaces. you sum them up you get the free space of all datafiles

    it hasnt got anything to do with logfiles

  3. #3
    Join Date
    Nov 2000
    Posts
    440
    SELECT A.TABLESPACE_NAME TABLESPACE,
    ROUND(A.BYTES/1048576,1) MB_TOTAL,
    ROUND(NVL(B.BYTES/1048576, 0), 1) MB_USILISE,
    ROUND(((NVL(B.BYTES,0) * 100) / A.BYTES), 1) "UTILISATION(%)"
    FROM (select tablespace_name, sum(bytes) bytes
    from dba_data_files
    group by tablespace_name) A,
    (select tablespace_name,
    sum(bytes) bytes
    from dba_extents
    group by tablespace_name) B
    WHERE A.TABLESPACE_NAME = B.TABLESPACE_NAME (+)
    ORDER BY 1;


    Steeve Bisson
    Email:[email protected]

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