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 > Sql Run Time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-01-07, 17:37
udbraja udbraja is offline
Registered User
 
Join Date: Sep 2004
Posts: 111
Arrow Sql Run Time

Team,

Is there any way to find the each SQL TOTAL run(execution) time.

For example;

db2 'select count(distinct RET) from prod.Xtable'

By running the snapshot for the above SQL I can able to see the start time of this SQL.

How to get the end time.

NO EVENT MONITOR PLEASE.

Thanks,
-R
Reply With Quote
  #2 (permalink)  
Old 05-02-07, 03:14
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
if you update monitor switches : timestamp - statement
get snapshot .. for dynamic sql
you will see : execution time...
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #3 (permalink)  
Old 05-02-07, 08:27
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You could use the db2batch utility to run your query - it will report preparation and execution times.
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