Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: B-Tree index
Your B-tree index will always be balanced. That's part of its
definition! What you really want to check is to see if the leaf nodes
are "empty". You can do this by issuing the following command:
ANALYZE INDEX index_name VALIDATE STRUCTURE;
Then query V$INDEX_STATS comparing the deleted leaf nodes to the total number. If this percentage is too high, then rebuild the index.
HTH,
Brian
Harry Sheng wrote:
>
> How can I check if a B-Tree index (suppose it is not too big) is well
> balanced ?
Received on Wed Nov 06 2002 - 09:43:40 CST