I need the ability to use custom locks at a session level (outside the scope of a transaction) in oracle.
In MSSQL I am using sp_getapplock, sp_releaseapplock.
How can I achieve the same functionality in Oracle?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
DBMS_LOCK Package
This will do what you want:
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_lock.htm