Select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid;
alter system kill session ‘373,5518‘;
执行这两条sql可以查询锁表情况和解锁
可能是在操作表时没有commit,导致表被锁。
原文:https://www.cnblogs.com/Yanglei-Faith/p/10728159.html