Oracle做insert或者update时未提交事务导致表锁定解决办法

//查看被锁定表有几个
select object_name,machine,s.sid,s.serial#
from v$locked_object l,dba_objects o ,v$session s
where l.object_id = o.object_id and l.session_id=s.sid;

//清除锁定251,3055为查询出来的sid,serial值
alter system kill session '251,3055';
posted on 2020-08-06 17:18  云淡风轻博客  阅读(1547)  评论(0编辑  收藏  举报