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).