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: Rule base optimizer selecting different execution path ( Tuning )

Re: Rule base optimizer selecting different execution path ( Tuning )

From: <Riyaj_Shamsudeen_at_i2.com>
Date: Fri, 22 Jun 2001 10:29:51 -0700
Message-ID: <F001.00334037.20010622103854@fatcity.com>


Brijesh
        There are few conditions where the optimizer will select CBO even when the optimizer_mode is set to rule. Do you have any objects in the schema with a parallelism >1 (tables and indexes) ? One of the common problem is that DBAs rebuild the index with higher parallelism and forget to change the parallelism back to noparallel. Parallelism >1 will turn on CBO. What is your optimizer_mode ? I assume it is rule. Let us know if not.
        Seeing hash_join in your second plan, I am positive that the CBO is being turned on. Do you have any hints in the code ? Does your session change the optimizer_goal at the session level by any chance ?

Thanks
Riyaj "Re-yas" Shamsudeen
Certified Oracle DBA
i2 technologies   www.i2.com

"Gupta, Brijesh" <Brijesh.Gupta_at_Airliquide.com> Sent by: root_at_fatcity.com
06/22/01 01:12 PM
Please respond to ORACLE-L

       
        To:        Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc:        
        Subject:        Rule base optimizer selecting different execution path ( Tuning )

Hi All,
        Can somebody help me in understanding this. We have a query which runs faster on development and not on production. When I checked the trace , it using different execution path on both database. Database is 8.0.5 running oracle application and the optimizer is RULE. Does anybody know why two execution path oracle optimizer has selected when its a RULE base optimizer. I know that is possible if its cost base optimizer but in rule it should be same right ( All the indexes are same on both database ) Only thing I did was rebuild some of the indexes on Test instance. Thanks
Brijesh
Here is the explain plan of both the database.

Received on Fri Jun 22 2001 - 12:29:51 CDT

Original text of this message

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