473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.060125010754
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 3417
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.060125010754
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.060125010754
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
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...
2
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...
2
by: brandon | last post by:
I've followed the instructions here...
2
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...
3
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,...
2
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...
11
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...
7
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.