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 'sid, serial#';

  ALTER system kill session '256, 34034';

你可能感兴趣的:(Oracle 锁表查询 和解锁表)