Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: find allocated and used space for a table

Re: find allocated and used space for a table

From: Vladimir Begun <jester_at_whale.sunbay.crimea.ua>
Date: Mon, 11 Jun 2001 01:13:40 -0700
Message-ID: <F001.00323C98.20010611005045@fatcity.com>

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).
Received on Mon Jun 11 2001 - 03:13:40 CDT

Original text of this message

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