Authored by: Patrick Barel Viewed:
306 times so far
I’ve seen a presentation on the 11G new features from Alex and Lucas at Amis
. One of the questions posed there was when you are using the new
follows option in triggers, what would happen if you have two triggers following the same one. A bit like the way it’’s done right now.
Suppose you have multiple trigger on the same event on the same
table, for instance when you have a packaged application where you are
not allowed to change any of the code. But you want to add your own
code. Or you have some standard triggers that you generate using for
example CodeGen. If
you add a trigger to an event that already has a trigger on it, there
is no way of knowing when this is executed, before or after the
existing trigger. If you rely on values that may be changed in the
first trigger there was no way to be sure this trigger had been fired
before your code is executed.
In Oracle 11G you now have the possibility to add the
follows option to a trigger, to make sure the code is executed after the original trigger. (from the documentation at Oracle)