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

Home -> Community -> Mailing Lists -> Oracle-L -> CBO Puzzles

CBO Puzzles

From: Oracle-L <orclbabu_at_hotmail.com>
Date: Fri, 10 Oct 2003 13:44:25 -0800
Message-ID: <F001.005D2B93.20031010134425@fatcity.com>


All

We have a 8.0.4 database using choose optimizer. We have a query that access a single table using index.

If we analyze the table and indexes - query takes 8 min to complete

If we analyze table and then delete stats on indexes - query runs in two minutes.

Explain plan is the same in both cases. I did a event 10053 trace but could not find any difference between the choices the CBO makes except when the indexes are not analyzed it thinks the cost is low.

Any ideas why the query would execute faster - with the same explain plan - if the CBO thinks its cost is low ?

PS : We ruled out the effects of caching in the buffer by reversing the order of the tests..

TIA Babu
--

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

Author: Oracle-L
  INET: orclbabu_at_hotmail.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 Fri Oct 10 2003 - 16:44:25 CDT

Original text of this message

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