Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to calculate the size of an index?
> Rene Nyffenegger <rene.nyffenegger_at_gmx.ch> wrote in message news:<btudr2$bd78h$1_at_ID-82536.news.uni-berlin.de>...>> >
>> > To calculate the size of a table, I usually use num_rows *
>> > avg_row_len. But how to I calculate the size of an index? Do I use
>> > avg_data_blocks_per_key * distinct_key * db_block_size of the
>> > database?
> > That is the physically used size of the segment, but not the size of > the _business_ data it contains, to which I think the OP may be > referring. It may be rebuilt much smaller if the INITIAL_EXTENT of > the table/index is ridiculously large.
Steve,
I am well aware of the fact that this is the physically used size that gets calculated like this. If someone relays on the 'business size' only, he is heading for trouble.
Rene
-- Rene Nyffenegger http://www.adp-gmbh.chReceived on Mon Jan 12 2004 - 15:32:37 CST