oracle删除表中记录时出现record is locked by another user

在删除表中的一条记录时,出现了这个错误:record is locked by another user
是同事在操作这个表时没有commit,导致这个表被锁,只要执行下面两行语句,就可以了。
1.select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid;

2.alter system kill session '126,921';

猜你喜欢

转载自xhlmy.iteye.com/blog/1666337