View previous topic :: View next topic |
Author |
Message |
manu Beginner
Joined: 26 Dec 2002 Posts: 47 Topics: 19
|
Posted: Fri Dec 15, 2017 9:52 am Post subject: Determining run time of DB2 SQL query |
|
|
I have a SQL query and wants to determine the approximate run times of the query. Can I do it using QMF or SPUFI or any other tools. Please let me know your suggestions. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
NASCAR9 Intermediate
Joined: 08 Oct 2004 Posts: 274 Topics: 52 Location: California
|
Posted: Fri Dec 15, 2017 12:02 pm Post subject: |
|
|
In the past Auditing was very expensive for CPU in our shop.
This is a little rough, but it will get the job done.
If the time does not have to be 100% perfect you could do something like this:
Code: |
SELECT CURRENT TIMESTAMP, 'START', 'YOUR SQL NAME'
FROM SYSIBM.SYSDUMMY1;
YOUR SQL
SELECT CURRENT TIMESTAMP, 'END', 'YOUR SQL NAME'
FROM SYSIBM.SYSDUMMY1;
|
Load the Timestamp info in a table and query the delta for your jobs.(you can write the insert)
Just a thought _________________ Thanks,
NASCAR9 |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Fri Dec 15, 2017 12:26 pm Post subject: |
|
|
NASCAR9,
I think OP wanted to check if a particular Query is run by ANY user from anywhere (TSO, BATCH, SPUFI, QMF, Program....) _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
manu Beginner
Joined: 26 Dec 2002 Posts: 47 Topics: 19
|
Posted: Mon Dec 18, 2017 9:41 am Post subject: |
|
|
Kolusu and NASCAR9
Thanks for you inputs on this. I will review and get back if needed. Thanks. |
|
Back to top |
|
|
|
|