Find lock session in oracle database
set linesize 190
set pages 500
col owner for a20
col object_name for a20
col object_type for a20
col osuser for a20
col machine for a20
set pages 500
col owner for a20
col object_name for a20
col object_type for a20
col osuser for a20
col machine for a20
select
c.owner,
c.object_name,
c.object_type,
b.sid,
b.serial#,
b.status,
b.osuser,
b.machine
from
v$locked_object a ,
v$session b,
dba_objects c
where
b.sid = a.session_id
and
a.object_id = c.object_id;
Comments
Post a Comment