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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to check free space left in tablespace

Re: How to check free space left in tablespace

From: fumi <fumi_at_tpts5.seed.net.tw>
Date: 8 Aug 1999 15:35:03 GMT
Message-ID: <7ok837$8ot$4@news.seed.net.tw>

The Chuckster <ccarson_at_phi.org> wrote in message news:37ab1c7c.240604460_at_client.nw.news.psi.net...
>
>
> How can I see how much free space is left in a tablespace/datafile?
>
> Thanks,CC

To find out the free space in tablespace, use this:

select tablespace_name, sum(bytes)
  from dba_free_space
  group by tablespace_name;

To find out the free space in datafile, use this:

select d.file_name, sum(f.bytes)
  from dba_free_space f, dba_data_files d   where d.file_id=f.file_id
  group by d.file_name; Received on Sun Aug 08 1999 - 10:35:03 CDT

Original text of this message

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