Home > Database > Mysql Tutorial > INS-40904 错误解决

INS-40904 错误解决

WBOY
Release: 2016-06-07 17:25:44
Original
1659 people have browsed it

在安装Oracle Grid11gR2的时候报出错误:INS-40904 ORACLE_HOSTNAME Does not Resolve to a Valid Host Name

问题现象:

在安装Oracle Grid11gR2的时候报出错误:INS-40904 ORACLE_HOSTNAME Does not Resolve to a Valid Host Name

问题分析:

从问题现象上来看,是由于ORACLE_HOSTNAME参数没解析有效主机名导致这个错误的爆出。

解决思路:

1、 配置ORACLE_HOSTNAME参数

2、 检查主机名

3、 检查文件

参考metalink [ID 1281039.1]

纠结的测试,终于不再报错:

1、  我通过在grid用户.bash_profile文件中添加如下参数,重新再次执行,还是报同样的错误。

export ORACLE_HOSTNAME=grid01

 

2、  检查了/etc/host文件,应该没有问题。

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1              localhost.localdomain localhost

 

#public

172.17.46.10            grid01.prudentwoo.com  grid01

172.17.46.11            grid02.prudentwoo.com  grid02

 

#private

10.10.10.1              pri01.prudentwoo.com    pri01

10.10.10.2              pri02.prudentwoo.com    pri02

 

#virtual

172.17.46.150            vip01.prudentwoo.com    vip01

172.17.46.151            vip02.prudentwoo.com    vip02

3、  检查主机名/etc/sysconfig/network,见如下信息

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=gird01.localdomain

我将两边节点的HOSTNAME的值修改为grid01和grid02 (也就是去掉了后面的localdomain)

重启服务器后,再也没有报此错误,由此判断,应该是主机名的问题导致。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template