Vous êtes sur la page 1sur 3

Audit Trail in Oracle Apps - EBS

Written by Anil Passi


Sunday, 26 November 2006 17:58

Oracle Apps provides an Out of the Box Audit Trail Functionality that works like a charm.

I never had thought about writing an Article on Audit Trail feature, until Kartikey pinged me to
write an article on this subject. You can achieve Auditing[as explained in Step by Step example
below] without writing a single piece of Code in Oracle Apps. It can be argued that CDC
[change data capture] might be used, but I think the design of CDC is more friendly for
Warehousing purposes, rather than Audit Reporting.

Lets say that we wish to create a audit trail on a table named FND_LOOKUP_VALUES.

Step 1: Find the name of Application for table to be Audited


Lets first find the application name of this Oracle Apps table.
SELECT application_name
FROM fnd_application_vl fav, fnd_tables ft
WHERE ft.table_name = 'FND_LOOKUP_VALUES'
AND ft.application_id = fav.application_id

The above SQL returns Application Object Library.

Step 2: Ensure that Audit on the Application is Enabled


Navigate to System Administrator Menu Security/AuditTrail/Install

The owner of table FND_LOOKUP_VALUES is APPLSYS. Hence query on APPLSYS to


ensure that Audit is enabled for this Application.

Step 3: Create Audit Group


Navigate to System Administrator Menu Security/AuditTrail/Groups

Application Name: Application Object Library


Audit Group: XX Audit Lookup Values
Group State: Enabled

Now, add audit tables to this group[you can add as many tables]
User Table Name: FND_LOOKUP_VALUES

1/3
Audit Trail in Oracle Apps - EBS

Written by Anil Passi


Sunday, 26 November 2006 17:58

Step 4: Run will


Thisprocess
this process Concurrent
cancreate
be runthe program
from
Audit
System “AuditTrail
tables Update
Administrator
and the triggers Tables”
responsibility.
that manage It has
Audit
nodata.
parameter. Running

Step
SELECT
FROM
WHERE 5: Ensure
all_objects that
object_name,
object_name
FND_LOOKUP_VALUES_AC   
FND_LOOKUP_VALUES_AC1  
FND_LOOKUP_VALUES_AD   
FND_LOOKUP_VALUES_ADP 
FND_LOOKUP_VALUES_AH   
FND_LOOKUP_VALUES_AI     
FND_LOOKUP_VALUES_AIP   
FND_LOOKUP_VALUES_AT   
FND_LOOKUP_VALUES_AU   
FND_LOOKUP_VALUES_AUP 
FND_LOOKUP_VALUES_AV1  
Fine, this proves Audit
thatrun LIKE
OBJECT_NAME                     
FND_LOOKUP_VALUES_A       the Tables
object_type
concurrent have
VIEW
TRIGGER
TRIGGER
PROCEDURE
TRIGGER
PROCEDURE
VIEW been
'FND_LOOKUP_VALUES_A%'
OBJECT_TYPE
--------------------------                      program increated
--------------------------
TABLE
SYNONYM Step as expected
Optionally,
validate
Step 6:
Navigate
as below. the
Now
toyou
success
may
create
“Applicationaof Audit
newconcurrent
Table/Trigger
lookup
Developer” process
type to creation.
test
responsibility and4create
“AuditTrail
Audit did itsajob.
Report
Trail for Audittype
lookup Group
andValidation” to
Lookup codes

Step run
Now
SELECT
     
FROM 7:fnd_lookup_values_a
Now
the see the
query results
below,
,audit_user_name
,audit_sequence_id
,lookup_code
,lookup_type you of
can
audit_transaction_type the Audit
see Trail information has been generated.
the Audit

2/3
Audit Trail in Oracle Apps - EBS

Written by Anil Passi


Sunday, 26 November 2006 17:58

Step
By 8: Add
However
Column
Navigate further
FND_LOOKUP_VALUES.
default
toOracle
Meaning
further columns
columns
Systemtoo. can for
willAdministrator
Audit Trail
be onAudit
added
Menu Trail
all columns
to that are
the Audit a part
Trail. Lets of
say
Security/AuditTrail/Tables first
youavailable
wish to Unique Index
Audit Trail on on

You can
Please
single
This add
note
explains
line additional
ofthat
howadding
code. columns
you can Audit to
columns foraudit
trail trail
Audit
changes and
could re-execute
to have
Data been Step
done
in Oracle 4.
immediately
Applications, after Step
without 3. a
writing

3/3

Vous aimerez peut-être aussi