Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Triggers and commits
In article <7sajl7$669$1_at_nnrp1.deja.com>, lucas.m.anderson_at_ac.com writes
>I have a trigger that calls several stored procedures. Within the
>procedures are commits. When I performed the action that kicks off the
>trigger, Oracle tells me that it cannot perform a commit within a
>trigger.
>
>How can I get around this?
You could consider using pipes to send the 'requests' to another listening session and do the commits there. E.G Trigger fires, sends a request for the other session to run a procedure and commit it.
Andy
>The commits are necessary because we need
>to be able to restart the procedures at controlled points if an
>exception occurred. On the other hand, we need to be able to kick off
>the procedures in an automatic fashion.
>
>Thanks,
>Luke
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
--
Andy Hardy. PGP key available on request
![]() |
![]() |