record is locked by another user,recordlocked

來源:互聯網
上載者:User

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

執行完以上兩步後,就可以編輯資料了。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.