Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Passing an array from a trigger.

Passing an array from a trigger.

From: vdolt <vadolt_at_yahoo.com>
Date: 12 Sep 2002 10:23:57 -0700
Message-ID: <25903991.0209120923.4a420af1@posting.google.com>

I have multiple batch processes that run in parallel and enter new records into the table. In the insert trigger on that table I pass each record to procedure. SO, when I am entering 10000 records I call procedure 10000 times.
To make it more efficient I wanted to change trigger to fire once after the whole insert statement, but I guess the problem is that :new and :old are only available "FOR EACH ROW" type of triggers. The question, how do I access the whole recordset of records inserted and pass it to procedure?
Reminder: I can't just select them from the table by primary key, because there are could be many processes inserting records into the table at the same time.
Thank you. Received on Thu Sep 12 2002 - 12:23:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US