From oracle-l-bounce@freelists.org  Mon Aug  8 14:45:41 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j78JjeJf016331
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 14:45:40 -0500
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j78JjcIP016315
 for <oracle-l@orafaq.com>; Mon, 8 Aug 2005 14:45:38 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4F8681DD02B;
 Mon,  8 Aug 2005 13:54:27 -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 20475-05; Mon, 8 Aug 2005 13:54:27 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B28EE1DD4CA;
 Mon,  8 Aug 2005 13:54:26 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
  b=fEu1QhyQSRZlne+Ojz928Vc/i2Op1GInw2KQvYxKuvZDcFG9pf7CFb0hCQGl9soPeRzOMcXr00CRErjkSi4Fl461BYhLuIkZZDmoErG+g1isYQ3cjchXAaYjcKdBYg/3VZ+WytgtyRtx3cvU9IDfFGWkCCl1+NjQUPthXa4YU3w=  ;
Message-ID: <20050808185230.80697.qmail@web52811.mail.yahoo.com>
Date: Mon, 8 Aug 2005 11:52:30 -0700 (PDT)
From: Deepak Sharma <sharmakdeep_oracle@yahoo.com>
Subject: RE: Buffer Sort explanation
To: Christian.Antognini@trivadis.com
Cc: oracle-l@freelists.org
In-Reply-To: <F2C9CCA71510B442AF71446CAE8AEBAF0ABFD5@MSXVS04.trivadis.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-archive-position: 23587
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: sharmakdeep_oracle@yahoo.com
Precedence: normal
Reply-To: sharmakdeep_oracle@yahoo.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-mailscan-MailScanner-Information: Please contact the ISP for more information
X-mailscan-MailScanner: Found to be clean
X-MailScanner-From: oracle-l-bounce@freelists.org
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=-3.9 required=5.0 tests=AWL,BAYES_00,
 FORGED_YAHOO_RCVD,UPPERCASE_25_50 autolearn=no version=2.63

The temp_disable did get rid of the TEMP table
creation step in the star_transformation plan, but
tkprof still shows a very high BUFFER SORT, and the
query failed w/ 'snapshot too old' after 3 Hrs. With
the temp table step, it did finish in 2 1/2 hrs or so.

=====
      105       BITMAP MERGE
   352207        BITMAP KEY ITERATION
128553935           BUFFER SORT
  1627265          TABLE ACCESS BY GLOBAL INDEX ROWID
OBJ#(1433369) PARTITION: ROW LOCATION ROW LOCATION
  1627265           INDEX RANGE SCAN OBJ#(1433605)
(object id 1433605)
   352207         BITMAP INDEX RANGE SCAN
OBJ#(3441108) PARTITION: 1 177 (object id 3441108)


--- Christian Antognini
<Christian.Antognini@trivadis.com> wrote:

> Hi
> 
>  
> 
> >  Rows       Operation
> >  ========= 
> =======================================
> >a)       105 BITMAP MERGE
> >b)    351549    BITMAP KEY ITERATION
> >c) 127009880     BUFFER SORT
> >d)   1607720      TABLE ACCESS FULL
> SYS_TEMP_4254956840
> >e)    351549   BITMAP INDEX RANGE SCAN
> OBJ#(3441108)
> 
>  
> 
> I'm not able to explain you what the BUFFER SORT
> exactly does in this case (it should only get the
> data from the temporary table and prepare them for
> the "join" with the index on the fact table...
> Anyway, each time I have a problem with a star
> transformation with temporary tables I try to
> disable the temporary tables (they were/are buggy!).
> Therefore try
> star_transformation_enabled=temp_disable.
> 
>  
> 
>  
> 
> Regards,
> 
> Chris
> 
>  
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
http://www.freelists.org/webpage/oracle-l

