If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > High row reads issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-11-07, 09:08
dbridle dbridle is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
High row reads issue

Hello everyone, first time posting here and just browsing around it looks like a great community

First the Versions :
DB2 v8.1.1.128
Type DB2ESE
Running on AIX

One of our customers was noticing an extremely slow response speeds. I ran some monitoring and the snapshot of the database revealed a dramaticly increasing rows read. I'm talking in the region of 3-4 million an hour! This is far too much for the system.

Is there a way of tracking down which is the offending table or query that is causing this?

Many thanks,

Darren Bridle

Last edited by dbridle; 12-11-07 at 09:29.
Reply With Quote
  #2 (permalink)  
Old 12-11-07, 09:46
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes. Use the snapshot monitor for Dynamic SQL or Table to get this info.

You can use the freeware monitor application located at:

http://chuzhoi_files.tripod.com/index.html

It is very useful and you can sort the columns to find those with the most rows read.

Andy
Reply With Quote
  #3 (permalink)  
Old 12-11-07, 09:55
dbridle dbridle is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
ARWinner thanks for your reply.

Problem is the database has hundreds of tables so it would be like looking for a needle in a haystack to use snapshot on a table. Also I have no idea what the offending sql statement is that would cause it. Maybe I do need to go through every table?
Reply With Quote
  #4 (permalink)  
Old 12-11-07, 10:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Download and use the monitor I mentioned earlier. It has separate sections for SQL and Tables among others. You can then sort the lists presented by rows_read and quickly see the objects with the most.

Andy
Reply With Quote
  #5 (permalink)  
Old 12-11-07, 10:02
dbridle dbridle is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
I can't use any software like that due to remote access to the aix box through an F5

It would have to be a command line based query.
Reply With Quote
  #6 (permalink)  
Old 12-11-07, 10:05
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You can also use SQL to get the snapshot data, sort it the way you want, and then fetch the first n rows.

Andy
Reply With Quote
  #7 (permalink)  
Old 12-11-07, 10:38
dbridle dbridle is offline
Registered User
 
Join Date: Dec 2007
Posts: 7
Most of the high reads, are 1 statement reading upwards of 7,000 reads. I can understand that maybe it should be an indexed field and so on to reduce hte reads, interestingly though there are 0 sql executions?

Any reason why so many reads without an execution?
Reply With Quote
  #8 (permalink)  
Old 12-11-07, 10:47
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I think it is how snapshots work. You probably have the the monitor switches turned off by default. So the numbers are not being accumulated until you run the snapshot. If you keep the session live for the snapshots, and turn on the monitor switches, and run subsequent snapshots, you should see the executions go up as time progresses.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On