1.查询正在运行的存储过程
select name from v$db_object_cache where type like '%PROCE%' and locks >0 and pins >0;
2.找到对应存储过程的sid
select sid from v$access o where o.OBJECT like 'SP_S_REPORT_MOBILE%' (参数是存储过程名称)
3.根据sid找到对应的serial#
select sid,serial# from v$session a WHERE A.SID=sid
4.终止运行存储过程
alter system kill session 'sid,serial#' (例如:alter system kill session '1061,25354'