Oracle死锁处理
时间:2014-05-16 06:31:59
收藏:0
阅读:301
SELECT s.username,l.OBJECT_ID,l.SESSION_ID,s.SERIAL#,
l.ORACLE_USERNAME,l.OS_USER_NAME,l.PROCESS,b.OBJECT_NAME,p.spid
FROM V$LOCKED_OBJECT l,V$SESSION S,dba_objects b,v$process p
WHERE
l.SESSION_ID=S.SID and b.object_id=l.object_id and S.PADDR=p.ADDR and
b.object_name=‘AAA‘
1.alter system kill session ‘sid,serial#‘;
2.直接上服务器杀进程 kill -9 spid
评论(0)