filled datafiles
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: filled datafiles

  1. #1
    Join Date
    May 2001
    Location
    London
    Posts
    149

    Thumbs up

    I want to see how much datafiles are filled.
    We have 20 datafiles in DB, size of DB is 35GB.
    but I want to know how much of this files is used.

    Paresh

  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    The following query will list you total occupied space in each file. From the size of each file you can conclude how much free space is left in each of them.

    select f.file_name, sum(e.bytes)
    from dba_extents e, dba_data_files f
    where e.file_id = f.file_id
    group by file_name;

    Or you can go with DBA_FREE_SPACE to list the available space in each datafile:

    select f.file_name, sum(fs.bytes)
    from dba_free_space fs, dba_data_files f
    where fs.file_id = f.file_id
    group by file_name;
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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