Unix Technical Forum

Log mining

This is a discussion on Log mining within the DB2 forums, part of the Database Server Software category; --> Is there a way to read the (archived) logical log files to see the sql statemets that got executed. ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 06:40 AM
Rana
 
Posts: n/a
Default Log mining

Is there a way to read the (archived) logical log files to see the sql
statemets that got executed. The classic example is when 'some joe'
programmer ran a bad query, trashed the database and then come back and
blame the dbas for ' you did it all', how can we defend ourselves? I
know a very round about way using db2 recover expert, is that the only
way ?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 06:41 AM
theman
 
Posts: n/a
Default Re: Log mining

You could write C/C++ code using the admin API to mine the log.
Take a look at db2ReadLog and the log record structures in the docs.

You could also look at the db2 audit features.

HTH.
theman.


Rana wrote:
> Is there a way to read the (archived) logical log files to see the sql
> statemets that got executed. The classic example is when 'some joe'
> programmer ran a bad query, trashed the database and then come back and
> blame the dbas for ' you did it all', how can we defend ourselves? I
> know a very round about way using db2 recover expert, is that the only
> way ?


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com