读书人

oracle剔除表中记录时出现record is l

发布时间: 2012-09-27 11:11:17 作者: rapoo

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';

读书人网 >其他相关

热点推荐