Juz to seek some expertise here...how come when i perform a ANALYZE INDEX compute STATISTIC...then i chk the INDEX_STATS there's no nothing inside...does this mean
the index is ok? or am i missing somethg?
INDEX_STATS table will need to be viewed after each VALIDATE STRUCTURE command. Cause it is overwriten by the next command. I wrote the script below to check for wasted space on the indexes in my system, and report the indexes which are > 20%, use it if you like. It's a bit untidy, but I didn't spent a lot of time on it, it also has minor dbms debugging still in it.
PROCEDURE validate_indexes
-- Author: Greg Johnson
-- Date: 29/07/2001
-- Purpose: Determine is Indexes have high wasted space
-- and, advise if rebuild may be required.
IS
CURSOR c_validate_index IS
SELECT INDEX_NAME FROM USER_INDEXES
WHERE INDEX_NAME NOT LIKE ('%_LOAD')
AND INDEX_TYPE = 'NORMAL';
oh? great! thanks for the valuable feedback...BTW can i
confirm that to qualify an index for rebuild...the percentage of must be
(DEL_LF_ROW_LEN/LF_ROW_LEN)*100 > 20%
OR
(DEL_LF_ROWS/LF_ROWS_LEN) * 100 as suggested by grjohnson???
not that i am doubting his suggestions but I would just wish
to clarify to get the fact right.
This >20% is only a recommendation by Oracle, it obviously depends on your own individual system purpose, another Oracle recommendation is if the indexes blevel >= 4.
Bookmarks