Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 1919 invoked from network); 28 Aug 2007 07:39:09 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 28 Aug 2007 07:39:08 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 988DE7313E1;
 Tue, 28 Aug 2007 08:00:30 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 19762-10; Tue, 28 Aug 2007 08:00:30 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 118AB73136B;
 Tue, 28 Aug 2007 08:00:30 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 28 Aug 2007 07:16:57 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EAE4873159C
 for <oracle-l@freelists.org>; Tue, 28 Aug 2007 07:16:56 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10046-07 for <oracle-l@freelists.org>;
 Tue, 28 Aug 2007 07:16:56 -0400 (EDT)
Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B982E73158D
 for <oracle-l@freelists.org>; Tue, 28 Aug 2007 07:16:51 -0400 (EDT)
Received: by wa-out-1112.google.com with SMTP id k22so2326218waf
        for <oracle-l@freelists.org>; Tue, 28 Aug 2007 04:55:27 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=XgF32w2RDdpnj2PTzlpUioLxfcs7+ZNNbBEUy3YCwjrcLaRpWIfGE43/fAN2qmKUAMr+qmdx8ejQfy3QoboUsw+/vgolTJZ2mzvpTDTKvUOHl/tcortKCtcFaVxK3euj8gczLQeeFtcoGCL9g8oScEzxvzfMwyMD4k8Y8DzYuow=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=PqOYS+JGwB85F3j+pBnfzOMpD6NVGIOWhjGGgN4494PKpJ0ibA9S9lq68bA3hyHM7V0/+0cqu7bRCNU0P4C6oYc2wIqNe3WaIZGwbR6/HN9y2cvuE5d2l6ukjgOl3ZpO+D334mh1pDEbCYegR6hu4ZSKxWcm9dO4cT2o8SM62+s=
Received: by 10.114.146.1 with SMTP id t1mr467126wad.1188302126686;
        Tue, 28 Aug 2007 04:55:26 -0700 (PDT)
Received: by 10.114.155.20 with HTTP; Tue, 28 Aug 2007 04:55:26 -0700 (PDT)
Message-ID: <6d0a3ba80708280455u763d09b9m48e3091c57544b8c@mail.gmail.com>
Date: Tue, 28 Aug 2007 13:55:26 +0200
From: "goran bogdanovic" <goran00@gmail.com>
To: "Ghassan Salem" <salem.ghassan@gmail.com>
Subject: Re: 10g ORDER BY Performance
Cc: oracle-l <oracle-l@freelists.org>
In-Reply-To: <411d50f60708240803y15e2d524te381cf250340f228@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_6757_16618413.1188302126647"
References: <6d0a3ba80708240721k1e8c8bbcva1f719f5ceb36d62@mail.gmail.com>
	 <411d50f60708240803y15e2d524te381cf250340f228@mail.gmail.com>
X-archive-position: 1051
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: goran00@gmail.com
Precedence: normal
Reply-to: goran00@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_6757_16618413.1188302126647
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

the parameter "_gby_hash_aggregation_enabled" is related to case where
'group by' in query (without 'order by' clause) was returning ordered data
in 9i using one method and in 10g is using another...the group by clause in
10g is enhanced to allow a hash algorithm to be used instead of  sorting
algorithm to group the data.


On 8/24/07, Ghassan Salem <salem.ghassan@gmail.com> wrote:
>
> It's not the new sort that doing this, it's the 'hash group by'
> try disabling it using
> alter ... set "_gby_hash_aggregation_enabled"=false;
>
>
> On 8/24/07, goran bogdanovic <goran00@gmail.com> wrote:
> >
> > http://jonathanlewis.wordpress.com/2007/06/03/sorting/
> >
> > you may set it for a session too:
> >
> > alter session set "_newsort_enabled"=false;
> >
>
>

------=_Part_6757_16618413.1188302126647
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<br>the parameter &quot;_gby_hash_aggregation_enabled&quot; is related to case where &#39;group by&#39; in query (without &#39;order by&#39; clause) was returning ordered data in 9i using one method and in 10g is using another...the group by clause in 10g is enhanced to allow a hash algorithm to be used instead of&nbsp; sorting algorithm to group the data.
<br><br><br><div><span class="gmail_quote">On 8/24/07, <b class="gmail_sendername">Ghassan Salem</b> &lt;<a href="mailto:salem.ghassan@gmail.com">salem.ghassan@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It&#39;s not the new sort that doing this, it&#39;s the &#39;hash group by&#39; <br>try disabling it using<br>alter ... set &quot;_gby_hash_aggregation_enabled&quot;=false;<div><span class="q" id="q_11498663f3747726_1"><br>
<br><br><div><span class="gmail_quote">On 8/24/07, 
<b class="gmail_sendername">goran bogdanovic</b> &lt;<a href="mailto:goran00@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">goran00@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<a href="http://jonathanlewis.wordpress.com/2007/06/03/sorting/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jonathanlewis.wordpress.com/2007/06/03/sorting/</a><br><br>you may set it for a session too:
<br><br><font face="Courier">
          alter session set &quot;_newsort_enabled&quot;=false;</font><br>
</blockquote></div><br>
</span></div></blockquote></div><br>

------=_Part_6757_16618413.1188302126647--
--
http://www.freelists.org/webpage/oracle-l


