Group Team

This is the mostly faced issue while running Plsql based concurrent program.
We may not be sure which is the query being executed.
We can take a TKPROF and check the performance of the query.
But to get the TKPROF the program must be completed first.

We can use the below query to get the sql query that is being executed for the currently running Concurrent program.
Request id is the input for this query.


SELECT  fcr.request_id,
              fcp.user_concurrent_program_name,
              vsq.sql_text
  FROM  fnd_concurrent_requests fcr,
               v$process vp,
               v$session vs,
               v$sql vsq,
               fnd_concurrent_programs_vl fcp
 WHERE fcr.request_id =Request Id’
   AND    fcr.oracle_process_id = vp.spid
   AND    vs.sql_address = vsq.address
   AND    vs.paddr = vp.addr
   AND    fcr.concurrent_program_id = fcp.concurrent_program_id;
Labels: edit post
1 Response
  1. Sridevi K Says:

    Regards
    Sridevi Koduru (Senior Oracle Apps Trainer Oracleappstechnical.com)
    LinkedIn profile - https://in.linkedin.com/in/sridevi-koduru-9b876a8b
    Please Contact for One to One Online Training on Oracle Apps Technical, Financials, SCM, SQL, PL/SQL, D2K at training@oracleappstechnical.com | +91 - 9581017828.


Post a Comment