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

Home -> Community -> Usenet -> c.d.o.misc -> Re: size in bytes of a table

Re: size in bytes of a table

From: Mark D Powell <Mark.Powell_at_eds.com>
Date: 18 Jul 2005 06:55:51 -0700
Message-ID: <1121694951.954023.134620@g14g2000cwa.googlegroups.com>


The user_segments view will give you the allocated size of the table or index segment. Since a heap table and normal index can share the same name you might also want to include " and segment_type = 'TABLE' ". This points out that you may also want to count up the size of the indexes associated with the table. You can find all the indexes for a table by looking at all_, user_, or dba_indexes.

You can find all the dictionary views documented in the Oracle version# Reference Manual.

If you want to know the used as opposed to allocated space then multiply dba_tables.blocks times the tablespace block size.

HTH -- Mark D Powell -- Received on Mon Jul 18 2005 - 08:55:51 CDT

Original text of this message

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