Record is locked by another user

Record is locked by another user --Oracle行鎖解鎖在操做表時沒有commit,致使表被鎖,只要執行下面兩行語句,就能夠了將行鎖解鎖了。session

  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;

-- 查看被鎖表的sid 和 serial# 2. alter system kill session 'sid, serial#'; -- kill 鎖 ,例如輸入 alter system kill session '140, 25'; 執行完以上兩步後,就能夠編輯數據了。code

相關文章
相關標籤/搜索