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 > want to retrieve SQL which ran last night

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-08, 09:33
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
want to retrieve SQL which ran last night

Hi all,

Can I retrieve SQL which ran last night , I dont have any event monitor setup but isnt there any way to know which SQL ran at what time.
Reply With Quote
  #2 (permalink)  
Old 03-05-08, 10:35
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I think the only ways you can get that kind of information is with an event monitor or using Query Patroller.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-05-08, 10:40
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
query patroller is an add on tool. right?
Reply With Quote
  #4 (permalink)  
Old 03-05-08, 10:45
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes it is.

Andy
Reply With Quote
  #5 (permalink)  
Old 03-05-08, 10:48
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by azs0309
Hi all,

Can I retrieve SQL which ran last night , I dont have any event monitor setup but isnt there any way to know which SQL ran at what time.
You can get this info many different ways be it home grown tool or what you buy from some vendor. Bun NON of them will tell you today where you have been yesterday unless you buy a crystal ball.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #6 (permalink)  
Old 03-05-08, 10:57
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
How should this work? You don't tell DB2 to collect anything and then expect it to do that nevertheless?

The only option you have is to analyze the DB2 log records to figure out which effects any data modification statements had. The DB2 Log Analyzer tool/product can help you there.
__________________
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