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: Space Used by Table Name

RE: Space Used by Table Name

From: Gogala, Mladen <MGogala_at_oxhp.com>
Date: Tue, 20 Jun 2000 20:31:39 -0400
Message-Id: <10534.109926@fatcity.com>


select owner,segment_name,sum(bytes)/(1048576*1048576) "TeraBytes" from dba_extents
where segment_type='TABLE'
group by owner,segment_name
order by owner,segment_name;

There will be a problem with this query if you are using the partitioning option,
because with partitioning, a table can have more then one segment. The solution
would be to list the partition segments along with the genuine table segments.

-----Original Message-----
From: Christine Turner [mailto:Christine.Turner_at_ips-sendero.com] Sent: Tuesday, June 20, 2000 7:38 PM
To: Multiple recipients of list ORACLE-L Subject: Space Used by Table Name

Hello All,

I know this will sound simple.....but is there a way to find out "space used" by table? Have a weird situation where one of my clients wants to know how much space (in meg) is being used by each table within the database.

Thanks In Advance....
Christine Turner
Database Administrator
IPS-Sendero
Scottsdale, Arizona
Phone: (800) 321-6899 ext. 3286
Fax: (480) 946-8224
E-mail: christine.turner_at_ips-sendero.com

-- 
Author: Christine Turner
  INET: Christine.Turner_at_IPS-Sendero.com

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 Tue Jun 20 2000 - 19:31:39 CDT

Original text of this message

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