Oracle applications – List all the concurrent Jobs ran by user.

Posted by Jiltin     9 January, 2009    1,238 views   

Here is the simple sql that gives you the all the concurrent Jobs ran by user.
This is working code, verified in oracle 11i financial applications

/*****************
Author: Jay
Substitute &user or pass as parameter
******************/

SELECT
       fcr.REQUEST_ID,
       FU.USER_NAME,
       fcr.PHASE_CODE,
       fcr.STATUS_CODE,
       (fcr.ACTUAL_COMPLETION_DATE –   fcr.ACTUAL_START_DATE) * 24 * 60 TIME_MINS,
       fcpt.USER_CONCURRENT_PROGRAM_NAME,
       fcp.CONCURRENT_PROGRAM_NAME,
       fcr.ACTUAL_START_DATE,
       fcr.ACTUAL_COMPLETION_DATE,
     fcp.CONCURRENT_PROGRAM_NAME
FROM  
       apps.FND_CONCURRENT_REQUESTS FCR,
       apps.FND_CONCURRENT_PROGRAMS FCP,
       apps.FND_CONCURRENT_PROGRAMS_TL FCPT,
       apps.FND_USER FU
WHERE  1=1
AND    FCP.CONCURRENT_PROGRAM_ID=FCR.CONCURRENT_PROGRAM_ID
AND    FCPT.CONCURRENT_PROGRAM_ID=FCP.CONCURRENT_PROGRAM_ID
AND    FCR.REQUESTED_BY = FU.USER_ID
AND    FU.USER_NAME = ‘&user’
ORDER BY FCR.REQUEST_ID DESC;

Post to Twitter  Post to Delicious  Post to Digg    Post to StumbleUpon

Categories : 11i Scripts, Oracle Applications Tags : , ,

Comments

No comments yet.


Leave a comment

(required)

(required)