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: How to know what table is locked

Re: How to know what table is locked

From: Leonard F Clark <lfc_at_zoom.co.uk>
Date: Fri, 13 Apr 2001 20:19:36 GMT
Message-ID: <3ad75f0e.3876574@125.0.0.1>

Do a select on v$lock (as sys(tem)). Look at the object ids and get the names from dba_objects. Note that v$lock also has a column (blocker or something) that indicates that it is actually locking someone else out.

Len

>Oracle 8i (8.1.5)
>
>Suppose user A is running a very long process that updates a row in table T1
>(the process is still running and the transaction is not Commit-ed yet).
>Right after that, user B runs a process that is updating the same row in
>table T1. User B's process than will be hold until user A's process commits
>its transaction.
>
>My question is, is there a way to know what table is being locked (and by
>whom)?
>
>Thanks,
>
>Agung
>
>
Received on Fri Apr 13 2001 - 15:19:36 CDT

Original text of this message

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