Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Table Locked by Who
Hi guys,
Just run this from sqlplus connected as DBA. This will give the locked
objects and who is locking.
SET PAGES 1000
SELECT V.OBJECT_ID,T.OBJECT_NAME,
V.SESSION_ID,V.ORACLE_USERNAME,V.OS_USER_NAME,V.LOCKED_MODE
FROM V$LOCKED_OBJECT V, DBA_OBJECTS T
WHERE V.OBJECT_ID=T.OBJECT_ID
/
Hope this will help
Thanks
Pramod M. Shrote
Paul Sellars <sello_at_my-deja.com> wrote in article
<8skcaj$rh8$1_at_nnrp1.deja.com>...
> Sorry forgot to add: if you are trying to find hangs due to locks
> try the oracle utility utllockt.sql
> it is in $oracle_home/rdbms/admin.
>
> Paul
> > Hi,
> >
> > How can I check a table is locked or used by others. Thank you.
> >
> >
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Received on Thu Oct 19 2000 - 15:10:47 CDT
![]() |
![]() |