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: Wrong Results - Bad Execution Plan

Re: Wrong Results - Bad Execution Plan

From: Henry Poras <henry_at_itasoftware.com>
Date: Mon, 19 Nov 2007 11:24:46 -0500
Message-ID: <000d01c82ac8$b3073940$8f00040a@itasoftware.com>


I'll post it if and when I get it. If this is an existing bug I haven't tracked it down yet. If it is new, Oracle hasn't assigned a bug# to it (they are still playing the 'send me your poor, your tired database and I'll see what I can do' game.).

Henry

> -----Original Message-----
> From: Bob Carlin [mailto:smeghead.rimmer_at_gmail.com]
> Sent: Saturday, November 17, 2007 12:01 PM
> To: henry_at_itasoftware.com
> Cc: oracle-l_at_freelists.org
> Subject: Re: Wrong Results - Bad Execution Plan
>
>
> Henry,
> Do you have the bug number for this issue?
>
> Henry Poras wrote:
> > Oracle can, on occasion, generate an execution plan which
> returns incorrect
> > results.
> >
> > In our 10.2.0.3 database we have two SQL queries which
> should give identical
> > result sets, but don't. Outside of a filter which does not
> apply, the
> > queries are logically identical. They do, however, resolve
> to different
> > execution plans, one of which is correct and the other
> which is WRONG.
> >

...

> >
> > For the "OUTER" query, the execution plan should read
> > VIEW
> > FILTER
> >
> > and not
> >
> > FILTER
> > VIEW
> >
> > This is the bug!!!
> >
> > The final filter in "OUTER" filters on a.1 for the MAX
> clause, not b.1 as is
> > correct, since a.1 is the only value for 1 passed through the view.
> > Henry
> >

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 19 2007 - 10:24:46 CST

Original text of this message

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