Oracle 解锁Record is locked by another user

下午修改oracle datebase中的字段时,提示"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 @ 2008-11-30 16:08  maventalker  阅读(128)  评论(0编辑  收藏  举报