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).
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).