虚拟机Linux下安装oracle 10G 时,在安装过程中,到检查环境变量那一步时,Oracle提示如下信息:
Checking Network Configuration requirements ...
Actual Result: Unknown Host Exception has Occurred :redhat6: redhat6.
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be
configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on
systems configured with DHCP.
经过多次安装和日志排查,终于发现了问题,这个是因为/etc/hosts配置文件配置错误导致的,这个文件的IP地址对应的主机名要和这个/etc/sysconfig/network的配置文件的主机名一样才行。
例如:/etc/sysconfig/network配置文件信息如下:
NETWORKING=yes
HOSTNAME=redhat6
那么/etc/hosts配置文件的主机名就要用到redhat6,如:192.168.1.203 redhat6
127.0.0.1 localhost
上面的IP地址是linux本机的IP地址,修改后,上面的问题就解决了。