240
个人博客地址: olook.me

Oracle死锁处理

1) 查看被锁住的对象

select * from advert_goods for 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;


2)杀进程

示例:alter system kill session '958,1298' immediate ; 
alter system kill session 'sid,serial#';

 

posted @ 2017-05-09 11:29  VayCi  阅读(...)  评论(...编辑  收藏