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

Home -> Community -> Usenet -> c.d.o.server -> Re: Estimating index sizes

Re: Estimating index sizes

From: RobW95 <robw95_at_aol.com>
Date: 1997/12/12
Message-ID: <19971212223400.RAA08131@ladder02.news.aol.com>#1/1

Brian,

You can use the Analyze command on indexes as well:

Analyze emp_idx validate structure

This puts a row into the index_stats table. Some of the useful columns in that table are:

btree_space (space allocated to the index) used_space (space being used)
pct_used (percent of allocated space used) lf_rows (number of values curently in the index) lf_rows_len (sum in bytes of the length of all the values) del_lf_rows (number of values deleted from index) del_lf_rows_len (sum in bytes of all deleted rows)

Divide lf_rows_len by lf_rows to get average index length.

According to the Oracle manual if the deleted entries are more than 20% of the current entries, it's probably a good idea to rebuild the indexes. To compute this number:
Select (del_lf_rows/lf_rows_len) * 100 from index_stats;

Hope this helps. Rob Received on Fri Dec 12 1997 - 00:00:00 CST

Original text of this message

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