SELECT fcr.request_id
,fcr.oracle_process_id
,fcr.os_process_id
,fcp.user_concurrent_program_name
,fu.user_name
,fcr.status_code
,fcr.phase_code
,vsp.username
,vsp.sid
,vsp.serial#
,vsp.program
,vsw.event
,TO_CHAR(fcr.actual_start_date,'MON-DD-HH-MI-SS') actual_start_date
,TO_CHAR(fcr.actual_completion_date,'MON-DD-HH-MI-SS') actual_completion_date
FROM fnd_concurrent_requests fcr
,(SELECT c.username
,c.sid
,c.serial#
,c.program
,d.spid
FROM v$session c
,v$process d
WHERE c.paddr=d.addr
) vsp
,fnd_concurrent_programs_tl fcp
,fnd_user fu
,v$session_wait vsw
WHERE fcr.oracle_process_id=vsp.spid
AND fcr.concurrent_program_id=fcp.concurrent_program_id
AND fcp.language=USERENV('LANG')
AND fcr.requested_by=fu.user_id
AND vsp.sid=vsw.sid
AND fcr.status_code='R'
AND fcr.phase_code='R'
No comments:
Post a Comment