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 > Retrieving SQL statements from Log files (like LogMiner for Oracle)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-05, 18:03
samchan80 samchan80 is offline
Registered User
 
Join Date: Oct 2005
Posts: 2
Retrieving SQL statements from Log files (like LogMiner for Oracle)

I have DB2 UDB v8.2 installed on Windows XP. I am looking for a way to read SQL transactions from the log files (specifically Inserts, Updates and Deletes). I would like to get information like table, fields modified, user, etc.

To give a better idea, I'm looking for something like LogMiner that's available for Oracle. Even something like SQL Profiler (SQL Server) would do. I want to know if there's anything I can do without using third-party software.

I tried the Activity Monitor but it did not display Inserts, updates, etc that I would do from the Command Editor (Java console), and so did not serve my purpose. I also searched extensively on the net but haven't found anything concrete.

Hopefully someone out there would help me out! Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-13-05, 23:37
charles_su charles_su is offline
Registered User
 
Join Date: Sep 2005
Posts: 12
I think no utility as logminer in DB2
Reply With Quote
  #3 (permalink)  
Old 10-14-05, 11:48
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
sql log

only db2 recovery expert has the possibility to extract the statements from the log or to create new minilogs from logs....
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
Reply With Quote
  #4 (permalink)  
Old 10-14-05, 16:21
samchan80 samchan80 is offline
Registered User
 
Join Date: Oct 2005
Posts: 2
thanks for your help guys.

also, is there a way I could send specific fields from the committed SQL transactions (say tablename, field, etc) to a Microsoft Message queue?
Reply With Quote
  #5 (permalink)  
Old 10-15-05, 09:56
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,126
If db2 recovery expert can extract that data from the logs, then that information should be in it.
Is the DB2 log format documented somewhere?
In that case, it should be fairly easy to write a perl script to extract and present the useful info.
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