此数据集用于确定正在使用中并发管理器,并可与实际的在启动时分配的并发管理器。而且考虑完成状态为 正常/警告 的请求。
select q.concurrent_queue_name, count(*) cnt, sum(r.actual_completion_date - r.actual_start_date) * 24 elapsed, avg(r.actual_completion_date - r.actual_start_date) * 24 average, stddev(actual_start_date - greatest(r.requested_start_date, r.request_date)) * 24 wstddev, sum(actual_start_date - greatest(r.requested_start_date, r.request_date)) * 24 waited, avg(actual_start_date - greatest(r.requested_start_date, r.request_date)) * 24 avewait from apps.fnd_concurrent_programs p, apps.fnd_concurrent_requests r, apps.fnd_concurrent_queues q, apps.fnd_concurrent_processes p where r.program_application_id = p.application_id and r.concurrent_program_id = p.concurrent_program_id and r.phase_code = 'C' -- completed and r.status_code in ('C','G') -- completed normal or with warning and r.controlling_manager = p.concurrent_process_id and q.concurrent_queue_id = p.concurrent_queue_id and r.concurrent_program_id = p.concurrent_program_id group by q.concurrent_queue_name;