oracle查看被锁的表以及解锁表

在oracle 上面查看别锁定的表,以及解锁表的sql:

select t3.object_name,t3.owner,t2.machine,t2.sid,t2.serial# from v$locked_object t1,v$session t2,dba_objects t3
 where t1.session_id = t2.sid
   and t1.object_id = t3.object_id;

alter system kill session'101,1507';
#101 sid ,1507 serial# ,
原文地址:https://www.cnblogs.com/zfding/p/9306050.html