Problem: Oracle auditing and Coldfusion pages.
Oracle 10g has robust auditing functionality. If you want to see who is inserting records into account.staff, you issue this command.
audit insert on account.staff by access;
It's done. All inserts into the table are tracked by Oracle automatically.
The good news is this works perfectly with asp pages. With coldfusion-based webpages, the CF application server interposes itself between oracle and the user. The result? Key bits of auditing information (i.e., user id, pc IP address) are replaced with the Cold Fusion server values.
For example, instead of seeing the user’s ID, or name the audit trail has SYSTEM. Instead of the user’s pc hostname we see the CF server name and IP address.
· Building table specific triggers using USERENV('sessionid')in Oracle does not help
· Using cgi variables in the CF pages like REMOTE_ADDR (IP address of the remote host making the request) or REMOTE_USER or AUTH_USER also does not offer reliable information either.
What is the fix?
Our setup. We are using:
Oracle 10g with auditing enabled
Coldfusion server version 8.0.0.176276
Windows 2003 server
Internet Information Server version 6.0
Windows integrated authentication
All web auditing via IIS 6.0 works fine. It is just Oracle auditing that is a problem.
Thank you.
