Wednesday, September 26, 2018

For checking last run of a Concurrent Program along with Processed time


SELECT DISTINCT c.user_concurrent_program_name, 
Round(( ( SYSDATE - a.actual_start_date ) * 24 * 60 * 60 / 60 ), 2) AS 
Process_time, 
a.request_id, 
a.parent_request_id, 
(SELECT d.sid 
 FROM   apps.fnd_concurrent_requests f, 
        apps.fnd_concurrent_processes b, 
        v$process c, 
        v$session d 
 WHERE  f.controlling_manager = b.concurrent_process_id 
        AND c.pid = b.oracle_process_id 
        AND b.session_id = d.audsid 
        AND f.request_id = a.request_id 
        AND f.phase_code = 'R')                                     SID#, 
a.request_date, 
a.actual_start_date, 
a.actual_completion_date, 
( a.actual_completion_date - a.request_date ) * 24 * 60 * 60        AS 
                end_to_end, 
( a.actual_start_date - a.request_date ) * 24 * 60 * 60             AS lag_time, 
d.user_name, 
a.phase_code, 
a.status_code, 
a.argument_text, 
a.priority 
FROM   apps.fnd_concurrent_requests a, 
       apps.fnd_concurrent_programs b, 
       apps.fnd_concurrent_programs_tl c, 
       apps.fnd_user d 
WHERE  a.concurrent_program_id = b.concurrent_program_id 
       AND b.concurrent_program_id = c.concurrent_program_id 
       AND a.requested_by = d.user_id 
       AND status_code = 'R' 
ORDER  BY process_time DESC; 

No comments:

Post a Comment

What is the process of getting a permanent driving license after getting learning license in Noida? Please answer in detail.

This also answers “Uttar Pradesh - How to Obtain a Learner Driver Licence? ” No Agent, No Third Party. To get your driving license is...