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: Mohammad Rafiq <rafiq9857_at_hotmail.com>
Date: Mon, 13 Aug 2001 14:34:52 -0700
Message-ID: <F001.0036933F.20010813135603@fatcity.com>

Just for your reading...

MOHAMMAD RAFIQ Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Date: Fri, 03 Aug 2001 15:36:05 -0800

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/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: A. Bardeen
   INET: abardeen1_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mohammad Rafiq
  INET: rafiq9857_at_hotmail.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Mon Aug 13 2001 - 16:34:52 CDT

Original text of this message

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