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: Q about Oracle Optimizer

RE: Q about Oracle Optimizer

From: A. Bardeen <abardeen1_at_yahoo.com>
Date: Sat, 18 Aug 2001 07:08:47 -0700
Message-ID: <F001.0037020B.20010818071620@fatcity.com>

Mohammad,

For this particular case you're probably correct. What I was attempting to explain, and not doing very well, was that the absence of statistics does NOT mean the RBO will ALWAYS be used. Many people don't realize this and assume that because they have OPTIMIZER_MODE = RULE that they will always use the RBO. Even if OPTIMIZER_MODE = RULE, the CBO will be used on queries involving partitioned tables, for example.

It doesn't help that tkprof shows the optimizer_mode for the session, not the optimizer that was actually used. So it's quite common to have the output show RULE, while the explain plan itself shows a calculated cost, hash joins, parallel query paths, and/or other features that are used only by the CBO.

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).
Received on Sat Aug 18 2001 - 09:08:47 CDT

Original text of this message

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