473,799 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rows read from statement event monitor

Greetings,

How can 'rows read' from a DB2 CALL statement incur so many reads? I
would expect it to be zero.

Could someone enlighten me on this? Thanks!

Here is output from executing event monitor on STATEMENTS:

68) Statement Event ...
Appl Handle: 1114
Appl Id: *LOCAL.TEST.060 125010754
Appl Seq number: 0008

Record is the result of a flush: FALSE
-------------------------------------------
Type : Dynamic
Operation: Execute
Section : 1
Creator : NULLID
Package : SQLC2E06
Consistency Token : AAAAAcEU
Package Version ID :
Cursor : SQLCUR1
Cursor was blocking: FALSE
Text : call sel_by_div(11, '01', 1, ?) <------ Just a call
to stored procedure!
-------------------------------------------
Start Time: 25-01-2006 12:28:30.021650
Stop Time: 25-01-2006 12:31:56.127693
Exec Time: 206.106043 seconds
Number of Agents created: 1
User CPU: 195.250000 seconds <------ High CPU usage
System CPU: 0.031250 seconds
Fetch Count: 0
Sorts: 36
Total sort time: 0
Sort overflows: 0
Rows read: 33589918 <------ High number of rows read
Rows written: 1465
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 33578377
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 74
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 65379
Bufferpool index physical reads: 0
Bufferpool temporary index logical reads: 0
Bufferpool temporary index physical reads: 0
SQLCA:
sqlcode: 100
sqlstate: 02000

Jan 27 '06 #1
2 3444
ne*****@hotmail .com wrote:
Greetings,

How can 'rows read' from a DB2 CALL statement incur so many reads? I
would expect it to be zero.

Could someone enlighten me on this? Thanks!

Here is output from executing event monitor on STATEMENTS:

68) Statement Event ...
Appl Handle: 1114
Appl Id: *LOCAL.TEST.060 125010754
Appl Seq number: 0008

Record is the result of a flush: FALSE
-------------------------------------------
Type : Dynamic
Operation: Execute
Section : 1
Creator : NULLID
Package : SQLC2E06
Consistency Token : AAAAAcEU
Package Version ID :
Cursor : SQLCUR1
Cursor was blocking: FALSE
Text : call sel_by_div(11, '01', 1, ?) <------ Just a call
to stored procedure!
-------------------------------------------
Start Time: 25-01-2006 12:28:30.021650
Stop Time: 25-01-2006 12:31:56.127693
Exec Time: 206.106043 seconds
Number of Agents created: 1
User CPU: 195.250000 seconds <------ High CPU usage
System CPU: 0.031250 seconds
Fetch Count: 0
Sorts: 36
Total sort time: 0
Sort overflows: 0
Rows read: 33589918 <------ High number of rows read
Rows written: 1465
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 33578377
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 74
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 65379
Bufferpool index physical reads: 0
Bufferpool temporary index logical reads: 0
Bufferpool temporary index physical reads: 0
SQLCA:
sqlcode: 100
sqlstate: 02000

I think (!) it may be the total of whatever happened inside of the
procedure. Coudl be easily tested...
Of course a CALL can also result in a read from the catalog, but that
should be minimal.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
Jan 27 '06 #2
Thanks, Serge.

The SP consists of 4 'declare cursor'. I broke it up and ran one at a
time with an attempt to identify the slow runing one. They all ran fast
and eventually merge them to the final version I used to have. Again,
It ran fast and the 'rows read' is zero.

No change to db/dbm settings since last testing. Don't know exectly
what happended?!
Serge Rielau wrote:
ne*****@hotmail .com wrote:
Greetings,

How can 'rows read' from a DB2 CALL statement incur so many reads? I
would expect it to be zero.

Could someone enlighten me on this? Thanks!

Here is output from executing event monitor on STATEMENTS:

68) Statement Event ...
Appl Handle: 1114
Appl Id: *LOCAL.TEST.060 125010754
Appl Seq number: 0008

