Skip to Main Content

SQL & PL/SQL

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!

Call a procedure only once for the last row in FOR EACH ROW trigger

Aozerov-OracleJun 7 2011 — edited Jun 7 2011
Hi everyone,

I wonder, if someone would help me in trigger's implementation. My use case the following:

- fire a trigger after each INSERT or UPDATE operation;
- use FOR EACH ROW algorithm for a trigger;
- collect some values of inserted/updated fields like :new.uuid and store them into a global collection defined on the package's layer;
- only for the last inserted/updated row call a procedure passing the global collection with collected values as a parameter;

Is it possible to implement for the FOR EACH ROW's type of trigger? Does a :new identifier or trigger itself have special attributes like COUNT, SIZE for defining a size of inserted/modified data for a conditional logic? Are there another possible workaround for considered use case.

Thanks,

Andrey
This post has been answered by Frank Kulash on Jun 7 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 5 2011
Added on Jun 7 2011
3 comments
458 views