Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / January 2006

Tip: Looking for answers? Try searching our database.

Rows read from statement event monitor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nekiv90@hotmail.com - 26 Jan 2006 23:53 GMT
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
Serge Rielau - 27 Jan 2006 10:36 GMT
> Greetings,
>
[quoted text clipped - 50 lines]
>    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
Signature

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

nekiv90@hotmail.com - 29 Jan 2006 23:20 GMT
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?!

> > Greetings,
> >
[quoted text clipped - 63 lines]
> DB2 UDB for Linux, Unix, Windows
> IBM Toronto Lab
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.