Record is the result of a flush: FALSE
-------------------------------------------
Type : Dynamic
Operation: Execute
Section : 1
Creator : NULLID
Package : SQLC2E06
Consistency Token : AAAAAcEU
Package Version ID :
Cursor : SQLCUR1
Cursor was blocking: FALSE
Text : call sel_by_div(11, '01', 1, ?) <------ Just a call
to stored procedure!
-------------------------------------------
Start Time: 25-01-2006 12:28:30.021650
Stop Time: 25-01-2006 12:31:56.127693
Exec Time: 206.106043 seconds
Number of Agents created: 1
User CPU: 195.250000 seconds <------ High CPU usage
System CPU: 0.031250 seconds
Fetch Count: 0
Sorts: 36
Total sort time: 0
Sort overflows: 0
Rows read: 33589918 <------ High number of rows read
Rows written: 1465
Internal rows deleted: 0
Internal rows updated: 0
Internal rows inserted: 0
Bufferpool data logical reads: 33578377
Bufferpool data physical reads: 0
Bufferpool temporary data logical reads: 74
Bufferpool temporary data physical reads: 0
Bufferpool index logical reads: 65379
Bufferpool index physical reads: 0
Bufferpool temporary index logical reads: 0
Bufferpool temporary index physical reads: 0
SQLCA:
sqlcode: 100
sqlstate: 02000

I think (!) it may be the total of whatever happened inside of the
procedure. Coudl be easily tested...
Of course a CALL can also result in a read from the catalog, but that
should be minimal.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab


Jan 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3061
by: hype | last post by:
Hi, 1) If I need to monitor a resource eg, bufferpools at the database level across all users, how can I do this ? If snapshot monitoring needs to be done wouldn't enabling the switch at the DBM level cause performance problems ? 2)How does one find the SQL statement that a particular user session is executing? TIA,
2
2652
by: JS | last post by:
I have v8.1 fix5 using Win2k AS on 7 node logical system. I create event monitor writing to file and turn it on. Using application, I connect to db and navigate from screen to screen, generating reports using select sql. I flush the buffer, turn the event monitor off and format the data with db2evom. But, the output never contains the statement text. But, if I issue sql from the clp, these statements appear in the output. In addition,...
2
2496
by: brandon | last post by:
I've followed the instructions here (http://groups-beta.google.com/group/comp.databases.ibm-db2/browse_frm/thread/1f69a5fecafba8d8/c35658a24456ad87?tvc=1&q=db2+statement+event+monitor#c35658a24456ad87) to enable sql tracing w/ DB2 8.1. However, when I view the db2evmon output, the values in the queries have been replaced by question marks. For example: 65) Statement Event ... Appl Handle: 14 Appl Id: GA990C3C.B410.00F1C5212311 Appl...
2
2032
by: Michel Esber | last post by:
System scenario: Linux DB2 Workgroup Server V7 FixPack 13. I have a java application (JDBC v2 driver) that reads into memory a considerable amount of data (100k-300k rows), summarizes the results and then deletes data from the DB. This is done hourly. According to my developer, the application opens a cursor and (fetch next) until the end. I have created an event monitor and the SQL sent to the DB is not poorly written (it uses the...
3
5880
by: UDBDBA | last post by:
Hi All: I have a query which is running against large table. The query: SELECT DSRC_ACCT_ID, ADDR1, ADDR2, ADDR3, CITY, STATE, POSTAL_CODE, COUNT(*) FROM ERD.ADDRESSA GROUP BY DSRC_ACCT_ID, ADDR1, ADDR2, ADDR3, CITY, STATE, POSTAL_CODE HAVING COUNT(*) > 2 The applcation snapshot monitor shows: Rows selected = 181
2
1467
by: mumtaz | last post by:
I set up a few statement event monitors from CLP. How can I list all the statement event monitors and remove them. They do not show up in control centre, and I know they exist because when I try to set a new statement event monitor with a name that I used before, it gives me an error message saying that event monitor already exists. Any ideas ? thanks
11
8084
by: jimstruckster | last post by:
I have a table with 10 rows, I want all rows except for the first to be hidden when the page first opens up. If the user puts a value in a text box in the first row then I want the second row to display. If they put a value in the text box in the second row then display the third row etc. etc. etc. to 10 rows. I'm pretty new to javascript, so I'm not to sure where to start. Any help would be great, thanks a lot.
7
6610
by: Susan Mackay | last post by:
I have a data table that is connected to a database table with a data adapter in the 'standard' manner. However I want to be able to remove selected rows from the data table (i.e. no longer include them in the set that is displayed to the user) but I don't want to delete the corresponding row from the database. I've tried using the .Rows.Remove() method but an exception is thrown to say I don't have a 'delete' command in the data...
0
1631
by: sethwai | last post by:
Hi, I've created a statement monitor with the table option on a partitioned database. I have the table going to a partition group that includes all partitions on the database. When I look at the monitor results table there isn't any stmt_text output. Has anyone encountered this problem? The monitor definition and table definition as defined by db2 follows: create event monitor stmts for statements write to table
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10260
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9078
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5467
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.