Oracle Workflow异常 ORA-04068: ORA-04061: ORA-04065: ORA-06508 解决办法 (二)

本文介绍了一种在Oracle系统中尝试通过电子邮件批准采购订单时出现的错误及其解决方案。该错误涉及'ApprovePONotification'活动,并显示了多个错误活动及详细错误信息。文章提供了详细的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

When attempting to approve Purchase Orders via Email an error occurs during the activity 'Notify
Approver Subprocess/Approve PO Notification'. It shows the following Errored Activities:
ERROR
Activity:
Approve PO Notification
Result: #MAIL
Error Name: WF_ERROR
Error message: [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020:Error when getting notification content. Caused by:
ORA-04068: existing state of has been invalidated
ORA-04061: existing state of package body "APPS.PO_WF_PO_NOTIFICATION" has been invalidated
ORA-04065: not executed, altered or dropped package body "APPS.PO_WF_PO_NOTIFICATION"
ORA-06508: PL/SQL: could not find program unit being called
wf_notification.GetAttrDoc2(1209521, PO_LINES_DETAILS, text/html)
Wf_Notification.GetAttrDoc(' encountered during execution of Generate function 'WF_XML.Generate'
for event 'oracle.apps.wf.notification.send'.

ERROR_STACK= WF_MAIL.GetLOBMessage3(1209521, WFMAIL, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated
ORA-04061: existing state of package body "APPS.PO_WF_PO_NOTIFICATION" has been invalidated
ORA-04065: not executed, altered or dropped package body "APPS.PO_WF_PO_NOTIFICATION"
ORA-06508: PL/SQL: could not find program unit being called
wf_notification.GetAttrDoc2(1209521, PO_LINES_DETAILS, text/html)
Wf_Notification.GetAttrDoc(1209521, PO_LINES_DETAILS, text/html)
Wf_Notification.GetText(1209521, text/html)
Wf_Notification.GetBody(1209521, text/html)
WF_NOTIFICATION.GetFullBody(nid => 1209521, disptype => text/html)
WF_MAIL.GetLOBMessage3(nid => 1209521, r_ntf_pref => MAILHTML), Step -> Getting text/html
body)
WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 1209521)
WF_XML.Generate(oracle.apps.wf.notification.send, 1209521)
WF_XML.Generate(oracle.apps.wf.notification.send, 1209521)
Wf_Event.setMessage(oracle.apps.wf.notification.send, 1209521, WF_XML.Generate)
Wf_Event.dispatch_internal()

Cause

When a package is compiled, all copies in the shared pool are flagged as invalid. The error ORA-04061 in the error stack is caused because the notification mailer is reading an old version of the package stored in memory.

Solution

Follow these steps to resolve the issue:
1. Shutdown the Notification Mailer and Workflow Deferred Notification Agent Listener
2. Recompile the APPS schema through ADADMIN
3. Start the Notification Mailer and agent listener and re-test

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值