Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: find allocated and used space for a table
IMHO sum of VSIZE will NOT give accurate information regarding the space
occupied
"dbms_space.unused_space" will.
Regards
> ----------
> From: Vladimir Begun[SMTP:jester_at_whale.sunbay.crimea.ua ]
> Reply To: ORACLE-L_at_fatcity.com
> 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/ |
> me_at_vbegun.net |
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Vladimir Begun
> INET: jester_at_whale.sunbay.crimea.ua
>
> 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: ListGuru_at_fatcity.com (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: rahul_at_ratelindo.co.id 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: ListGuru_at_fatcity.com (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).Received on Mon Jun 11 2001 - 04:22:15 CDT
![]() |
![]() |