(转) 关于Oracle EBS邮件服务无法使用的报错

来源http://blog.itpub.net/23850820/viewspace-1060596/ 

也可以检查如下网站:http://blog.sina.com.cn/s/blog_5b021b480100ffkd.html

 

修改Oracle EBS应用服务器的IP地址后,需要运行adautocfg.sh脚本来重新自动配置,执行完adautocfg.sh之后,发现Oracle EBS的邮件审批服务(Workflow Notification Mailer)无法使用。报错信息如下;

This automatic Service Component has been restarted the maximum of 5 times after stopping with error.Thus,it has been system deactivated …………Could not start component:perfoming follback ->oracle.apps.fnd.cp.gsc.SvcCoponentException:Validation failed for the following parameters -> {OUTBOUND_SERVER=无法连接网络}

问题应该出在发送邮件的配置上。出站服务器名为hostname.dnsname.com.cn,与app server的主机配置相同.

按照下面的步骤检查:
1.检查邮件服务是否启动
netstat -an|grep LISTEN|grep 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 

 

2.使用系统的mail命令是否可以发送邮件
mail -s "just test " -c "cc_charsi@domainname.com.cncharsi@domainname.com.cn < mail.txt
可用

或者使用:echo "mail content"|mail -s test 123456@163.com

 

3.检查SMTP 服务是否可用
telnet hostname.dnsname.com.cn 25
telnet 127.0.0.1 25

至此发现telnet hostname.dnsname.com.cn 25不通,而telnet 127.0.0.1 25通,查看检查步骤的第一步,是由于SMTP的服务是启动在回环地址127.0.0.1上的,而域名在/etc/hosts文件中配置指向的是服务器的实际IP地址,因此使用hostname.dnsname.com.cn域名访问25端口不通。也就是造成WorkFlow邮件不能发送邮件通知的原因。

解决方法:
原因明确之后,解决办法也就好处理了,可以用下面两种办法
1.修改SMTP的配置,使其监听端口在hostname.dnsname.com.cn上;
2.修改/etc/hosts文件,使127.0.0.1IP对应域名;
3.修改WorkFlow Notification Mailer中"出站服务器名"为127.0.0.1即可.

另外,可以从Oracle数据库中查找WorkFlow的邮件配置的信息,方法如下:

sqlplus apps/password@sid <

set pagesize 100
set linesize 132
set feedback off
set verify off

col value format a35
col component_name format a30
select c.component_id, c.component_name, p.parameter_id, p.parameter_name, v.parameter_value value
from fnd_svc_comp_param_vals_v v, fnd_svc_comp_params_b p, fnd_svc_components c
where c.component_type = 'WF_MAILER'
and v.component_id = c.component_id
and v.parameter_id = p.parameter_id
and p.parameter_name in ( 'INBOUND_SERVER','ACCOUNT', 'REPLYTO','OUTBOUND_SERVER')
order by c.component_id, c.component_name,p.parameter_name
/

exit
EOF

 

[@more@]

posted @ 2014-08-18 20:57  我不卖豆腐  阅读(1594)  评论(0编辑  收藏  举报