Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Checking the rebuild ability of an index
I do 'analyze index ... validate structure' on all indexes and store the
output of index_stats table to my own table along with
1. time it takes to analyze 2. Analyze timestamp 3. Complete index rebuild script in a column. 4. I have a column that says if this index should be rebuilt based on somecriteria.
Every Sat 4AM this process runs. At 6AM another process wakes up, and scan through the table to see if any indexes were marked for rebuild, it then proceeds to select the indexes, and 'rebuilds' them, i.e. online. If there are large indexes and the tablespace is fragmented, I usually drop the index, and recreate it based on the criticality of the index on Sun AM when TX rate is low and that's when the index script stored in the column comes handy.
This is not a very sophisticated process, but has been running unattended for last 5 months, thanks to my trusty 'cron' job. The parameters to select an index to rebuild is based from the 'How To Stop ...' paper.
Additionally, I have a set of temporary tables that is used to store temporary data, this process also truncates these tables on a weekly basis. The tables are excluded from analyze index script.
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Aug 06 2002 - 08:53:55 CDT
- text/plain attachment: InterScan_Disclaimer.txt
![]() |
![]() |