Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Is there a way to write the SQL%ROWCOUNT and SQLID to (unified_)audit_trail?

MatKonFeb 15 2017 — edited Feb 16 2017

Hello,

does someone know whether there's a way to write the SQLID and SQL%ROWCOUNT for the current audit entry to the unified audit trail?

I think it's difficult, because an audit entry is written while the triggering statement maybe is still in execution.

At the moment the only way I know is to create DML-triggers to increment a counter for each executed insert/update/delete. Perhaps the count could be written to audit trail via an application context. Unfortunately selects SQL%ROWCOUNT wouldn't be monitored.

Additional infos:

- DB-Version: Oracle Database 12.1.0.2 Enterprise Edition

- OS: Oracle Linux / Power AIX

- Audits: auditing via Oracle Unified Auditing (=> mixed mode)

I hope someone has an idea.

Thanks for replies!

Regards,

Mathias

This post has been answered by top.gun on Feb 16 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 16 2017
Added on Feb 15 2017
4 comments
477 views