Hold, Un hold and cancel Pending Concurrent Requests

 Here is an easy way to put all the Pending Concurrent requests in hold, if we are going through any situation
(Production Cutover/upgrade and go live scenarios).


1. First create a backup table 


SQL> CREATE TABLE apps.conc_bkp AS SELECT * FROM fnd_concurrent_requests WHERE phase_code = 'P' AND NVL (hold_flag, 'N') <> ‘Y’;


2. Then put the reqs on hold using the following query,


SQL> UPDATE apps.fnd_concurrent_requests SET hold_flag = 'Y' WHERE request_id IN ( SELECT request_id FROM apps.conc_bkp);


SQL> Commit;


3. Then to release the hold use the following query,


SQL> UPDATE fnd_concurrent_requests SET hold_flag = 'N' WHERE request_id IN ( SELECT request_id FROM apps.conc_bkp);


SQL> Commit;



NOTE: You have to commit if select & update are same number of records. Otherwise rollback and try again till the numbers are same



Create table apps.conc_req_on_hold as select * from fnd_Concurrent_requests where PHASE_CODE='P' and hold_flag='N';


In case of bulk cancellation of concurrent request below query can be used.

update fnd_concurrent_requests set status_code='X', phase_code='C' where request_id in (select request_id from fnd_concurrent_requests where PHASE_CODE='P' and concurrent_program_id='&i' and requested_by = '&j';


Comments

Popular posts from this blog

How to drop index and before dropping it how to get the DDL.

PRVG-11250 : The check "RPM Package Manager database" was not performed because

ORA-00257:archiver error, connect internal only until freed

Verifying Daemon “Avahi-Daemon” Not Configured And Running …FAILED (PRVG-1360)

Linux OL7/RHEL7: PRVE-0421 : No entry exists in /etc/fstab for mounting /dev/shm

SKIP DNS RESLOV.CONF CHECK DURING RAC CONFIGURATION

CPU Patch Analysis

How to write to a CSV file using Oracle SQL*Plus

How to troubleshoot Long Running Concurrent Request in EBS 12.2

How To Manage Space of The FRA in the Oracle DB