取消請求的sql語句

aishu521發表於2013-06-28

來源:老王  網路

在日常維護中,我們會經常發現,有些請求無法取消,而且佔用資源很高。這時候就需要我們從後臺用sql語句修改這個請求的狀態。
update fnd_concurrent_requests set status_code='X',phase_code='C' where request_id=;

Subject:  How to Cancel a Concurrent Request Stuck in the Queue? 
Doc ID:  749748.1 Type:  PROBLEM 
Modified Date :  02-MAR-2009 Status:  MODERATED

In this Document
  Symptoms
  Cause
  Solution
  References
 --------------------------------------------------------------------------------
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.

 

Applies to:
Oracle Application Object Library - Version: 11.0 to 12.0
This problem can occur on any platform.
11.0.x - 12.0.x
Symptoms
Unable to cancel a concurrent request out of the queue that is stuck.

Cause
Tried to Cancel a concurrent request. Used the "Cancel Request" button from the Administer > Concurrent > Manager form.

Got the following message:

Request xxxxxx can no longer be cancelled. The Concurrent Manager Process that was running this request has exited abnormally. The ICM will mark this request as completed with error.

 

Solution
Manually cancel the request out of the queue with the following SQL against the offending
request id(s). This can be safely done while managers are up and running:


SQL> UPDATE fnd_concurrent_requests
SET phase_code = 'C', status_code = 'X'
WHERE request_id = '';
commit;


Note:  To obtain request details prior to cancelling the request, use Note 134035.1 ANALYZEREQ.SQL - Detailed Analysis of One Concurrent Request. When prompted, provide the request id to be analyzed.  This can be useful for determining the reason why the request may be stuck in the queue.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15187685/viewspace-764990/,如需轉載,請註明出處,否則將追究法律責任。

相關文章