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 > Turning on SQL logging

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-05, 17:51
madeonmoon madeonmoon is offline
Registered User
 
Join Date: Oct 2003
Posts: 15
Turning on SQL logging

Hello all,

Is there way in DB2 to turn on logging of all SQL that gets executed against a particlular database/table? In Oracle it's called 'auditing', I believe.

Thanks a lot
James
Reply With Quote
  #2 (permalink)  
Old 10-19-05, 01:13
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
audit

this is also called audit in DB2 - although this generates lot of data
monitor statement can be activated to capture dynamic statements
or see how index advisor collects workload...
or use query patroller... many possibilities todo the same..
__________________
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
  #3 (permalink)  
Old 10-21-05, 15:04
madeonmoon madeonmoon is offline
Registered User
 
Join Date: Oct 2003
Posts: 15
Thanks very much! Very helpful

Best,
James
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