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 > executiontime on snapshot for dynamic sql includes lockwait??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-08, 22:36
nivasreddy007 nivasreddy007 is offline
Registered User
 
Join Date: Jun 2007
Posts: 66
executiontime on snapshot for dynamic sql includes lockwait??

Hi all,

Execution time shown for a query in a dynamic sql snapshot does not include the time it waits on locks.Is this statement correct??
__________________
www.db2commands.net
Reply With Quote
  #2 (permalink)  
Old 12-20-08, 00:15
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
No, that statement is incorrect.
Reply With Quote
  #3 (permalink)  
Old 12-20-08, 09:09
nivasreddy007 nivasreddy007 is offline
Registered User
 
Join Date: Jun 2007
Posts: 66
Thanks for the reply.Thats what I initially thought.But when I saw all the query response times below one second and the total database lockwait time of 3000 seconds,I was confused.The application people are complaining about slow performance but we can not see any query executing for more than a second.


Does that mean all the individual queries are ok and as a transaction it is slow?Could you help me identify the bottleneck?

Thanks a ton for your help
Reply With Quote
  #4 (permalink)  
Old 12-20-08, 09:16
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
One second is a long time for an SQL statement in an OLTP application. Most SQL statements should complete within .06 seconds or less on average. Transaction response time depends on how many SQL statements are in each transaction, as there is often a lot of time spent going from the application server to the database server, and back to the application (which is not included in SQL total elapsed time).
__________________
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
  #5 (permalink)  
Old 12-20-08, 10:10
nivasreddy007 nivasreddy007 is offline
Registered User
 
Join Date: Jun 2007
Posts: 66
Thanks for the information.There is uow_execution_elapsed_time_s in snapshot_appl table function.Can we use that monitoring element to know the average transaction execution time?There are others like Uow_start_time and Uow_stop_time also.

I want to know the top 10 transactions and know the queries that are part of the transactions.Is there anyway to do so.Thanks a bunch
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