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: PL/SQL: How release row lock w/o COMMIT?

Re: PL/SQL: How release row lock w/o COMMIT?

From: Brian Peasland <dba_at_remove_spam.peasland.com>
Date: Sat, 6 Mar 2004 17:40:21 GMT
Message-ID: <404A0D05.355A0E24@remove_spam.peasland.com>


> Is it possible in PL/SQL to lock a row and release the lock without
> doing a COMMIT?

A ROLLBACK will release the lock as well.  

Oracle will not release locks until a COMMIT or ROLLBACK for that transaction. Knowing that, have you considered making your stored proc an AUTONOMOUS TRANSACTION? That way, the transaction inside the stored proc is not tied to the transaction that called it.

HTH,
Brian Received on Sat Mar 06 2004 - 11:40:21 CST

Original text of this message

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