记录一次生产由于for update导致无法操作表的情况
当使用select语句查询表时,后面跟着for update,当没有commit的话就会造成别人无法操作
select * from AA for update;
针对以上情况,解决方案如下:
(一)查询锁表进程SQL语句:
select * from v$session t1, v$locked_object t2 where t1.sid = t2.SESSION_ID;
(二)杀掉锁表进程:
1111对应查询出SID字段值,2222对应查询出来的SERIAL#字段值
alter system kill session '1111,2222';