ORACLE EBS 并发请求启用TRACE调试

Tracing the Concurrent program is very good option to Debug any issue while running the concurrent program.

Goal :
To enable the Trace for Concurrent Programs
To Debug the issues in Concurrent Programs or its dependent objects.

Solution :
1. Goto Concurrent Program Definition

Application Developer –> Concurrent –> Program –> check Enable Trace

Query your concurrent program and check the Enable Trace check box at the bottom of the screen.


2. Set the Profile Concurrent: Allow Debugging to YES.


3. Navigate to the Responsibility from where you are running the program.

4. Before Submitting the Concurrent Program in Submit Request screen there will be an option like Debug Options click on that button.


5. In the Debug Options select the SQL Trace and enable Trace with binds.



6. Submit the Concurrent Program and note down the Request id.

7.Trace file name will always be post fixed with oracle_process_id.To get the oracle_process_id use the below SQL
Select oracle_process_id from fnd_concurrent_requests where request_id= &Request_id;

8.And the Trace file path can be derived using the below SQL
Select * from v$parameter where name='user_dump_dest';

9. Get the trace file to your local machine.Understanding the raw trace is very complex so use TKPROF utility to make the Trace file readable.

10. Open the Command Prompt and run the below command
TKPROF < Trace File_Name.trc> <Output_File_Name.out> SORT=fchela

11.A new outfile will be generated with the name given in the above command.Analyse the Output file to know the answers for your problem.

Sql queries to find the log files by Request id
select req.oracle_process_id tracename, req.request_id, req.requested_by,usr.user_name, prog.user_concurrent_program_name, req.request_date, req.phase_code, req.status_code, req.logfile_name , req.outfile_name, dest.value as user_dump_dest from apps. fnd_concurrent_requests req, gv$parameter dest, apps.fnd_concurrent_programs_vl prog, apps.fnd_user usr
where  req. concurrent_program_id = prog.concurrent_program_id
and req.requested_by = usr.user_id
and dest.name= 'user_dump_dest'
and request_id =&Request_id;

Sql query find the log files by username
select  req.oracle_process_id tracename ,  req.request_id ,  req.requested_by , usr.user_name ,  prog.user_concurrent_program_name ,  req.request_date ,   req.phase_code ,  req.status_code ,  req.logfile_name  ,  req.outfile_name ,  dest.value  as  user_dump_dest 
from  apps. fnd_concurrent_requests req ,  gv$parameter dest ,  apps.fnd_concurrent_programs_vl prog ,  apps.fnd_user usr
where   req. concurrent_program_id  =  prog.concurrent_program_id
and  req.requested_by  =  usr.user_id
–and request_id like ‘6013239’
and  dest.name =  ‘user_dump_dest’
and  usr.user_name  like  ‘Ramesh%G%’
order  by  request_date  desc
Select  oracle_process_id  from  fnd_concurrent_requests  where  request_id  =  & Request_id ;
 
select  *  from  apps. fnd_concurrent_requests req , gv$parameter dest  ,  apps  . fnd_concurrent_programs_vl prog  where   req. concurrent_program_id  =  prog.concurrent_program_id  and  request_id  like  ‘601300%’
and  dest.name =  ‘user_dump_dest’

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Oracle EBS(Enterprise Business Suite)是由Oracle公司推出的一套集成化的企业资源管理(ERP)软件。调试和优化是在使用Oracle EBS时经常需要进行的操作。 首先,调试是指在软件发或系统故障排除过程中通过检查和分析代码以找出错误的过程。对于Oracle EBS调试来说,可以通过一些工具来帮助识别和解决问题。例如,可以使用Oracle调试工具如PL/SQL Developer、SQL Developer等来执行逐步调试和跟踪代码执行过程,从而找出可能的错误。 其次,优化是指通过分析和改进系统性能以提高效率的过程。对于Oracle EBS的优化,可以采取一系列的措施来提升系统性能。例如,可以通过优化SQL查询语句和索引设计来加快数据库操作速度;通过调整系统参数和配置硬件资源来提高系统吞吐量;通过合理分配用户权限和设置访问控制策略来提升安全性和响应速度等等。 在进行Oracle EBS调试和优化时,需要深入了解系统架构和业务流程,并结合具体问题进行分析和处理。同时,也需要了解相应的Oracle数据库知识和相关工具的使用技巧。此外,与用户和发团队紧密合作,收集和分析相关日志和异常信息,对系统进行不断监测和调整,以保证系统的稳定性和高效运行。 总而言之,Oracle EBS调试和优化是一个综合性的工作,需要技术专家对系统进行深入研究和分析,并采取相应的策略和措施来解决问题和提升系统性能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值