From oracle-l-bounce@freelists.org  Wed May  5 12:01:07 2004
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air189.startdedicated.com (root@localhost)
 by orafaq.com (8.11.6/8.11.6) with ESMTP id i45H0qS18973
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 12:01:02 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i45H0g618955
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 12:00:52 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id 8077E72DC4A; Wed,  5 May 2004 11:50:02 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 30448-23; Wed,  5 May 2004 11:50:02 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id AAF7A72D15E; Wed,  5 May 2004 11:50:01 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 05 May 2004 11:48:36 -0500 (EST)
X-Original-To: oracle-l@freelists.org
Delivered-To: oracle-l@freelists.org
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CCFCB72DB93
 for <oracle-l@freelists.org>; Wed,  5 May 2004 11:48:32 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
 id 29462-80 for <oracle-l@freelists.org>;
 Wed,  5 May 2004 11:48:32 -0500 (EST)
Received: from agminet04.oracle.com (agminet04.oracle.com [141.146.126.231])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8B45C72DB8A
 for <oracle-l@freelists.org>; Wed,  5 May 2004 11:48:31 -0500 (EST)
Received: from agminet04.oracle.com (localhost [127.0.0.1])
 by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i45H2K9m012033
 for <oracle-l@freelists.org>; Wed, 5 May 2004 10:02:20 -0700
Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.191.12])
 by agminet04.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i45Gxwgx009344
 for <oracle-l@freelists.org>; Wed, 5 May 2004 10:00:25 -0700
Received: from localhost (localhost [127.0.0.1])
 by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id i45Gxvqv025993
 for <oracle-l@freelists.org>; Wed, 5 May 2004 10:59:57 -0600
Received: from au.oracle.com (dhcp-amer-vpn-gw2-east-141-144-66-164.vpn.oracle.com [141.144.66.164])
 by rgmgw3.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i45GxlkD025512;
 Wed, 5 May 2004 10:59:49 -0600
Message-Id: <200405051659.i45GxlkD025512@rgmgw3.us.oracle.com>
From: Pete Sharman <peter.sharman@oracle.com>
To: oracle-l@freelists.org
Cc: Peter Ross Sharman <PETER.SHARMAN@oracle.com>
Subject: RE: Wrong results using decode when db upgraded to 9205
Date: Thu, 6 May 2004 02:59:47 +1000
X-Sent-Folder-Path: Sent Items
X-Mailer: Oracle Connector for Outlook 9.0.4 60130 (10.0.4712)
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at freelists.org
X-archive-position: 4471
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: peter.sharman@oracle.com
Precedence: normal
Reply-To: oracle-l@freelists.org
X-list: oracle-l
X-Virus-Scanned: by amavisd-new at freelists.org

The rule hint will still work but is unsupported.

 =

Pete
 =

"Controlling developers is like herding cats."
Kevin Loney, Oracle DBA Handbook
 =

"Oh no, it's not.  It's much harder than that!"
Bruce Pihlamae, long-term Oracle DBA

-----Original Message-----
From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
On Behalf Of Duret, Kathy
Sent: Thursday, 6 May 2004 2:45 AM
To: 'oracle-l@freelists.org'
Subject: RE: Wrong results using decode when db upgraded to 9205

A question about using the Rule hint for new code?

Forgive me, but isn't the rule going away in 10G and I would assume the rul=
e
hint would no longer work or rather be ignored in 10G so why put rule into
new code to have to rewrite it when you migrate to 10G.

Haven't tested it in 10G so I don't know for sure.  Has anyone?


Kathy

-----Original Message-----
From: Jamadagni, Rajendra [mailto:Rajendra.Jamadagni@espn.com]
Sent: Wednesday, May 05, 2004 11:26 AM
To: oracle-l@freelists.org
Subject: RE: Wrong results using decode when db upgraded to 9205


I just found that the query in question works ... In following
conditions ...

1. using case structure instead of DECODE
2. by running the report with cursor_sharing=3D3Dexact or providing
cursor_sharing_exact hint at statement level
3. Running the select with rule hint.

BTW it is not datatype conversion issue, the actual decode statement is
as follows ...

"and decode('C8','C8','237','0') =3D3D '237'"
=3D20
It is becoming obvious to me that this is an optimizer issue. I'll be
digging further ... =3D20

Raj
------------------------------------------------------------------------
--------=3D20
Rajendra dot Jamadagni at nospamespn dot com=3D20
All Views expressed in this email are strictly personal.=3D20
select standard_disclaimer from company_requirements;=3D20
QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Stefan Jahnke
Sent: Wednesday, May 05, 2004 11:56 AM
To: oracle-l@freelists.org
Subject: AW: Wrong results using decode when db upgraded to 9205

Hi again

Sorry, haven't looked into it. Since we already changed everything to =3D
=3D3D
CASE on 9.2.0.4.0. The reason wasn't a bug but to be coherent with the =3D
=3D3D
usage of DECODE / CASE. We agreed upon ANSI style stuff (INNER JOIN, =3D3D
CASE blahblah) since 2 developers have a SQL Server background and seem
=3D3D to comprehend that faster (no pun intended, they're great).

Stefan


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------



This transmission contains information solely for intended recipient and ma=
y
be privileged, confidential and/or otherwise protect from disclosure.  If
you are not the intended recipient, please contact the sender and delete al=
l
copies of this transmission.  This message and/or the materials contained
herein are not an offer to sell, or a solicitation of an offer to buy, any
securities or other instruments.  The information has been obtained or
derived from sources believed by us to be reliable, but we do not represent=

that it is accurate or complete.  Any opinions or estimates contained in
this information constitute our judgment as of this date and are subject to=

change without notice.  Any information you share with us will be used in
the operation of our business, and we do not request and do not want any
material, nonpublic information. Absent an express prior written agreement,=

we are not agreeing to treat any information confidentially and will use an=
y
and all information and reserve the right to publish or disclose any
information you share with us.
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request@freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------

