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 -> Interesting question about locks !

Interesting question about locks !

From: Didier LENQUETTE <didier.lenquette_at_steria.fr>
Date: 2000/02/24
Message-ID: <qGdt4.26$rc2.1380@nreader1.kpnqwest.net>#1/1

Hi !

I manage locks into my database with SELECT ... FOR UPDATE NOWAIT.

When a record is already locked by another user, I wish to know who is locking the record I am trying to lock.

I know the locked objects with the v$lock view and the "locker", but I don't know who locks a particular record !

Example :
User A lock row #1 and #3 of table1
User B tries to lock row #3 of table1 : he becomes error -54 OK ! I want to know who is locking row #3 in order to display a message like 'User A locks row #3'

An idea ?

--

________________
Didier LENQUETTE
Tel :  (33) 5 62 12 20 40
Fax : (33) 5 61 31 07 02
Received on Thu Feb 24 2000 - 00:00:00 CST

Original text of this message

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