set linesize 150
col owner format a10
col object_name format a15
col object_type format a10
col sid format 99999
col serial# format 99999999
col status format a10
col osuser format a15
col machine format 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;
col owner format a10
col object_name format a15
col object_type format a10
col sid format 99999
col serial# format 99999999
col status format a10
col osuser format a15
col machine format 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