Oracle EBS标准错误信息如何追踪(Debug)
2011-02-18 11:11
435 查看
调用EBS标准API的时候,可能会返回一些让人看不懂的错误,比如开发rcv_transaction_interface的时候,数据卡在接口表里没有过去,但是返回的错误令人费解。例如:
*******************
Error: derive_vendor_rcv_line_qty-098: 1
Cause: A SQL error has occurred in derive_vendor_rcv_line_qty. The SQL error is User-Defined Exception.
Action: Take note of both this error number and the actions you were trying to perform. Contact your system administrator for further assistance.
********************
RVTSH-189:子例行程序 rvtshiline() 返回的错误
原因:子例行程序 rvtshiline() 返回时出现内部错误。
措施:请记录此错误编号以及您尝试进行的活动。 请与系统管理员联系以寻求帮助
Concurrent program RVCTP returned error
Cause: RVCTP encountered an internal error. Parameters: RVCTP,IMMEDIATE,4686,
Action: Note both this error number and the actions you are trying to perform. Contact your system admi
RVTBM-008: Subroutine rvtbm_immediate_mngr() returned error
Cause: Subroutine rvtbm_immediate_mngr() returned an internal error.
Action: Note this error number and the actions you are trying to perform. Contact your syste
RVTBM-120: Subroutine rvtptcontrol() returned error
Cause: Subroutine rvtptcontrol() returned an internal error.
Action: Note this error number and the actions you are trying to perform. Contact your system administrator
Concurrent Manager encountered an error while attempting to start your immediate concurrent program RVCTP. Routine &ROUTINE received a return code of failure.
Contact your support representative.
****************************************
那么我们就可以利用EBS标准的Debug方法来追踪到错误原因:
******************
首先,我们需要在admin职责下设置一些Profile: (记得设置在User级别,如果是site级别的,会很影响系统的Performance)
主要這四個:
a. RCV: Debug Mode=Yes
b. FND: Debug Log Enabled=Yes
c. FND: Debug Log Level=Statement
d. FND: Debug Log Module=po% -->此处看你debug什么模块的
----------------------------------------------
a. TP:INV Transaction processing mode=On-line
b. INV: Debug Trace=Yes
c. INV: Debug Level=11
d. INV: Debug file (Including the complete path)=<valid directory path ----------------------------------------------
a. OM: Debug Level = 5
b. OM: Debug Log Directory = <valid directory path>
然后可以用如下SQL查看Debug信息:
select to_char(timestamp, 'DD-MON-YY HH24:MI:SS'),
message_text,
module,
log_sequence
from fnd_log_messages
WHERE trunc(timestamp) = trunc(sysdate)
AND process_id = (SELECT os_process_id
FROM fnd_concurrent_requests
WHERE request_id = &p_request_id)
AND module not like 'fnd%'
ORDER BY log_sequence;
*********************************************
例如错误:Error: derive_vendor_rcv_line_qty-098的Debug信息如下:
由此,我们可以看到在Package:RCV_ROI_TRANSACTION中,4757行 - 5011行之间发生错误,引发Exception报错:Error: derive_vendor_rcv_line_qty-098,那么此错误就轻易被解决掉了。
*******************
Error: derive_vendor_rcv_line_qty-098: 1
Cause: A SQL error has occurred in derive_vendor_rcv_line_qty. The SQL error is User-Defined Exception.
Action: Take note of both this error number and the actions you were trying to perform. Contact your system administrator for further assistance.
********************
RVTSH-189:子例行程序 rvtshiline() 返回的错误
原因:子例行程序 rvtshiline() 返回时出现内部错误。
措施:请记录此错误编号以及您尝试进行的活动。 请与系统管理员联系以寻求帮助
Concurrent program RVCTP returned error
Cause: RVCTP encountered an internal error. Parameters: RVCTP,IMMEDIATE,4686,
Action: Note both this error number and the actions you are trying to perform. Contact your system admi
RVTBM-008: Subroutine rvtbm_immediate_mngr() returned error
Cause: Subroutine rvtbm_immediate_mngr() returned an internal error.
Action: Note this error number and the actions you are trying to perform. Contact your syste
RVTBM-120: Subroutine rvtptcontrol() returned error
Cause: Subroutine rvtptcontrol() returned an internal error.
Action: Note this error number and the actions you are trying to perform. Contact your system administrator
Concurrent Manager encountered an error while attempting to start your immediate concurrent program RVCTP. Routine &ROUTINE received a return code of failure.
Contact your support representative.
****************************************
那么我们就可以利用EBS标准的Debug方法来追踪到错误原因:
******************
首先,我们需要在admin职责下设置一些Profile: (记得设置在User级别,如果是site级别的,会很影响系统的Performance)
主要這四個:
a. RCV: Debug Mode=Yes
b. FND: Debug Log Enabled=Yes
c. FND: Debug Log Level=Statement
d. FND: Debug Log Module=po% -->此处看你debug什么模块的
----------------------------------------------
a. TP:INV Transaction processing mode=On-line
b. INV: Debug Trace=Yes
c. INV: Debug Level=11
d. INV: Debug file (Including the complete path)=<valid directory path ----------------------------------------------
a. OM: Debug Level = 5
b. OM: Debug Log Directory = <valid directory path>
然后可以用如下SQL查看Debug信息:
select to_char(timestamp, 'DD-MON-YY HH24:MI:SS'),
message_text,
module,
log_sequence
from fnd_log_messages
WHERE trunc(timestamp) = trunc(sysdate)
AND process_id = (SELECT os_process_id
FROM fnd_concurrent_requests
WHERE request_id = &p_request_id)
AND module not like 'fnd%'
ORDER BY log_sequence;
*********************************************
例如错误:Error: derive_vendor_rcv_line_qty-098的Debug信息如下:
Match Option:RProfile value ALLOW_RATE_OVERRIDE_FOR_USER_RATE_TYPE:N | po.plsql.RCV_ROI_TRANSACTION.RCV_ROI_TRANSACTION.4731 |
No of Distributions:1:: Rate and Rate_date in po distributions7.468200216771979::16-JAN-08 | po.plsql.RCV_ROI_TRANSACTION.RCV_ROI_TRANSACTION.4757 |
Exception in derive_vendor_rcv_line_qty | po.plsql.RCV_ROI_TRANSACTION.RCV_ROI_TRANSACTION.5011 |
相关文章推荐
- Oracle EBS标准错误信息如何追踪 (Debug)
- Oracle EBS标准错误信息如何追踪 (Debug)
- Oracle EBS标准错误信息如何追踪 (Debug)
- DNN调试利器DNNDebug.aspx--如何调试出错信息不具体的程序错误
- 如何将追踪到的堆栈错误信息完整的保存到log4j日志中
- Sharepoint学习笔记---Debug&TroubleShooting-如何让Sharepoint2010网站返回详细错误信息
- DNN调试利器DNNDebug.aspx--如何调试出错信息不具体的程序错误
- 小技巧:如何在某命令的帮助输出信息里(usage)用grep查找关键字(错误输出重定向到标准输出)
- 如何写安全的Java Web应用之输入校验(一):不要在输出中包含Debug信息
- 如何解决:Android中 Error generating final archive: Debug Certificate expired on 的错误
- httpClient如何接收格式错误的响应头部信息
- C# 如何获取出错的错误所在行数信息[原创]_C#教程_脚本之家
- 如何仅将标准错误发送給管道
- ADO.NET 2.0:如何排除错误信息「当目前没有数据时,尝试读取无效」(C#)
- 如何在Discuz实际开发中开启PHP自带的错误信息
- c3p0 不断的输出debug错误信息
- 如何让gcc的编译错误信息以英文的方式输出?
- 如何对Windows 2000中出现的“Stop 0x0000007B”错误信息进行故障诊断
- 程序员最痛苦的事,就是程序出错;程序员最最痛苦的事,就是程序出错了还没有错误信息!--IIS Service Unavailable 问题如何解决
- 如何自定义Struts2表单验证后的错误信息显示格式 .