PL/SQL (MOSC)

MOSC Banner

How to identify Calling Entity in Trigger

edited May 27, 2020 5:09AM in PL/SQL (MOSC) 3 commentsAnswered

We are on Database version - Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

I have a base table for which I am creating a history table, this history table is populated with the old values via a trigger whenever a record is updated. In the history table we have the calling entity column so that we can identify which source updated the record. The base table is updated from many places but I want to update the calling entity column in history table where my procedure is updating the record. Any way I can achieve this in the trigger ?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center