oracle 死锁解决方案

1.查看死锁进程

select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time

2.杀进程中的会话

alter system kill session 'sid,serial#';
e.g
alter system kill session '29,5497';

猜你喜欢

转载自wzg866.iteye.com/blog/1457974