ORACLE表被锁,解决方案

来源:互联网 发布:西屋破壁机 知乎 编辑:程序博客网 时间:2024/06/06 13:22

我update之后,没有commit,导致走批量的时候这些表被锁,解决方案是用:

select   username,status,sid,serial# , action,logon_time  from   v$session   where   username   is   not   null and username='ITP' order by logon_time;

查到目前正在有锁定的状态,之后使用:

alter   system   kill   session   '40,27825';
alter   system   kill   session   '33,6317';

杀掉正在死锁的状态,问题解决。

原创粉丝点击