Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Table Size
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).
> >
>
> > >
>
>> To REMOVE yourself from this mailing list, send an E-Mail message
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
-- 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