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 ca I retrieve the space left in an extent ?

Re: How ca I retrieve the space left in an extent ?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/07/25
Message-ID: <397D8977.1F47@yahoo.com>#1/1

Laurent Bouyer wrote:
>
> Hello,
>
> I want to add a column to this request to show the place left in the
> last extent of a segment ;
>
> select substr(tbl.tablespace_name, 1, 10) , substr(tbl.segment_name, 1,
> 15), max_extents "MAX EXT.", next_extent, extents "EXT.", max(spc.bytes)
> "MAX. BYTES"
> from sys.dba_segments tbl, sys.dba_free_space spc
> where tbl.tablespace_name = spc.tablespace_name
> group by substr(tbl.tablespace_name, 1, 10) , substr(tbl.segment_name,
> 1, 15), max_extents, next_extent, extents
> order by 5 desc;
>
> How ca I do ??
>
> Laurent
> lbouyer_at_sin-et-stes.fr

Check out the DBMS_SPACE package...Also if you have analyzed you tables recents, you can get some useful information for tables via EMPTY_BLOCKS from dba_tables

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Tue Jul 25 2000 - 00:00:00 CDT

Original text of this message

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