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 > Long running query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-08, 08:32
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
Long running query

DB2 on Windows V 9.5 FIXPACK1 enterprise edition

We have a report that has been running WAY too long (according to the programmer)

Used to run an hour and all of a sudden it is running about 2 1/2 hours.

what is the best way to troubleshoot this? I'm just learning UDB. Is there a trace function that I can run to capture the SQL as the report runs? What other options for troubleshooting this are there? Any help would be greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 10-23-08, 15:27
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
first of developer should be able to provide the SQL to you. If that fails... you can always create an event monitor and capture the SQL that is running. Event monitor is described nicely in the manual.

There are many things that can cause SQL to run longer then usual.
Look at the database changes that have taken place.
Data quantity change
SQL change
Architecture change

Those are just a few to begin with.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 10-23-08, 15:48
itsonlyme44 itsonlyme44 is offline
Registered User
 
Join Date: Dec 2007
Posts: 261
event monitor!!!! I think that's the ticket. Thank you!
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