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: Table Size

Re: Table Size

From: Oracle-L <orclbabu_at_hotmail.com>
Date: Wed, 15 Oct 2003 14:34:39 -0800
Message-ID: <F001.005D3447.20031015143439@fatcity.com>


no, it should get the correct size allocated to all the partitions

select sum(bytes)/(1024*1024*1024) from dba_segments where segment_name = <table_name>;

SUM(BYTES)/(1024*1024*1024)


                         18

select partition_name, sum(bytes)/(1024*1024*1024) from dba_segments where segment_name = <table_name> group by partition_name;

PARTITION_NAME                 SUM(BYTES)/(1024*1024*1024)
------------------------------ ---------------------------
TAB_2002_1Q                                 2.375
TAB_2002_2Q                                  2.25
TAB_2002_3Q                                     2
TAB_2002_4Q                                  2.25
TAB_2003_1Q                                 2.625
TAB_2003_2Q                                 2.125
TAB_2003_3Q                                     2
TAB_2003_4Q                                  .125
TAB_HIST                                    2.125
TAB_MAX1                                     .125

Babu
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Wednesday, October 15, 2003 3:04 PM

> Well, if the table is partitioned you'll get a nice fat zero....
> On 10/15/2003 03:49:36 PM, Stephen Lee wrote:
> >
> > How about:
> > select sum(bytes) from dba_segments where segment_name =
> > 'TABLE_NAME';
> >
> > -----Original Message-----
> >
> > Hi All,
> > Could somebody help me in finding the actual size of an oracle
> > table in
> > GB.
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> > --
> > Author: Stephen Lee
> > INET: Stephen.Lee_at_DTAG.Com
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> > San Diego, California -- Mailing list and web hosting services
> > ---------------------------------------------------------------------
> > 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).
> >

>

> Mladen Gogala
> Oracle DBA
>
>
>

> Note:
> This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
> Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
>

> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Mladen Gogala
> INET: mladen_at_wangtrading.com
>

> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> 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.net
-- 
Author: Oracle-L
  INET: orclbabu_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed Oct 15 2003 - 17:34:39 CDT

Original text of this message

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