Friday, November 17, 2017

Query to get Scheduled Concurrent Programs in Oracle Apps

Users can schedule the concurrent requests in three ways (To run once at a specified time / To run periodically / To run on specific days of the month or week).



The below query will return all the concurrent requests which are scheduled using any of the above methods. 




SELECT cr.request_id,
       DECODE (cp.user_concurrent_program_name,
               'Report Set', 'Report Set:' || cr.description,
               cp.user_concurrent_program_name)
          NAME,
       argument_text,
       cr.resubmit_interval,
       NVL2 (cr.resubmit_interval,
             'PERIODICALLY',
             NVL2 (cr.release_class_id, 'ON SPECIFIC DAYS', 'ONCE'))
          schedule_type,
       DECODE (
          NVL2 (cr.resubmit_interval,
                'PERIODICALLY',
                NVL2 (cr.release_class_id, 'ON SPECIFIC DAYS', 'ONCE')),
          'PERIODICALLY',    'EVERY '
                          || cr.resubmit_interval
                          || ' '
                          || cr.resubmit_interval_unit_code
                          || ' FROM '
                          || cr.resubmit_interval_type_code
                          || ' OF PREV RUN',
          'ONCE',    'AT :'
                  || TO_CHAR (cr.requested_start_date, 'DD-MON-RR HH24:MI'),
          'EVERY: ' || fcr.class_info)
          schedule,
       fu.user_name,
       requested_start_date
  FROM apps.fnd_concurrent_programs_tl cp,
       apps.fnd_concurrent_requests cr,
       apps.fnd_user fu,
       apps.fnd_conc_release_classes fcr
 WHERE     cp.application_id = cr.program_application_id
       AND cp.concurrent_program_id = cr.concurrent_program_id
       AND cr.requested_by = fu.user_id
       AND cr.phase_code = 'P'
       AND cr.requested_start_date > SYSDATE
       AND cp.LANGUAGE = 'US'
       AND fcr.release_class_id(+) = cr.release_class_id
       AND fcr.application_id(+) = cr.release_class_app_id;

No comments:

Post a Comment

SupplierAddressImportTemplate.xlsm South Africa Suburb Field mapping in POZ_SUPPLIER_ADDRESSES_INT

Suburb mpping in Supplier Address Import Template will be mapped to Address Element Attribute2 (HZ_LOCATIONS. ADDR_ELEMENT_ATTRIBUTE2)