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 > get snapshot

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-27-10, 15:57
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
get snapshot

I have DB2 v8 FP 17.

When I run get snapshot, the Total execution time I want to say is the total time that statement has been run. So does number of executions divided by total exec equal average exec time? And furthermore, what about rows read?


Number of executions = 14926
...
Rows read = 14926
....

Total execution time (sec.ms) = 135.854989
Total user cpu time (sec.ms) = 0.500000
Total system cpu time (sec.ms) = 0.031250
Statement text = SELECT name from address where lastname = ?
Reply With Quote
  #2 (permalink)  
Old 04-27-10, 20:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Yes, divide all numbers by Number of Executions to find averages.

Note that on rows read, it does not include index rows, which in some cases can satisfy the entire query in the access path.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 04-29-10, 09:10
bic bic is offline
Registered User
 
Join Date: Feb 2007
Posts: 42
Thanks.

Also, for the number of executions, is that the number since the last snapshot or?
Reply With Quote
  #4 (permalink)  
Old 04-29-10, 09:51
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
No, not since last snapshot. If you want to reset the monitors (for the session that issues the reset command and only for that session), then do this:

db2 reset monitor all
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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