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 > Audit Trail of DML statements

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-06, 07:07
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
Question Audit Trail of DML statements

First of All I would like to appreciate all of you, I realy wonder how the questions are answered at this forum. Thanks all to you

What is the mechanism in DB2 8.2 to handle the Audit trail of DML Statements.

I want to record all the changes in any table(Data Deletion, Insertion , and Updation).
Is there need to create triggers on each table OR Is there any DB2 System lavel thing availabe to handle this requirement.

Istikhar
Reply With Quote
  #2 (permalink)  
Old 10-04-06, 04:22
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
The article below provide a plenty of details to solve the AUDIT Trail ISSUE

DB2 Tracking Database Changes
By Marin Komadina at the URL http://www.databasejournal.com/featu...le.php/3438801


Istikhar
Reply With Quote
  #3 (permalink)  
Old 10-04-06, 20:20
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Istikhar, thanks for providing a follow-up on this one ?

Are you using this one currently in your shop ?

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 10-05-06, 01:22
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
Sathyaram,

We are looking for DB2 AUDIT Trail facility for our requirements(DML Statements).


The following URLS provide some details

http://publib.boulder.ibm.com/infoce...n/c0005483.htm

http://publib.boulder.ibm.com/infoce...n/t0011540.htm

http://publib.boulder.ibm.com/infoce...n/c0005686.htm

Audit facility can control the following actions within the audit facility:

Start recording auditable events within the DB2 UDB instance.
Stop recording auditable events within the DB2 UDB instance.
Configure the behavior of the audit facility, including selecting the categories of the auditable events to be recorded.
Request a description of the current audit configuration.
Flush any pending audit records from the instance and write them to the audit log.
Extract audit records by formatting and copying them from the audit log to a flat file or ASCII delimited files. Extraction is done for one of two reasons: in preparation for analysis of log records or in preparation for pruning of log records.
Prune audit records from the current audit log.

How to get the Audit Trail of DML statements by going through the aforementioned details is an issue for us.

Thanks for your comments.

Istikhar

istikhar@gmail.com
Reply With Quote
  #5 (permalink)  
Old 10-05-06, 07:32
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
List of possible CHECKING access attempted types
available at this URL http://publib.boulder.ibm.com/infoce...n/r0005643.htm
DML Statements Checking events are

0x0000000000000004 DELETE
Attempt to delete an object.
0x0000000000000010 INSERT
Attempt to insert into an object.
0x0000000000000040 UPDATE
Attempt to update data in an object.

So the checking table will contain the aforementioned values for DML Statement.

How to get which table was there under manipulation and how to track the record ?

Thanks in advance.
Istikhar
Reply With Quote
  #6 (permalink)  
Old 10-05-06, 07:54
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
Event Monitors Seems Intressting

See the URL...

http://publib.boulder.ibm.com/infoce...65%6e%74%22%20

http://publib.boulder.ibm.com/infoce...65%6e%74%22%20

The obove mentioned URL seams interesting for DML statements audit.
I am going into details and will post if there any solution for DML statements auditing in DB2

Istikhar
Reply With Quote
  #7 (permalink)  
Old 10-09-06, 00:38
istikhar istikhar is offline
Registered User
 
Join Date: Sep 2006
Posts: 19
SQL Replication OR Triggers are the only options to solve the issue of DML statemtents auditing.

SQL Replication can be setup to capture all DML changes to
a subscribed Table. SQL Replication is used amongst customers for audit reasons.


Istikhar.
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