select l.*, o.owner object_owner, o.object_Name, o.owner from sys.all_objects o, v$lock l where o.object_id = l.id1 and owner != 'SYS';
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;
select count(*) from
v$locked_object a ,
v$session b,
dba_objects c
where
b.sid = a.session_id
and
a.object_id = c.object_id;
Nenhum comentário:
Postar um comentário