oracle查询锁表

select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time; 

alter system kill session   '171,13';
原文地址:https://www.cnblogs.com/white-knight/p/8649619.html