码迷,mamicode.com
首页 > 其他好文 > 详细

杀掉一直处于 正在终止 状态的并发请求

时间:2015-03-05 10:40:15      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

SELECT pkg.name
,pkg.owner
,acc.sid
,ses.serial#
,ses.paddr
,prc.spid
,ALTER SYSTEM KILL SESSION ‘‘‘ || ses.sid || , || ses.serial# || ‘‘‘;
FROM v$db_object_cache pkg
,v$access acc
,v$session ses
,v$process prc
WHERE pkg.owner = acc.owner
AND pkg.name = acc.object
AND acc.sid = ses.sid
AND prc.addr = ses.paddr
AND pkg.owner = APPS
AND pkg.locks != 0
AND pkg.name = &package_name;



update fnd_concurrent_requests
set status_code = X, phase_code = C
where request_id = &your_request_id;

commit;

 

杀掉一直处于 正在终止 状态的并发请求

标签:

原文地址:http://www.cnblogs.com/toowang/p/4315018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!