ITPub博客

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

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

Oracle 作者:kunlunzhiying 时间:2017-03-25 14:38:08 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/28211342/viewspace-2136065/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
IT搬砖

注册时间:2014-07-28

  • 博文量
    665
  • 访问量
    568767