Home  >  Article  >  Database  >  Oracle 安装报错 [INS-06101] IP address of localhost could not be

Oracle 安装报错 [INS-06101] IP address of localhost could not be

WBOY
WBOYOriginal
2016-06-07 17:05:30857browse

安装Oracle 11gR2,报错:[INS-06101] IP address of localhost could not be determined出现这种错误是因为主机名和/etc/hosts

安装Oracle 11gR2,报错:[INS-06101] IP address of localhost could not be determined

出现这种错误是因为主机名和/etc/hosts 文件不一致,只需要把主机名和其IP 写入/etc/hosts 文件,,就ok了。

查看主机名和和ip 地址关系:

[root@localhost~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=localhost.localdomain

这里的主机名是localhost.localdomain.

[root@localhost~]# cat /etc/hosts

# Do not removethe following line, or various programs

# that requirenetwork functionality will fail.

127.0.0.1localhost

这里我们修改一下主机名,Linux 下修改/etc/sysconfig/network 里的hostname 需要重启系统才能生效。

修改network 文件之外,再使用hostname 命令指定一下主机名,就不用重启OS了。

1.     修改/etc/sysconfig/network 文件

[root@localhost~]# cat /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=dave

2.     使用hostname 命令修改主机名,该修改重启会失效,但在第一步我们已经修改过。所以失效也没关系

[root@localhost ~]# hostname

localhost

[root@localhost ~]# hostname dave

[root@localhost ~]# hostname

dave

3.     修改hosts 文件

[root@localhost ~]# cat /etc/hosts

# Do not remove the following line, orvarious programs

# that require network functionality willfail.

127.0.0.1 localhost

192.168.3.222 dave

再次运行安装文件,顺利通过。

linux

Statement:
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