Friday, December 2, 2011

Find Current Query for a Concurrent Program.

Following query gives us the current running query for a concurrent program in Oracle Applications:

SELECT a.request_id, d.sid, d.serial# ,d.osuser,d.process
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 = 30600658
AND a.phase_code = 'R'

select /*+ ORDERED */ sql_text
from v$session s, v$sqltext t
where t.address = s.sql_address
and s.sid = 2348
order by piece

No comments:

Cellular Phones

Online Store