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: Explain Plan different on TEST and PRODUCTION instance

RE: Explain Plan different on TEST and PRODUCTION instance

From: Gupta, Brijesh <Brijesh.Gupta_at_Airliquide.com>
Date: Mon, 06 Aug 2001 07:46:28 -0700
Message-ID: <F001.0036166D.20010806072523@fatcity.com>

Thanks Anita,
        It was the degree of parallelism that was creating the problem. I was just checking the degree column of the dba_indexes to set the parallelism , which was 1 but the INSTANCES column was set to DEFAULT.

Brijesh

-----Original Message-----
From: A. Bardeen [mailto:abardeen1_at_yahoo.com] Sent: Friday, August 03, 2001 5:33 PM
To: ORACLE-L_at_fatcity.com; Brijesh.Gupta_at_Airliquide.com Subject: Re: Explain Plan different on TEST and PRODUCTION instance

Brijesh,

Even though OPTIMIZER_MODE=RULE, the CBO will be used in the presence of other features (e.g. partitioning, degree of parallelism, etc...).

In this case TEST is getting a better plan because the CBO is being used.  You can tell this from several features in the explain plan:

  1.  Cost = 169
      Only the CBO calculates costs.
  2.  Only the CBO uses hash joins.


The first thing I'd check is the degree of parallelism on the tables AND indexes.  In 8.0.5 and 8.1.5 the CBO is used when the indexes have a degree of parallelism
> 1 even if the tables don't (see note: 70008.1).

If you follow the flow chart in Note: 66484.1 "Which Optimizer is Used ?"  (looks best if you click on the "fixed font" above the heading for the note) you should find what's causing the CBO to be used on Test.

HTH,


Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ Received on Mon Aug 06 2001 - 09:46:28 CDT

Original text of this message

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