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 End Time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-07, 16:35
udbraja udbraja is offline
Registered User
 
Join Date: Sep 2004
Posts: 111
Thumbs up Sql End Time

Team,

Is there any way to track the SQL end time.
I would like to automate in the script to track the SQL start time and end time.

We have adhoc query environment and needs SQL tracking.
Some SQL we have static which executes weekly, monthly -- We need to track the end time for these SQL.

We can capture start time by using list applications command.

Please help. If any one has script that capture SQL end time that will be helpful.

Thanks,
Reply With Quote
  #2 (permalink)  
Old 06-25-07, 05:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Do you want to capture the execution times of SQL statements or the duration SQL sessions (connections)?

I would probably do this in the application: take the current timestamp before the statement/session is initiated and take the current timestamp at the end. But I don't know exactly what you are after and which options you have in your environment.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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