This will get you that actual bytes used by the data in the table; however,
it will hit every row in the table and take a long time to run. It takes
one parameter, the table being sized.
rem ****************************************************
rem this code was inspired by Kevin Loney
rem ****************************************************
set verify off;
set pages 24;
select COUNT(DISTINCT(SUBSTR(a.ROWID,1,16)))* b.value
Bytes_Used from &&1 a,
v$parameter b where b.name = 'db_block_size' group by b.value
/
"Pillai, Rajesh"
<Rajesh.Pillai To: Multiple recipients of list
ORACLE-L <[EMAIL PROTECTED]>
@nordstrom.com> cc:
Sent by: Subject: RE: Table Size
ml-errors
10/15/2003 04:19
PM
Please respond
to ORACLE-L
Allan,
I cannot run stats on the table
Regards,
Rajesh
-----Original Message-----
From: Nelson, Allan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:54 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Table Size
If you are running stats on this table or can run stats use
dba_segements
Allan
-----Original Message-----
From: Pillai, Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 2:24 PM
To: Multiple recipients of list ORACLE-L
Subject: Table Size
Hi All,
Could somebody help me in finding the actual size of an
oracle table in GB.
TIA,
Rajesh
______________________________________________________________________________
This email is intended solely for the person or entity to which it is
addressed and may contain confidential and/or privileged information.
Copying, forwarding or distributing this message by persons or
entities other than the addressee is prohibited. If you have received
this email in error, please contact the sender immediately and delete
the material from any computer. This email may have been monitored
for policy compliance. [021216]
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Thomas Day
INET: [EMAIL PROTECTED]
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: [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).