Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Difference - Rebuild and Analyze index

Re: Difference - Rebuild and Analyze index

From: Marul Mehta <marul_at_zycus.com>
Date: Wed, 16 Oct 2002 22:58:39 -0800
Message-ID: <F001.004EBA7A.20021016225839@fatcity.com>


Thanks a lot John, Darshan ad Ora for clearing my confusions. I guess now i have a better understanding of which option to use and when to use.

Thanks buddies,
Marul.

  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 <marul_at_zycus.com> wrote:

    Hi,

    Can anybody please tell me the difference between -

    SQL > execute DBMS_UTILITY.ANALYZE_SCHEMA('BLAH','COMPUTE',NULL,30,'FOR ALL INDEXES');     and
    SQL > select 'ALTER INDEX ' || INDEX_NAME || ' REBUILD ONLINE;' from USER_INDEXES

    If 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

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Marul Mehta
  INET: marul_at_zycus.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Thu Oct 17 2002 - 01:58:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US