ORACLE 11g R2 安装时,提示[INS-06101] IP address of localhost could not be detemined
今天是2013-08-04日,由于工作变动,自己无法在使用工作的环境中的主机了,特在oracle linux 上进行oracle 11g R2数据库的安装。但是在安装的时候提示如下错误:
也就是本地ip不能被正确的识别。
解决办法如下:
root@oracle-one ~]# cat/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=oracle-one
[root@oracle-one ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@oracle-one ~]# ifconfig
eth0 Link encap:Ethernet HWaddr08:00:27:D6:DB:E3
inet addr:192.168.56.156 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fed6:dbe3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:214 errors:0 dropped:0 overruns:0 frame:0
TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:23799 (23.2 KiB) TXbytes:27428 (26.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 b) TXbytes:480 (480.0 b)
[root@oracle-one ~]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.156 oracle-one