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 ( Tuni

RE: Rule base optimizer selecting different execution path ( Tuni

From: Gupta, Brijesh <Brijesh.Gupta_at_Airliquide.com>
Date: Fri, 22 Jun 2001 12:26:07 -0700
Message-ID: <F001.003343F8.20010622123857@fatcity.com>

Thanks
Riyaj
<SPAN
class=450442819-22062001>     It was the degree of parallelism on the indexes.
<SPAN
class=450442819-22062001> 
<SPAN
class=450442819-22062001>Brijesh

  <FONT face=Tahoma
  size=2>-----Original Message-----From: Riyaj_Shamsudeen_at_i2.com   [mailto:Riyaj_Shamsudeen_at_i2.com]Sent: Friday, June 22, 2001 1:39   PMTo: Multiple recipients of list ORACLE-LSubject: Re:   Rule base optimizer selecting different execution path ( Tuning   )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. <FONT face=sans-serif   size=2>        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   ? ThanksRiyaj "Re-yas"
  ShamsudeenCertified Oracle DBAi2 technologies   www.i2.com                

      
      "Gupta, Brijesh" 
        <Brijesh.Gupta_at_Airliquide.com> <FONT 
        face=sans-serif size=1>Sent by: root_at_fatcity.com 
        06/22/01 01:12 PM <FONT 
        face=sans-serif size=1>Please respond to ORACLE-L 
              <FONT 
        face=sans-serif size=1>        To:     
           Multiple recipients of list ORACLE-L 
        <ORACLE-L_at_fatcity.com> <FONT face=sans-serif 
        size=1>        cc:       
                
          Subject:        Rule base optimizer selecting 
        different execution path ( Tuning 
  )<FONT face="Times New Roman"
  size=2>Hi All,    
     Can somebody help me
  in understanding this. <FONT
  face="Times New Roman" size=2>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.<FONT   face="Times New Roman" size=3> <FONT face="Times New Roman"   size=2>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.<FONT   face="Times New Roman" size=3> <FONT face="Times New Roman"   size=2>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<FONT
  face="Times New Roman" size=3> <FONT face="Times New Roman"   size=2>Brijesh
  Here is the explain plan of both the
  database.   

  call     count    
    cpu    elapsed       disk    
   query    current        rows<FONT
  face="Times New Roman" size=3> <FONT face="Times New Roman"   size=2>------- ------  -------- ---------- ---------- ----------

  <FONT face="Times New Roman"

  size=2>********************************************************************************<FONT 
  face="Times New Roman" size=3>   

  call     count    
    cpu    elapsed       disk    
   query    current        rows<FONT
  face="Times New Roman" size=3> <FONT face="Times New Roman"   size=2>------- ------  -------- ---------- ---------- ----------

  <FONT face="Times New Roman"
  size=2>********************************************************************************<FONT 
  face="Times New Roman" size=3>       Received on Fri Jun 22 2001 - 14:26:07 CDT

Original text of this message

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