This article talks about the process of getting audit reports from Oracle. We have used the same setup that we have discussed in this article.
Setup Audit Trail Reports
Responsibility: System Administrator
Step 1: Create a new Audit Industry Template
Navigation: Security > AuditTrail > Audit Trail Reporting > Audit Industry Template
Query the form to check if any existing Industry template exists or not.
We find an already existing template and therefore we shall not create another industry template. Add the Group as the Functional Group in this template.
Select AP Audit group.
Save and close the form.
Step 2: Set the audit report
Navigation: Security > AuditTrail > Audit Trail Reporting > Audit Report
Enter the details
Click on Select Columns button.
Select the columns for which you want to run the report. We have selected 1 column, BANK_ACCOUNT_NUM, from the table, AP_BANK_ACCOUNTS_ALL.
Click on Print Options button.
It opens the printing options window and you can enter the printer details if you want to. We do not want the report to be printed to a printer and so we shall click on Cancel button to come back to the Select Reporting Columns form.
On the Select Reporting Columns form click on Run Report button.
The report is submitted and the request id is displayed. Now go to View > Requests > Find to check the concurrent requests.
Click on View Output button.
The output will display all changes made by SA1 user on the BANK_ACCOUNT_NUM column of this table.
The report in text format,
Page : 1 Functional Group : AP Audit group Table Name : AP_BANK_ACCOUNTS_ALL Transaction Type : User Name : SA1 Date Range : - Table Name : AP_BANK_ACCOUNTS_ALL Record ID : 22401 Audit Audit Audit User BANK_ACCOUNT_ Timestamp Transaction Name NUM Type -------------------------------------------------------------------------------------------------------------- 07-JUN-12 11:22 Update SA1 088104294001 Record ID : 38381 Audit Audit Audit User BANK_ACCOUNT_ Timestamp Transaction Name NUM Type -------------------------------------------------------------------------------------------------------------- 12-JUN-12 12:18 Update SA1 200001788164 12-JUN-12 12:17 Update SA1 200001788164 12-JUN-12 12:01 Update SA1 200001788164 12-JUN-12 12:01 Update SA1 200001788164 12-JUN-12 12:00 Update SA1 200001788163 Record ID : 38546 Audit Audit Audit User BANK_ACCOUNT_ Timestamp Transaction Name NUM Type -------------------------------------------------------------------------------------------------------------- 12-JUN-12 18:32 Update SA1 00001230001 12-JUN-12 18:32 Update SA1 00001230001 12-JUN-12 18:32 Insert SA1 00001230001
Check changes on all the columns on this table, AP_BANK_ACCOUNTS_ALL.
Navigation: View > Requests > Single Request
Run the program named, Audit Report.
Enter the parameters as,
Table Name: AP_BANK_ACCOUNTS_ALL
Initialization: Yes
Click on OK and submit the request.
Once the request completes, click on View Output button. The report looks like the following,
In text the report is like this,
Audit Report
Report Date: 11-09-2012 14:43
Report Parameters
Table Name: AP_BANK_ACCOUNTS_ALL
Table Type: Non-datetracked
User: SA1
Start Date: (s7B01-JAN-01(s0B
End Date: (s7B31-DEC-12(s0B
Audit Report
Table Name: AP_BANK_ACCOUNTS_ALL Report Date: 11-09-2012 14:43
Primary Key: BANK_ACCOUNT_ID Page: 1
----------------------------------------------------------------------------
Audit Timestamp: 07-06-2012 11:22 Primary Key Value: 22401
Audit Session Id: 60917890 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 16-02-2011 07-06-2012
Last Updated By 1176 12691
Last Update 13824409 20301599
Login
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 12:00 Primary Key Value: 38381
Audit Session Id: 61030554 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 14-02-2012 12-06-2012
Inactive Date 14-02-2012
Last Updated By 1962 12691
Last Update 19099472 20365176
Login
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 12:01 Primary Key Value: 38381
Audit Session Id: 61030573 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Bank Account Num 200001788163 200001788164
Last Update Date 12-06-2012 12-06-2012
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 12:01 Primary Key Value: 38381
Audit Session Id: 61030573 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 12-06-2012 12-06-2012
Inactive Date 12-06-2012
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 12:17 Primary Key Value: 38381
Audit Session Id: 61030873 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 12-06-2012 12-06-2012
Inactive Date 12-06-2012
Audit Report
Table Name: AP_BANK_ACCOUNTS_ALL Report Date: 11-09-2012 14:43
Primary Key: BANK_ACCOUNT_ID Page: 2
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 12:18 Primary Key Value: 38381
Audit Session Id: 61008913 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 12-06-2012 12-06-2012
Inactive Date 12-06-2012
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 18:32 Primary Key Value: 38546
Audit Session Id: 61037197 Transaction Type: Normal Insert
User Name: SA1
Column Name New Value
----------- ---------
Created By 12691
Bank Account Test
Name
Bank Account Num 00001230001
Currency Code INR
Multi Currency Y
Flag
Last Update Date 12-06-2012
Creation Date 12-06-2012
Last Updated By 12691
Last Update 20366178
Login
Bank Branch Id 762018
Set Of Books Id 1004
Zero Amounts N
Allowed
Account Type INTERNAL
Org Id 360
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 18:32 Primary Key Value: 38546
Audit Session Id: 61037197 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 12-06-2012 12-06-2012
Inactive Date 12-06-2012
----------------------------------------------------------------------------
Audit Timestamp: 12-06-2012 18:32 Primary Key Value: 38546
Audit Session Id: 61035117 Transaction Type: Normal Update
User Name: SA1
Column Name Old Value New Value
----------- --------- ---------
Last Update Date 12-06-2012 12-06-2012
Inactive Date 12-06-2012
Audit Report
Table Name: AP_BANK_ACCOUNTS_ALL Report Date: 11-09-2012 14:43
Primary Key: BANK_ACCOUNT_ID Page: 3
***** End Of Report *****
This report also gives us the audit data in a different format. Using these seeded audit reports all changes can be tracked and monitored by administrators. For specific requirements alerts for alerting administrators for certain changes or custom reports (AP_BANK_ACCOUNTS_ALL_A table) can be built to analyze the data.
Cheers!
