How to check if oracle stored procedure already running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rash123
    New Member
    • Oct 2009
    • 5

    How to check if oracle stored procedure already running

    How can i check if a oracle stored procedure is already already running
  • nbiswas
    New Member
    • May 2009
    • 149

    #2
    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.

    One more solution

    Assuming you are talking about it being run
    in the current session: Here's another.

    DBMS_APPLICATIO N_INFO.SET_CLIE NT_INFO
    DBMS_APPLICATIO N_INFO.GET_CLIE NT_INFO

    A demo can be found in Morgan's Library at http://www.psoug.org/

    Obtained from http://dbaspot.com/forums/oracle-ser...y-running.html

    Hope this helps

    Comment

    Working...