Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> 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))
-- 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).Received on Mon Jun 11 2001 - 03:13:40 CDT