IMHO sum of VSIZE will NOT give accurate information regarding the space
occupied
"dbms_space.unused_space" will.

Regards


> ----------
> From:         Vladimir Begun[SMTP:[EMAIL PROTECTED]       ]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Monday, June 11, 2001 3:50 PM
> To:   Multiple recipients of list ORACLE-L
> Subject:      Re: find allocated and used space for a table
> 
> On Jun 10, 2001 at 11:55:45PM, Soman Manoj wrote:
> > Hi,
> > 
> > How to find allocated and used space for a table?
> 
> SELECT SUM(blocks) blocks
>      , SUM(bytes)  bytes
>   FROM dba_extents
>  WHERE segment_name = '&&table_name'
> /
> ...
> SELECT SUM(VSIZE(colA))
>      + SUM(VSIZE(colB))
>      + ...
>      + SUM(VSIZE(colN))
>   FROM table
> /
> 
> -- 
> Vladimir Begun               | Others can stop you temporarily, only you
> http://vbegun.net/           | can do it permanently.
> http://vbegun.net/wap/       | 
> [EMAIL PROTECTED]                | 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: Vladimir Begun
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rahul
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to