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: Different execution plans for same query with same cost

Re: Different execution plans for same query with same cost

From: Wolfgang Breitling <breitliw_at_centrexcc.com>
Date: Thu, 03 Mar 2005 10:39:18 -0700
Message-ID: <42274BC6.30004@centrexcc.com>


The optimizer IS deterministic. If it generates a different plan - even with the same cost - then something that affects its decision path was different - even if you think everything is the same.

How about posting some details.

jo_holvoet_at_amis.com wrote:
> Hi all,
>
> Oracle 8.1.7.4 on 64-bit Solaris 8.
> I've run into a situation where the same query run on the same instance
> from the same session gets a different execution plan from one run to the
> next (confirmed this with the STAT-lines in a 10046 trace). Both execution
> plans apparently get the same cost from CBO. Am I right in thinking that
> in such a case the CBO is not "deterministic" (i.e. it will not arrive at
> the same plan every time) but randomly arrive at one of the plans with the
> same lowest cost ?
>

"Both execution plans apparently get the same cost from CBO"

How do you know?

-- 
Regards

Wolfgang Breitling
Centrex Consulting Corporation
www.centrexcc.com
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Mar 03 2005 - 12:52:51 CST

Original text of this message

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