Hold programs during Cutover or maintenance activities.
- First shutdown the concurrent manager immediately after the downtime starts.
- Wait for 10 or 15 mins.
- Get the list of programs which are scheduled but not on hold.
select * from fnd_concurrent_requests where phase_code='P' and hold_flag='N'; - create a table to store the results from above query.
Release the programs once the Cutover or maintenance activities are over.
Based on the number of requests in fnd_conc_req_hold which are held manually, it can cause load on the Servers if there are more programs are held. Hence need to release these programs in phase manner. Maybe 500 programs can be released at a time. Number 500 is a guesswork and you can choose according to your environment.
Assume, If you have to hold 4000 requests. We can release the programs in phase manner.
UPDATE fnd_concurrent_requests
SET hold_flag = 'N'
WHERE phase_code = 'P'
AND hold_flag = 'Y'
AND request_id IN (SELECT request_id
FROM fnd_conc_req_hold
WHERE ROWNUM < :row_num
);
In the first run pass 500.
Second run, pass 1000.
Third run, pass 1500.
Increase by 500 in value by each run till the number of requests is stored in fnd_conc_req_hold.
Once all the programs are released, run the UPDATE query without WHERE clause. This UPDATE should run 0 rows. That means, all the programs are released.
No comments:
Post a Comment