Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id hAJ96Rc19364
 for <oracle-l@orafaq.net>; Wed, 19 Nov 2003 03:06:27 -0600
X-ClientAddr: 66.27.56.210
Received: from ns3.fatcity.com (rrcs-west-66-27-56-210.biz.rr.com [66.27.56.210])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id hAJ96Pc19356
 for <oracle-l@orafaq.net>; Wed, 19 Nov 2003 03:06:25 -0600
Received: from ns3.fatcity.com (localhost.localdomain [127.0.0.1])
 by ns3.fatcity.com (8.12.8/8.12.8) with ESMTP id hAJ6A0X3029307
 for <oracle-l@orafaq.net>; Tue, 18 Nov 2003 22:10:17 -0800
Received: (from root@localhost)
 by ns3.fatcity.com (8.12.8/8.12.5/Submit) id hAJ60POO027135
 for oracle-l@orafaq.net; Tue, 18 Nov 2003 22:00:25 -0800
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D7167; Tue, 18 Nov 2003 21:59:59 -0800
Message-ID: <F001.005D7167.20031118215959@fatcity.com>
Date: Tue, 18 Nov 2003 21:59:59 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "VIVEK_SHARMA" <VIVEK_SHARMA@infosys.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "VIVEK_SHARMA" <VIVEK_SHARMA@infosys.com>
Subject: RE: Trace (SQL) versus Statspack data 
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 8bit


We are doing Interest processing on a SET of 10,000 Bank A/cs 

SQL Query :-

select <field names>,rowid into :b0,:b1,... 
from TBA_ENTITY_INTEREST_TBL 
where (entity_id=:b105 and entity_type=:b106) 
for update of <same (above) field names>
nowait;

 
Above SQL Query Shows DIFFERING values (taken concurrently) for:-
"Execute" from SQL_TRACE = 2584
"Executions" from Statspack report = 10,000
 
Qs. What is the reason for this?
 
SQL_TRACE :-
 
call     count       cpu    elapsed       disk      query    current
rows
------- ------  -------- ---------- ---------- ---------- ----------
------
Parse        1      0.00       0.00          0          0          0
0
Execute   2584      0.55       0.55          0      10475       2783
0
Fetch     2584      0.50       0.51          0          0          0
2584
------- ------  -------- ---------- ---------- ---------- ----------
------
total     5169      1.05       1.06          0      10475       2783
2584
 
 
Statspack :-
                                                     CPU      Elapsd
  Buffer Gets    Executions  Gets per Exec  %Total Time (s)  Time (s)
Hash
Value
--------------- ------------ -------------- ------ -------- ---------
------
         51,271       10,000            5.1   23.0     4.31      3.95
1862033429
Module: icbx4008@bomitd7003 (TNS V1-V3)
select TO_CHAR(accrued_upto_date_cr,'DD-MM-YYYY HH24:MI:SS') ,TO
_CHAR(accrued_upto_date_dr,'DD-MM-YYYY HH24:MI:SS') ,TO_CHAR(las
t_accrual_run_date_cr,'DD-MM-YYYY HH24:MI:SS') ,TO_CHAR(last_acc
rual_run_date_dr,'DD-MM-YYYY HH24:MI:SS') ,TO_CHAR(booked_upto_d
ate_cr,'DD-MM-YYYY HH24:MI:SS') ,TO_CHAR(booked_upto_date_dr,'DD
 

NOTE - Actual SQL Query partly visible above too in statspack Output

Will provide any data needed

Thanks
 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: VIVEK_SHARMA
  INET: VIVEK_SHARMA@infosys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

