Oracle 解锁Record is locked by another user

修改Oracle字段时提示Record is locked by another user

解决方法:
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 order by t2.logon_time;

2.KILL
--alter system kill session 'sid,serial#';
alter system kill session '151,14678';--查看表大小

运行以上命令后,就可以解决此问题

posted @ 2020-12-02 11:22  取昵称好麻烦  阅读(99)  评论(0)    收藏  举报