From oracle-l-bounce@freelists.org  Wed May  5 12:43:16 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 i45HgpD26827
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 12:43:01 -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 i45Hge626781
 for <oracle-l@orafaq.com>; Wed, 5 May 2004 12:42:50 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id 6D1CF72D43C; Wed,  5 May 2004 12:33: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 06079-70; Wed,  5 May 2004 12:33:02 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP
 id B283972D757; Wed,  5 May 2004 12:33:01 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Wed, 05 May 2004 12:31:45 -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 BBABD72D258
 for <oracle-l@freelists.org>; Wed,  5 May 2004 12:31:44 -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 06079-35 for <oracle-l@freelists.org>;
 Wed,  5 May 2004 12:31:44 -0500 (EST)
Received: from smtp.wangtrading.com (smtp.wangtrading.com [167.206.68.5])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 17B5172D395
 for <oracle-l@freelists.org>; Wed,  5 May 2004 12:31:44 -0500 (EST)
Received: from mladen.wangtrading.com (Not Verified[192.168.3.47]) by smtp.wangtrading.com with NetIQ MailMarshal (v5.5.5.8)
 id <B00005a73f>; Wed, 05 May 2004 13:43:23 -0400
Received: from mladen (localhost.localdomain [127.0.0.1])
 by mladen.wangtrading.com (8.12.8/8.12.8) with ESMTP id i45HjWFp003231
 for <oracle-l@freelists.org>; Wed, 5 May 2004 13:45:32 -0400
Date: Wed, 5 May 2004 13:45:32 -0400
From: Mladen Gogala <mladen@wangtrading.com>
To: oracle-l@freelists.org
Subject: Re: Wrong results using decode when db upgraded to 9205
Message-ID: <20040505174532.GC3154@mladen.wangtrading.com>
References: <07BA8175B092D611B1DE00B0D049A31501B0B74A@exchange.ad.starkinvestments.com> <40991EBE.1C471491@sun.com>
Mime-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <40991EBE.1C471491@sun.com> (from Daniel.Fink@Sun.COM on Wed, May 05, 2004 at 13:05:02 -0400)
X-Mailer: Balsa 2.0.17
Lines: 21
X-Virus-Scanned: by amavisd-new at freelists.org
X-archive-position: 4479
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: mladen@wangtrading.com
Precedence: normal
Reply-To: oracle-l@freelists.org
X-list: oracle-l
X-Virus-Scanned: by amavisd-new at freelists.org


On 05/05/2004 01:05:02 PM, Daniel Fink wrote:
> Contrary to rumor, the RBO is alive and well in 10g (though
> supposed to be on it's last legs).

Well, it is alive, but not well. If you don't change defaults, 10g does
dynamic sampling all by itself and you will always get some statistics.
which means that you will always get CBO, unless you reset dynamic sampling 
and disable statistics collection with dbms_scheduler.disable('GATHER_STATS_JOB')
DBMS_SCHEDULER is DBMS_JOB on steroids. Also, you cannot set optimizer_mode to
rule in init.ora (OK, OK, it's spfile.ora), there is no /*+ RULE */ hint and 
oracle did everything to make the use of RBO as inconvenient as possible.
Also, there is no documentation, so I don't know whether RBO  will prune
partitions, do hash joins or perform an index skip-search (OK, I know that RBO
will not do thiat, but not from 10g documentation). Fortunately, the event
10053 still works as it is supposed to, so we can take a peek under the hood.


-- 
Mladen Gogala
Oracle DBA



Note:
This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

----------------------------------------------------------------
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
-----------------------------------------------------------------

