| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: Exclusive (non-reentrant) Stored Procedure
dejaschirf_at_my-deja.com wrote:
>
> I need to create a stored procedure that is, in effect, not reentrant.
> What I?d like to have happen is for any calls to the stored procedure
> which occur while it is already running to immediately return as if
> they had run successfully. I?ve looked for a semaphore mechanism in
> Oracle but have had no luck finding a way to create a resource lock
> that will unlock automatically on unexpected termination.
>
> Can anyone help me with this?
>
> Paul Schirf
> Frustrated Oracle Developer
>
> Sent via Deja.com
> http://www.deja.com/
hi,
I don't know if speed is essential, but you could also write an external
procedure that utilizes operating system semaphores instead of writing a
lock flag to a table.
I don't really know what's faster, it's just an idea.
But I guess the semaphores will do, since you don't need additional I/O.
On Unix, have your admin set the OS semaphore kernel parameters up in
case you use them intensively.
ciao
Stefan
Received on Wed Dec 27 2000 - 10:37:57 CST
![]() |
![]() |