Yes Marul , I think there is a big differenece in them . When you are rebulding the index means you are re-organzing the entries in the index , may be removing the entries for the rows deleted in past and so forth so on. But this doesn't generate any statistics about index.
When you analyze index, you generate information ( statistics) about the data in index , like leaf blocks or depth of index etc.
None of these should require orther , but they have some effect .
Like if you rebuild index , after that you dont have latest statistics and queries may not perform upto mark .
-oramagic
Marul Mehta <[EMAIL PROTECTED]> wrote:
Hi,Can anybody please tell me the difference between -SQL > execute DBMS_UTILITY.ANALYZE_SCHEMA('BLAH','COMPUTE',NULL,30,'FOR ALL INDEXES');andSQL > select 'ALTER INDEX ' || INDEX_NAME || ' REBUILD ONLINE;' from USER_INDEXESIf I execute any one the above do i need to execute the other also?After how many days/hour it should be executed.TIA,Marul.
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
