Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Find concurrent program details for execution time more than n minutes

$
0
0
Find concurrent program details for execution time more than n minutes:
====================================================
set line 200
set pagesize 500
col cp_name for a30
col ARGUMENT_TEXT for a60
SELECT  fcp.user_concurrent_program_name cp_name
        ,fcr.request_id rqst_id
        ,ROUND (((SYSDATE - fcr.actual_start_date) * 60 * 24), 2) runtime_min
        ,TO_CHAR (fcr.actual_start_date, 'DD-MON-YYYY HH24:MI:SS')act_start_datetime
        ,DECODE (fcr.status_code, 'R', fcr.status_code) status
        ,fcr.argument_text
       FROM apps.fnd_concurrent_requests fcr
        ,apps.fnd_user fu
        ,apps.fnd_responsibility_tl fr
        ,apps.fnd_concurrent_programs_tl fcp
   WHERE fcp.user_concurrent_program_name='Automatic Clearing for Receipts'
     AND fu.user_id = fcr.requested_by
     AND fr.responsibility_id = fcr.responsibility_id
     AND fcr.concurrent_program_id = fcp.concurrent_program_id
     AND fcr.program_application_id = fcp.application_id
      AND ROUND (((ACTUAL_COMPLETION_DATE - fcr.actual_start_date) * 60 * 24), 2) > 30
ORDER BY fcr.concurrent_program_id
        ,request_id DESC;

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>