| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: locking
hi,
SELECT SESSION_ID "sid",SERIAL# "Serial",
substr(OBJECT_NAME,1,20) "Object",
substr(OS_USER_NAME,1,10) "Terminal",
substr(ORACLE_USERNAME,1,10) "Locker",
NVL(lockwait,'ACTIVE') "Wait",
DECODE(LOCKED_MODE,
2, 'ROW SHARE',
3, 'ROW EXCLUSIVE',
4, 'SHARE',
5, 'SHARE ROW EXCLUSIVE',
6, 'EXCLUSIVE', 'UNKNOWN') "Lockmode",
OBJECT_TYPE "Type"
SYS.V_$LOCKED_OBJECT A, SYS.ALL_OBJECTS B, SYS.V_$SESSION c
should also give you some idea
john
"Salnik Andrej" <d95014_at_htlwrn.ac.at> wrote in message
news:3B223169.4F7119B5_at_htlwrn.ac.at...
> how can i display which rows / tables are locked?
> (sp_lock MS SQL-Server)
>
>
>
Received on Sat Jun 09 2001 - 18:02:24 CDT
![]() |
![]() |