after INDEX REBUILD --> should we ANALAYZE underlying table? [message #64240] |
Wed, 05 January 2005 09:33 |
patrick
Messages: 83 Registered: December 2000
|
Member |
|
|
Hi,
I'm using Oracle 8i on an AIX-UNIX platform.
I havn't found documentation about this question:
I executed several INDEX REBUILD: should I run an ANALYAZE TABLE ... ESTIMATE|COMPUTE STATISTICS on the underlying tables to keep up to date the cost based optimizer?
Thank you in advance!
Best regards,
Patrick.
|
|
|
|
Re: after INDEX REBUILD --> should we ANALAYZE underlying table? [message #64242 is a reply to message #64241] |
Wed, 05 January 2005 10:08 |
patrick
Messages: 83 Registered: December 2000
|
Member |
|
|
Hi,
Thank you for your answer! So one have to run an ANALYZE ... STATISTICS after REBUILDing INDEX, ok!
ANALYZE TABLE ... ESTIMATE|COMPUTE STATISTICS restore the statistics for the table's INDEXes too?
I have REBUILD sone indexes because I have MOVEd some tables: so the indexes buildt on them have been invalidated! That's why I executed a REBUILD command.
The ALTER INDEX REBUILD statement is a DDL but generates a lot of REDO: it's generates RECURSIVE DML on Data Dictionary tables.
But why is this REBUILD generating "so" much redo?
My Archiver filled up my disk because of these 8 INDEX REBUILD operations! :(
The underlying tables have between 6-30 million rows, but REBUILD is a DDL and shouldn't generate that much redo?
Thank you for your help.
Best regards,
Patrick.
|
|
|
|