December 02, 2021

Find session details sid/pid from concurrent request id

Oracle Performance Analysis - Long running Concurrent Requests

The following query can be used to find the sid,pid, spid for a specific concurrent request. If a program is running for long time and user requests to verify the root cause, this will help DBA to find the sid and then dba can go beyond this and look for sqlid, plan etc. This will be helpful while doing performance analysis


SELECT a.request_id,
       d.sid,
       d.serial#,
       d.sql_id,
       d.osuser,
       d.process,
       d.client_identifier "requestor" ,
       c.SPID
  FROM apps.fnd_concurrent_requests   a,
       apps.fnd_concurrent_processes  b,
       v$process c,
       v$session d
 WHERE     a.controlling_manager = b.concurrent_process_id
       AND c.pid = b.oracle_process_id
       AND b.session_id = d.audsid
       AND a.request_id = '&REQUEST_ID';


 

No comments:

Post a Comment

If you have any queries/ any suggestion please do comment and let me know.

Recent Post

Check progress on expdp and impdp

 Check progress on expdp and impdp: In few cases we need to monitor the progress of an export or import job in oracle. below are the steps c...