安装Oracle 11gR2,报错:[INS-06101] IP address of localhost could not be determined
安装Oracle 11gR2,报错:[INS-06101] IP address of localhost could not be determined
出现这种错误是因为主机名和/etc/hosts 文件不一致。
1、/etc/sysconfig/network
[root@rac2 11.2.2]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac2
2、/etc/hosts
[root@rac2 11.2.2]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
这里只需在/etc/hosts中添加下面一行
192.168.72.3 rac2
其中192.168.72.3为linux虚拟机ip,rac2为该虚拟机的hostname。