PL/SQL (MOSC)

MOSC Banner

Simulating Trigger On COMMIT

edited Feb 19, 2010 4:17AM in PL/SQL (MOSC) 21 commentsAnswered ✓
 Hi, We have multiple tables that get updated as part of a transaction. After all the data is added succesfully there is processing that needs to be done, so we'd like to use a trigger to kick it off automatically.

I thought of attaching a trigger to the master table but I can't find an approach or mechanism that would allow us to defer the triggered code until after all the tables have been updated.

It almost seems like I want a transaction trigger. Something that would be executed before or after a COMMIT. But the post-processing code does not have to be deferred until after the transaction is committed, it just mustn't be started until all the tables participating in the transaction have been updated, otherwise all the data needed won't be present.

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