kill ORACLE中正在运行的存储过程
select * from v$access o where o.OBJECT like 'P_BDC2ZJ_FC%' --查找正在运行的对象,获取sid
select a.serial# from v$session a WHERE A.SID=sid --通过sid 获取serial#alter system kill session 'sid,serial#' --eg: alter system kill session '123,3211'
查找死锁
select sql_text,s.sid,s.SERIAL# from v$sql sql inner join v$session s on sql.hash_value=s.sql_hash_value
where sid in (select session_id from v$locked_object)