Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Rasitha.

Asked: October 25, 2017 - 8:13 am UTC

Last updated: October 26, 2017 - 1:25 am UTC

Version: 11g

Viewed 1000+ times

You Asked

I have a table, where there is a column which is updated from multiple sources. I would like to find out the source which is updating this column. for example, it can be a SP or direct application.

So is there a possibility of having a trigger, to get an audit in another table whenever it is updated.

and Connor said...

Lots of options here. See

https://asktom.oracle.com/pls/asktom/asktom.search?tag=generic-trigger-for-auditing-column-level-changes

for an example of this.

Or you could look at Flashback Data Archive:

http://www.oracle.com/technetwork/issue-archive/2016/16-mar/o26performance-2925662.html

but you wont get the extended attributes until 12c.

But in all cases, you can capture the row details themselves, and also anything that is readily available via SYS_CONTEXT calls

https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions184.htm#SQLRF06117




Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library