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 -> Re: Check if Oracle stored procedure already running

Re: Check if Oracle stored procedure already running

From: sybrandb <sybrandb_at_gmail.com>
Date: 13 Jul 2006 07:22:32 -0700
Message-ID: <1152800552.356190.216460@m73g2000cwd.googlegroups.com>

darkmich..._at_yahoo.com wrote:
> Hello,
>
> Could you please give an advise how I can check whether an Oracle
> stored procedure is already running to prevent it to run again?
>
> Thanks in advance.
>
> Michael

The easiest way is to wrap the procedure in a package, and have it set a variable defined in the package spec.
Other invocations of the procedure would need to verify whether the variable was already set.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Thu Jul 13 2006 - 09:22:32 CDT

Original text of this message

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