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: Fri, 7 Dec 2007 11:00:34 -0500
Message-ID: <004b01c838ea$4d090a80$6701a8c0@itasoftware.com>


Update on this bug. It is a problem with 'PREDICATE PULLUP'. If I disable this optimizer option (_optimizer_filter_pred_pullup=false) the filter is no longer pulled out of the view. There are a number of bugs listed in metalink associated with this feature (just search on _optimizer_filter_pred_pullup).

Henry

> -----Original Message-----
> From: oracle-l-bounce_at_freelists.org
> [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Henry Poras
> Sent: Friday, November 16, 2007 3:43 PM
> To: oracle-l_at_freelists.org
> Subject: {Spam?} Wrong Results - Bad Execution Plan
>
>
> 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!!!
>
> Henry

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 07 2007 - 10:00:34 CST

Original text of this message

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