欢迎投稿

今日深度:

record is locked by another user,recordlocked

record is locked by another user,recordlocked


在更新数据的时候报这个错:
这里写图片描述

在操作表时没有commit,导致表被锁,只要执行下面两行语句,就可以了将行锁解锁了。

查看被锁表的sid 和 serial

Select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid; 

kill 相应的session

 alter system kill session 'sid, serial#';

执行完以上两步后,就可以编辑数据了。

www.htsjk.Com true http://www.htsjk.com/shujukunews/7568.html NewsArticle record is locked by another user,recordlocked 在更新数据的时候报这个错: 在操作表时没有commit,导致表被锁,只要执行下面两行语句,就可以了将行锁解锁了。 查看被锁表的sid 和 serial Sele...
评论暂时关闭