Previous |
Next |
You can audit the activities of a client in a multitier environment by specifying a proxy in the Add Audited Statements or Add Audited Privileges page in Database Control. You can use the SQL AUDIT
statement to audit the activities of a client in a multitier environment. To do so, use the BY PROXY
clause in the AUDIT
statement.
For example, to audit SELECT TABLE
statements issued on behalf of client jackson
by the proxy application server appserve
:
AUDIT SELECT TABLE BY jackson ON BEHALF OF appserve;
Afterward, user jackson
can connect using the appserve
proxy user as follows:
CONNECT appserve[jackson]
Enter password: password
The middle tier can also set the user client identity in a database session, enabling the auditing of user actions through the middle-tier application. The user client identity then shows up in the audit trail.