SELECT a.request_id, d.sid, d.serial# ,d.osuser,d.process , c.SPID ,d.inst_id, a.concurrent_program_id, d.event
, d.*
FROM apps.fnd_concurrent_requests a,
apps.fnd_concurrent_processes b,
gv$process c,
gv$session d
WHERE a.controlling_manager = b.concurrent_process_id
AND c.pid = b.oracle_process_id
--AND concurrent_program_id = 32766
AND b.session_id=d.audsid
AND c.inst_id = d.inst_id
AND a.request_id = 197521679
SELECT s2.sid
, s2.lockwait
, s1.sql_text
, s1.piece
FROM gv$SQLtext s1
, gv$session s2
WHERE s1.address = s2.sql_address
AND s1.inst_id = s2.inst_id
--AND s2.sid = 1380
--AND s2.inst_id = 2
AND module IN ('e:XXX:cp:inv/INCOIN')
ORDER BY s2.sid, s1.piece
SELECT *
FROM gv$session
WHERE 1=1
--AND module like '%cp:%INV%'
AND sid in (1380, 731)
SELECT event, state, p1, p2, p3
FROM gv$session_wait
WHERE sid = 1380
SELECT description, USER_CONCURRENT_PROGRAM_NAME,CONCURRENT_PROGRAM_NAME
FROM fnd_concurrent_programs_vl
WHERE 1=1
--AND concurrent_program_id = 32766
AND USER_CONCURRENT_PROGRAM_NAME like '%Receiving Transaction%'
SELECT
l1.sid || ' is blocking ' || l2.sid blocking_sessions
FROM
gv$lock l1, gv$lock l2
WHERE
l1.block = 1 AND
l2.request > 0 AND
l1.id1 = l2.id1 AND
l1.id2 = l2.id2 AND
l1.inst_id = l2.inst_id
, d.*
FROM apps.fnd_concurrent_requests a,
apps.fnd_concurrent_processes b,
gv$process c,
gv$session d
WHERE a.controlling_manager = b.concurrent_process_id
AND c.pid = b.oracle_process_id
--AND concurrent_program_id = 32766
AND b.session_id=d.audsid
AND c.inst_id = d.inst_id
AND a.request_id = 197521679
SELECT s2.sid
, s2.lockwait
, s1.sql_text
, s1.piece
FROM gv$SQLtext s1
, gv$session s2
WHERE s1.address = s2.sql_address
AND s1.inst_id = s2.inst_id
--AND s2.sid = 1380
--AND s2.inst_id = 2
AND module IN ('e:XXX:cp:inv/INCOIN')
ORDER BY s2.sid, s1.piece
SELECT *
FROM gv$session
WHERE 1=1
--AND module like '%cp:%INV%'
AND sid in (1380, 731)
SELECT event, state, p1, p2, p3
FROM gv$session_wait
WHERE sid = 1380
SELECT description, USER_CONCURRENT_PROGRAM_NAME,CONCURRENT_PROGRAM_NAME
FROM fnd_concurrent_programs_vl
WHERE 1=1
--AND concurrent_program_id = 32766
AND USER_CONCURRENT_PROGRAM_NAME like '%Receiving Transaction%'
SELECT
l1.sid || ' is blocking ' || l2.sid blocking_sessions
FROM
gv$lock l1, gv$lock l2
WHERE
l1.block = 1 AND
l2.request > 0 AND
l1.id1 = l2.id1 AND
l1.id2 = l2.id2 AND
l1.inst_id = l2.inst_id