ITPub博客

首页 > 数据库 > Oracle > ORACLE EBS的Request ID和后台数据库Session ID关联

ORACLE EBS的Request ID和后台数据库Session ID关联

原创 Oracle 作者:zhyuh 时间:2009-06-15 11:08:33 0 删除 编辑
ORACLE EBS的Request和后台数据库Session通过apps.fnd_concurrent_requests.oracle_process_id字段和v$process.spid字段关联。[@more@]

下面的SQL可以根据Request ID找到对应的Session信息:-
select *
from v$session
where paddr in
(select addr
from v$process
where spid =
(select b.oracle_process_id
from apps.fnd_concurrent_requests b
where b.request_id = &req_number))

或者进一步找到正在运行的SQL:-
select sql_text
from v$sqltext_with_newlines
where hash_value in
(select SQL_HASH_VALUE
from v$session
where paddr in
(select addr
from v$process
where spid =
(select b.oracle_process_id
from apps.fnd_concurrent_requests b
where b.request_id = &req_number)))
order by piece;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/207/viewspace-1023112/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    233
  • 访问量
    2061869