Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: EXPLAIN PLAN differences

Re: EXPLAIN PLAN differences

From: Patrick Meyer <buckeye234_at_excite.com>
Date: Tue, 4 Jun 2002 19:12:42 +0000 (UTC)
Message-ID: <a7abe5df553c6ebe71a4166a0b41031d.61632@mygate.mailgate.org>


I may be going out on a limb here, but it could be because the data is different. You state that one database has a lot more data than the other and that statistics have been run. Since you have run statistics, I am assuming you are using the Cost Based Optimizer.

Since the amount of data is different, the statistics are different. The CBO uses statistics to choose the execution path, so I think it's within
reason to expect that different stat's lead to different explain plans.

HTH,
Patrick

"traceable1" <traceable1_at_hotmail.com> wrote in message news:8551d8c9.0206040837.364b51f7_at_posting.google.com

> If I do an execution plan on the same query on 2 different boxes, I
> get different results (Cost 26 vs 158). What does this mean? I'm
> trying to make the two databases behave the same, but they will not.
> One box has a lot more data than the other, but statistics have been
> run. I've checked the OPTIMIZER_MODE, what else could be causing the
> difference?
> They are both Oracle 8.1.7 on W2K.
>

-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
Received on Tue Jun 04 2002 - 14:12:42 CDT

Original text of this message

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