Oracle apps query to find incompatible programs blocking a concurrent request

Oracle apps query to find incompatible programs blocking a concurrent request
Oracle EBS incompatible concurrent requests sql query
Concurrent program incompatibility query for pending standby requests

Run the below query if you see any concurrent program in pending standby status for long time.
The below query returns the incompatible program requests running due to which the request is in standby status.
  SELECT fsrn.program,
       fsrn.request_id, -- fstr.concurrent_program_id,
fstr.program incompatible_program,
                                                      fstr.request_id incompatible_prog_req_id,

  (SELECT meaning
   FROM apps.fnd_lookups
   WHERE lookup_type = 'CP_PHASE_CODE'
     AND lookup_code = fstr.phase_code) phase,

  (SELECT meaning
   FROM apps.fnd_lookups
   WHERE lookup_type = 'CP_STATUS_CODE'
     AND lookup_code = fstr.status_code) status,
                                                      ROUND ((fstr.actual_completion_date - fstr.actual_start_date) * 24 * 60, 2) time_taken_minutes,
                                                      DECODE (fstr.actual_completion_date,
                                                              NULL,
                                                              ROUND ((SYSDATE - fstr.actual_start_date) * 24 * 60, 2)) running_for_minutes,
                                                             fstr.actual_start_date,
                                                             fstr.actual_completion_date
FROM apps.fnd_concurrent_program_serial fcs,
     apps.fnd_conc_req_summary_v fstr,
     apps.fnd_conc_req_summary_v fsrn
WHERE 1 = 1 -- running_concurrent_program_id = 123123
AND fsrn.request_id = 123456 --Request id which is in standby status
--AND fsrn.program = '' --Or concurrent program name which is in standby status
AND to_run_concurrent_program_id = fstr.concurrent_program_id
  AND running_concurrent_program_id = fsrn.concurrent_program_id
  AND (fstr.actual_start_date BETWEEN fsrn.requested_start_date AND fsrn.actual_start_date
       OR fstr.actual_completion_date BETWEEN fsrn.requested_start_date AND fsrn.actual_start_date)-- AND fsrn.phase_code = 'P' --Pending
-- AND fstr.status_code != 'D' -- not cancelled
ORDER BY fstr.actual_start_date;
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply