# Oracle Audit Trail Add Program Name

- URL: https://www.integrigy.com/security-resources/oracle-audit-trail-add-program-name
- Published: 2017-04-18
- Type: Article
- Products: Oracle Database, Oracle Audit Vault and Database Firewall
- Focus areas: Auditing

> Post on adding the V$SESSION.PROGRAM attribute, which Oracle leaves out of its audit logs by default, using patch 7023214 and event 28058, with a table of which session attributes each audit trail records.

The program name attribute (V$SESSION.PROGRAM) is not by default passed to Oracle’s audit logs. It can be optionally included. To do so, apply Patch 7023214 on the source database. After the patch is applied, the following event needs to be set:

```
ALTER SYSTEM SET
 EVENT='28058 trace name context forever'
 COMMENT='enable program logging in audit trail' SCOPE=SPFILE;
```

The table below summarizes key session attributres (V$SESSION) that are passed/not passed to Oracle auditing

<table>
<thead>
<tr>
<th colspan="4">Oracle Audit Trails</th>
</tr>
<tr>
<th>Session Attribute<br>(V$SESSION)</th>
<th>Description</th>
<th>Traditional Auditing (SYS.AUD$)</th>
<th>Fine Grained Auditing (SYS.FGA_LOG$)</th>
</tr>
</thead>
<tbody>
<tr>
<td><p>CLIENT_IDENTIFIER</p></td>
<td><p>End user username</p></td>
<td><p>CLIENTID</p></td>
<td><p>CLIENTID</p></td>
</tr>
<tr>
<td><p>CLIENT_INFO</p></td>
<td><p>Concatenated application log string</p></td>
<td><p>Not passed</p></td>
<td><p>Not passed</p></td>
</tr>
<tr>
<td><p>MODULE</p></td>
<td><p>ABAP program, module, application component or service</p></td>
<td><p>Not passed</p></td>
<td><p>Not passed</p></td>
</tr>
<tr>
<td><p>ACTION</p></td>
<td><p>Business action being executed, page, code event, location within program</p></td>
<td><p>Not passed</p></td>
<td><p>Not passed</p></td>
</tr>
</tbody>
</table>

If you have questions, please contact us at <info@integrigy.com>

## Reference

- [Logging PeopleSoft, E-Business Suite and SAP End-Users in Oracle RDBMS Audit Logs](https://www.integrigy.com/security-resources/logging-peoplesoft-e-business-suite-and-sap-end-users-oracle-rdbms-audit-logs)
- How to make the client Program Name appear in Audit Vault reports? (Doc ID 1465610.1) <https://support.oracle.com/rs?type=doc&id=1465610.1>
