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

Posted 辉bird

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Record is locked by another user --Oracle行锁解锁相关的知识,希望对你有一定的参考价值。

Oracle修改表中记录时出现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行锁解锁的主要内容,如果未能解决你的问题,请参考以下文章

oracle遇到的锁异常,oralce record is locked by another user

Oracle 数据库 Record is locked by another user 问题解决办法

异常dpkg: error: dpkg frontend is locked by another process

dpkg: error: dpkg status database is locked by another process 解决方法

/var/cache/debconf/config.dat is locked by another process问题解决

/var/cache/debconf/config.dat is locked by another process问题解决