oracle查看被锁的表以及如何解除锁定

-------------查询被锁的表
select
 object_name, machine, s.sid, s.serial#
  from
  v$locked_object l, dba_objects o, v$session s
 where l.object_id = o.object_id
   and l.session_id = s.sid;
-------------解除表的锁定
alter system kill session '136,6';

你可能感兴趣的:(oracle)