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 > Tool for finding slow SQLs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-09, 02:09
suryadba1 suryadba1 is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
Arrow Tool for finding slow SQLs

Hi all,

Is there any tool that finds slow running SQLs (or all the SQLs) running in given period of time?

Regards,
Bala
Reply With Quote
  #2 (permalink)  
Old 05-13-09, 04:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If you are on DB2 for Linux, UNIX, Windows, I would recommend the following command:
db2 get snapshot for dynamic sql on db-name

You will need to look in the Command Reference manual for details on this, and what monitor switches need to be set on before you run this command.
__________________
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 05-13-09, 05:27
suryadba1 suryadba1 is offline
Registered User
 
Join Date: Jan 2008
Posts: 6
Hi, Thanks.
Reply With Quote
  #4 (permalink)  
Old 05-13-09, 09:43
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
when you post it helps to know what your OS and db2 level is.

If you are on 9 you can utilize new views that are in the schema SYSIBMADM
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
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