Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Used size of a datafile.

Re: Used size of a datafile.

From: Jared Still <jkstill_at_gmail.com>
Date: Sat, 8 Jan 2005 11:09:55 -0800
Message-ID: <bf463805010811095386cb0a@mail.gmail.com>


You may consider using DBA_FREE_SPACE rather than DBA_EXTENTS.

If there are a lot of objects in your database, it may be (possibly much) less expensive to query DBA_FREE_SPACE.

On Sat, 08 Jan 2005 11:15:32 +0100, Jesper Haure Norrevang <jhn.aida_at_cbs.dk> wrote:
> Vinod,
>
> select
> f.tablespace_name,
> f.file_name,
> sum(e.bytes) / 1024 / 1024 MB
> from dba_extents e, dba_data_files f
> where e.file_id = f.file_id
> group by f.tablespace_name, f.file_name
> order by f.tablespace_name, f.file_name;
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
http://www.freelists.org/webpage/oracle-l
Received on Sat Jan 08 2005 - 13:05:42 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US