当前位置:Gxlcms > 数据库问题 > Record is locked by another user --Oracle行锁解锁

Record is locked by another user --Oracle行锁解锁

时间:2021-07-01 10:21:17 帮助过:3人阅读

修改表中记录时出现record is locked by another user的问题

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

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

-- 查看被锁表的sidserial#

2.  alter system kill session ‘sid, serial#‘;

-- kill 锁 ,例如输入 alter system kill session ‘140, 25‘;

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

来源: <Record is locked by another user --Oracle行锁解锁_张子子_新浪博客> 

来自为知笔记(Wiz)

Record is locked by another user --Oracle行锁解锁

标签:

人气教程排行