oracle ebs 根据请求id找到对应trace 文件

SELECT 'Request id: '||request_id ,

'Trace id: '||oracle_Process_id,

'Trace Flag: '||req.enable_trace,

'Trace Name:

'||dest.value||'/'||lower(dbnm.value)||'_ora_'||oracle_process_id||'.trc',

'Prog. Name: '||prog.user_concurrent_program_name,

'File Name: '||execname.execution_file_name|| execname.subroutine_name ,

'Status : '||decode(phase_code,'R','Running')

||'-'||decode(status_code,'R','Normal'),

'SID Serial: '||ses.sid||','|| ses.serial#,

'Module : '||ses.module

from fnd_concurrent_requests req, v$session ses, v$process proc,

v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog,

fnd_executables execname

where req.request_id = &request

and req.oracle_process_id=proc.spid(+)

and proc.addr = ses.paddr(+)

and dest.name='user_dump_dest'

and dbnm.name='db_name'

and req.concurrent_program_id = prog.concurrent_program_id

and req.program_application_id = prog.application_id

and prog.application_id = execname.application_id

and prog.executable_id=execname.executable_id


生产环境有定时运行请求“Purge Obsolete Workflow Runtime Data”,而且仅保留3天的历史记录


Purge Concurrent Request and/or Manager Data  


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

转载于:http://blog.itpub.net/28211342/viewspace-2213209/

你可能感兴趣的:(oracle ebs 根据请求id找到对应trace 文件)