MD50 Audit Tables - V1.0
MD50 Audit Tables - V1.0
Viren Sharma
July 06, 2015
July 10, 20155
Document Ref:
Version:
Approvals:
Lisa Thompson
Justina Houston
1.0
Document Control
Change Record
Date
Author
Version
07/07/15
Viren Sharma
Change Reference
Reviewers
Name
Position
Justina Houston
Distribution
Copy No.
1
2
Name
Location
Contents
Document Control..................................................................................................................
Introduction .............................................................................................................................
Purpose .............................................................................................................................
Scope..................................................................................................................................
Objectives ..........................................................................................................................
Setup .........................................................................................................................................
Set profile Option....................................................................................................................
Install ........................................................................................................................................
Define the Audit Group .........................................................................................................
Define the Audit Columns.....................................................................................................
Introduction
Purpose
Scope
The screen shots have been copied from an instance having the
characteristics below:
RDBMS 11.1.0.7
Oracle Application 12.1.2
Aim: enabling audit table on Customer Tables for some given
columns
Objectives
Setup
Set Profile Option
Log in with the responsibility: System Administrator
Navigation Path: System/profile
Ensure that this profile option is set to yes at site level and not overwritten by a No at
application level (valid values are yes or null when it is defined at site level as indicated
above). It is preferred to set it as application level to avoid a mass audit creation.
Install
Log in with the responsibility: System Administrator
Navigation Path: Security/AuditTrail/Install
Ensure that the user account for Oracle Receivables is checked as enabled for audit. If
not, click in the check box and save.
The log of this program shows the activity performed for the table
RA_CUST_RECEIPT_METHODS:
log showing :
Nothing to process.
This process creates Shadow Tables with the same data type columns. Shadow Tables have
the name
<tablename>_A which mirror the audited tables. (in our example the audited table is
RA_CUST_RECEIPT_METHODS and the shadow table is RA_CUST_RECEIPT_METHODS_A).
It also creates views on the Shadow Tables with the name <tablename>_AC1 and
<tablename>_AV1 which allow access to the data in the Shadow Tables.
It creates database triggers on the audited tables picked above with the name
<tablename>_AI,
<tablename>_AU and <tablename>_AD which fire respective when the audited columns
are Inserted, Updated or Deleted.
Lastly it creates procedures that are called by the triggers with the name
<tablename>_AIP, <tablename>_AUP
and <tablename>_AID. These save the old data from the audited tables into the Shadow
Tables.
The triggers are valid, all future activity for this OTA_DELEGATE_BOOKINGS table on the
columns described in the form earlier will be recorded now on.
Creating Reports
Create an Audit Template
Log in with the responsibility: System Administrator
Navigation Path: Security/AuditTrail Reporting/Audit Industry Template
Create a template name: AR Customer Audit Template (for our example), Enter a description.
In the Functional areas select from the LOV the functional groups ( in our example Audit AR
Customer Audit).
14
Audit Report
Log in with the
Administrator
responsibility: System
Navigation
Path:
Reporting/Audit Report
Security/Audit
Trail
Select the functional group, the audit table name , if you wish to filter by the user who
made these transactions in that table you can specify it. If you wish to filter on insert or
delete only you can mention it, or select All in the list if you wish to see all kind of activity on
this table.
Once all Criteria for the reports are entered, click on Select Columns Button to select the
column you wish to print into the report.
15
In our example we had few columns so we can select all of them. In case you have more
than 5 columns, there are restrictions in this form for technical reasons. You would need to
rerun with another set of columns.
When the columns are selected, click on Run Report. Then a concurrent
program is launched. Navigate to View Requests, and open the output of the
concurrent program: Audit Trail Report. The result is the following:
User Name :
Audit
Timestamp
Record ID : 10006
Audit
Transaction
Type
Audit User
Name
CUST_RECEIPT_RECEIPT_METHOD
METHOD_ID
_ID
22
Closed Issues
[Type text]