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';--查看表大小

 

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

你可能感兴趣的:(oracle)