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: rebuild index

Re: rebuild index

From: Andrea <netsecurity_at_tiscali.it>
Date: 6 Oct 2006 00:20:27 -0700
Message-ID: <1160119227.159630.257360@c28g2000cwb.googlegroups.com>


> Likely a complete waste of time and CPU. Rebuilding indexes is
> something you should only do when you have metrics supporting the
> fact that there is a need to do so.
>
> One way to determine whether an index requires rebuilding is to
> use the built in SYS_OP_LBID function. I have a demo of its usage
> in Morgan's Library under Undocumented Oracle and there is some
> documentation by Jonathan Lewis you can find if you google for
> the function by name.
> --

For determine if an index requires rebuild i use this method:

 analyze index IDXNAME validate_structure;

and after i verify INDEX_STATS table for result (LF_ROWS and DEL_LF_ROWS), if the ratio (DEL/LF) is more then 20% i rebuild index. Received on Fri Oct 06 2006 - 02:20:27 CDT

Original text of this message

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