Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id E0A6E196026F
 for <oracle-l@orafaq.com>; Thu,  8 Aug 2013 20:30:32 +0200 (CEST)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTP
 for <oracle-l@orafaq.com>; Thu,  8 Aug 2013 20:30:32 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5A7DF241EF;
 Thu,  8 Aug 2013 14:30:31 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
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 AsySE+-KPvyo; Thu,  8 Aug 2013 14:30:31 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DBE4324100;
 Thu,  8 Aug 2013 14:29:49 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 08 Aug 2013 14:29:08 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 182D623F70
 for <oracle-l@freelists.org>; Thu,  8 Aug 2013 14:29:08 -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 OIRvzLm0ar-a for <oracle-l@freelists.org>;
 Thu,  8 Aug 2013 14:29:08 -0400 (EDT)
Received: from pps.mail.medcity.net (hcalegaldev20.mail.medcity.net [199.91.33.184])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A17A522DAC
 for <oracle-l@freelists.org>; Thu,  8 Aug 2013 14:29:07 -0400 (EDT)
Received: from pps.filterd (NADCLZMSGPMG01B.medcity.net [127.0.0.1])
 by NADCLZMSGPMG01B.medcity.net (8.14.5/8.14.5) with SMTP id r78INsp7021286
 for <oracle-l@freelists.org>; Thu, 8 Aug 2013 13:29:06 -0500
Received: from pps.mail.medcity.net ([10.26.43.100])
 by NADCLZMSGPMG01B.medcity.net with ESMTP id 1e2ha049gw-1
 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)
 for <oracle-l@freelists.org>; Thu, 08 Aug 2013 13:29:06 -0500
Received: from nadcwpmsght01.hca.corpad.net (nrdc-f5-frontside.mgmt.medcity.net [10.26.109.5])
 by NADCLPMSGPMG02A.hca.corpad.net (8.14.5/8.14.5) with ESMTP id r78IT5Qb005824
 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT)
 for <oracle-l@freelists.org>; Thu, 8 Aug 2013 13:29:05 -0500
Received: from NADCWPMSGCMS10.hca.corpad.net ([10.26.103.29]) by
 nadcwpmsght01.hca.corpad.net ([10.26.103.51]) with mapi; Thu, 8 Aug 2013
 13:29:05 -0500
From: <Christopher.Taylor2@Parallon.com>
To: <oracle-l@freelists.org>
Date: Thu, 8 Aug 2013 13:29:03 -0500
Subject: Perhaps a _REALLY_ dumb question from an experienced dba?
Thread-Topic: Perhaps a _REALLY_ dumb question from an experienced dba?
Message-ID: <F05D8DF1FB25F44085DB74CB916678E887A4F0CE79@NADCWPMSGCMS10.hca.corpad.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-type: text/plain
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-archive-position: 50135
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: Christopher.Taylor2@Parallon.com
Precedence: normal
Reply-To: Christopher.Taylor2@Parallon.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

Env: 10.2.0.4 Oracle 3 node RAC on RHELinux 64-bit
Oracle Docs say:
--------------------------------------------------------------------
Stage 8: Fetch Rows of a Query Result
In the fetch phase, rows are selected and ordered (if requested by the query), and each successive fetch retrieves another row of the result, until the last row has been fetched.
----------------------------------------------------------------------
So is that telling me that each FETCH runs through the execution plan selecting data?  Or is that telling me each FETCH selects from the result that has already been built in the previous execute phase? (I was thinking the latter not the former)

The reason I ask this is that I have a query that has the following statistics and I'm completely puzzled.

(If anyone would like to banter off list, I can put together a side email with a trace file, SQL statement etc)

Fetches: 2, Rows 10
Fetch Time CPU = 17,308.3267s
Fetch Time Elapsed = 16,924.2760s

Consistent Reads = 202,866
Physical Reads = 0

Statement Cumulative Statistics
Call    Cache
Misses  Count   - Seconds -     Physical
Reads   - Logical Reads -       Rows
                        CPU     Elapsed         Consistent      Current
Parse   1       1       0.0990s 0.1036s 0       54      0       0
Exec    0       1       0.0010s 0.0009s 0       0       0       0
Fetch           2       17,308.3267s    16,924.2760s    0       202,866 0       10
Total   1       4       17,308.4267s    16,924.3804s    0       202,920 0       10

Per Fch 0.5     2.0     8,654.2134s     8,462.1902s     0.0     101,460.0       0.0     5.0
Per Row 0.1     0.4     1,730.8427s     1,692.4380s     0.0     20,292.0        0.0     1.0

Statement Flat Profile
Event Name      % Time  Seconds Calls   - Time per Call -
                                Avg     Min     Max
FETCH calls [CPU]       100.0%  17,308.3247s    2       8,654.1624s     0.0010s 17,308.3237s
SQL*Net message from client [idle]      0.0%    0.2447s 1       0.2447s 0.2447s 0.2447s
PARSE calls [CPU]       0.0%    0.0980s 1       0.0980s 0.0980s 0.0980s
gc cr block 2-way       0.0%    0.0427s 119     0.0004s 0.0003s 0.0006s
gc cr block 3-way       0.0%    0.0262s 54      0.0005s 0.0004s 0.0010s
library cache lock      0.0%    0.0051s 21      0.0002s 0.0002s 0.0007s
EXEC calls [CPU]        0.0%    0.0010s 1       0.0010s 0.0010s 0.0010s
row cache lock  0.0%    0.0004s 1       0.0004s 0.0004s 0.0004s
SQL*Net message from client     0.0%    0.0004s 1       0.0004s 0.0004s 0.0004s
SQL*Net message to client       0.0%    0.0000s 2       0.0000s 0.0000s 0.0000s
Total   100.0%  17,308.7433s

Chris D. Taylor
Oracle DBA
Parallon ITS
6640 Carothers Parkway
Franklin, TN  37067
P:  615.344-8419
christopher.taylor2@parallon.com
www.parallon.com<http://www.parallon.com>



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


