Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 24625 invoked from network); 26 Apr 2007 13:27:58 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 26 Apr 2007 13:27:57 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 479B86C3BDF;
 Thu, 26 Apr 2007 14:26:16 -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 12403-07; Thu, 26 Apr 2007 14:26:16 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B167E6C3BDD;
 Thu, 26 Apr 2007 14:26:15 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 26 Apr 2007 13:46:35 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DA7AC6C30F0
 for <oracle-l@freelists.org>; Thu, 26 Apr 2007 13:46:34 -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 05964-04 for <oracle-l@freelists.org>;
 Thu, 26 Apr 2007 13:46:34 -0400 (EDT)
Received: from outbound8-blu-R.bigfish.com (outbound-blu.frontbridge.com [65.55.251.16])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C68E26C30D3
 for <oracle-l@freelists.org>; Thu, 26 Apr 2007 13:46:33 -0400 (EDT)
Received: from outbound8-blu.bigfish.com (localhost.localdomain [127.0.0.1])
 by outbound8-blu-R.bigfish.com (Postfix) with ESMTP id EF5CF13301EF;
 Thu, 26 Apr 2007 17:48:11 +0000 (UTC)
Received: from mail75-blu-R.bigfish.com (unknown [10.1.252.3])
 by outbound8-blu.bigfish.com (Postfix) with ESMTP id DFBC6600055;
 Thu, 26 Apr 2007 17:48:11 +0000 (UTC)
Received: from mail75-blu (localhost.localdomain [127.0.0.1])
 by mail75-blu-R.bigfish.com (Postfix) with ESMTP id 1D54CB901BB;
 Thu, 26 Apr 2007 17:48:11 +0000 (UTC)
X-BigFish: VP
Received: by mail75-blu (MessageSwitch) id 117760969047624_11640; Thu, 26 Apr 2007 17:48:10 +0000 (UCT)
Received: from dsmtpg04.col.discoverfinancial.com (dsmtpg04.col.discoverfinancial.com [12.41.53.18])
 (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
 (No client certificate requested)
 by mail75-blu.bigfish.com (Postfix) with ESMTP id 954751A6005F;
 Thu, 26 Apr 2007 17:48:09 +0000 (UTC)
Received: from dsmtpg01.novus.relay (DSMTPG01 [12.41.53.12])
 by dsmtpg04.col.discoverfinancial.com       with ESMTP id l3QHmP4A052286;
 Thu, 26 Apr 2007 13:48:35 -0400
Received: from dfscolm02.co.discoverfinancial.com (dfscolm02.co.discoverfinancial.com [199.12.96.170])
 by dsmtpg01.novus.relay  with ESMTP id l3QHkZM39198;
 Thu, 26 Apr 2007 13:46:35 -0400
In-Reply-To: <AA29A27627F842409E1D18FB19CDCF270C0BB8E3@AABO-EXCHANGE02.bos.il.pqe>
Subject: RE: direct path read/write temp waits
To: Mark.Bobak@il.proquest.com, oracle-l@freelists.org
Message-ID: <OF641EECB8.DBECA743-ON862572C9.00616E15-862572C9.0061A324@discoverfinancial.com>
From: genegurevich@discoverfinancial.com
Date: Thu, 26 Apr 2007 12:46:30 -0500
X-MIMETrack: Serialize by Router on DFSCOLM02/MSRV/DFSI(Release 7.0.1FP1|April 17, 2006) at
 04/26/2007 12:46:31
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
X-archive-position: 48333
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: genegurevich@discoverfinancial.com
Precedence: normal
Reply-to: genegurevich@discoverfinancial.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

Mark,

I am seeing this:

      505 sorts (disk)
0
       505 sorts (rows)
0
       505 sorts (memory)
0
       515 sorts (disk)
0
       515 sorts (rows)
0
       515 sorts (memory)
0
       519 sorts (rows)
0
       519 sorts (disk)
0
       519 sorts (memory)
0
       545 sorts (disk)
0
       545 sorts (memory)
0
       545 sorts (rows)
0
       576 sorts (disk)
0
       576 sorts (rows)
0
       576 sorts (memory)
0
       580 sorts (rows)
0
       580 sorts (memory)
0
       580 sorts (disk)
0
       642 sorts (memory)
1
       642 sorts (disk)
1
       642 sorts (rows)
1269
       655 sorts (rows)
0
       655 sorts (disk)
0
       655 sorts (memory)
0
       668 sorts (rows)
80243
       668 sorts (disk)
3
       668 sorts (memory)
37
       679 sorts (memory)
1
       679 sorts (disk)
1
       679 sorts (rows)
1270
       745 sorts (rows)
0
       745 sorts (memory)
0
       745 sorts (disk)
0

The two sids with the highest number of sorts though (688 and 642) are some
other sessions.

thank you

Gene Gurevich
Oracle MySQL Operations - OMO
224-405-4079


                                                                           
             "Bobak, Mark"                                                 
             <Mark.Bobak@il.pr                                             
             oquest.com>                                                To 
             Sent by:                  <genegurevich@discoverfinancial.com 
             oracle-l-bounce@f         >, <oracle-l@freelists.org>         
             reelists.org                                               cc 
                                                                           
                                                                   Subject 
             04/25/2007 01:13          RE: direct path read/write temp     
             PM                        waits                               
                                                                           
                                                                           
             Please respond to                                             
             Mark.Bobak@il.pro                                             
                 quest.com                                                 
                                                                           
                                                                           




Yeah, the 301 and 302 datafile ids means that you have db_files set to
300.  Tempfiles start numbering w/ db_files+1.

As to the sort analysis, what do you get if you do:
 select vsn.name, vss.value
   from v$sesstat vss,
        v$statname vsn
  where vsn.name like '%sort%'
    and vss.statistic# = vsn.statistic#
    and vss.sid in(select vs.sid
                     from v$session vs,
                          v$sort_usage vsu
                   where vs.saddr=vsu.session_addr);




-Mark


--
Mark J. Bobak
Senior Oracle Architect
ProQuest/CSA

"There are 10 types of people in the world:  Those who understand
binary, and those who don't."

-----Original Message-----
From: oracle-l-bounce@freelists.org
[mailto:oracle-l-bounce@freelists.org] On Behalf Of
genegurevich@discoverfinancial.com
Sent: Wednesday, April 25, 2007 1:08 PM
To: oracle-l@freelists.org
Subject: direct path read/write temp waits


Hi all

I'm trying to find out a way to deal with direct path read/write temp
waits. I am loading a table as a select  from another table

insert /*+ append */ into table1 (select col1, col2, sum ... from table2
group by ...);

While this is running I see a number of the direct path read/write temp
waits in the v$session_waits table I have found a document dealing with
this waits on metalink
(http://download-east.oracle.com/docs/cd/B14117_01/server.101/b10752/ins
tance_tune.htm)
The file_id that I am seeing are 301 and 302. I only have 55 datafiles
in this database so this is definitely a TEMP tablespace. If I read that
document correctly, this means that the sorts are too large to fit in
memory and some data are written to disk. I have however checked the
sessstat table for the sessions listed in the tempseg_usage view and
found no data for sorts. I am not sure how to reconcile these two pieces
of data.

I am also doing a full scan of one partition in the table2. Both tables
are parallelized. My oracle version is 10.2.0.3

thanks for any suggestion

Gene Gurevich


--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l






--
http://www.freelists.org/webpage/oracle-l


