How to find index is fragmented?
Step 1) First analyze index
SQL>analyze index INDEX_NAME validate structure;
SELECT name,height,lf_rows,del_lf_rows,(del_lf_rows/lf_rows)*100 as ratio FROM INDEX_STATS;
In above query ,
1) If the ratio of deleted leaf rows to total leaf rows is clearly above 20%. Then good candidate for rebuilding.
Let's rebuild the index and examine the results.
SELECT name,height,lf_rows,del_lf_rows,(del_lf_rows/lf_rows)*100 as ratio FROM INDEX_STATS;
Once rebuild that index ratio should be less than <20 div="div" done="done" have="have" job.="job." nbsp="nbsp" so="so" you="you" your="your">
Disclaimer: If you feel this content related to your content please feel to contact me to remove this information. I am sharing the knowledge with people whoever in the need which is learning daily basis.
20>
Come to my case the ratio from above query is zero so it wont require to rebuild that index since its not fragmented.
Thanks for visiting my blog.
References:-
http://dbataj.blogspot.com/2007/11/index-fragmentation-rebuild.html
Disclaimer: If you feel this content related to your content please feel to contact me to remove this information. I am sharing the knowledge with people whoever in the need which is learning daily basis.
No comments:
Post a Comment