Join the OracleApps88 Telegram group @OracleApps88to get more information on Oracle EBS R12/Oracle Fusion applications.

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.

Saturday, August 13, 2011

GET THE CURRENT SQL STATEMENT RUNNING FOR A CONCURRENT REQUEST

SELECT
  A.REQUEST_ID
  , D.SID
  , D.SERIAL#
  , D.OSUSER
  , D.PROCESS
  , C.SPID
  , E.SQL_TEXT
FROM
  APPS.FND_CONCURRENT_REQUESTS A,
  APPS.FND_CONCURRENT_PROCESSES B,
  V$PROCESS C,
  V$SESSION D,
  V$SQL E
WHERE 1=1
  AND A.CONTROLLING_MANAGER = B.CONCURRENT_PROCESS_ID
  AND C.PID = B.ORACLE_PROCESS_ID
  AND B.SESSION_ID = D.AUDSID
  AND D.SQL_ADDRESS = E.ADDRESS
;


No comments:

Post a Comment

If you are facing any issues while copying the Code/Script or any issues with Posts, Please send a mail to OracleApp88@Yahoo.com or message me at @apps88 or +91 905 957 4321 in telegram.
Best Blogger TipsGet Flower Effect