Oracle 安裝報錯 [INS-06101] IP address of localhost could not be determined 解決方法
阿新 • • 發佈:2018-12-20
提示符中顯示的的使用者名稱:[[email protected] database]$ 和檔案/etc/hosts檔案中記錄的主機名稱不一致導致的 可以看到我的提示是[email protected],檢視該檔案也可以看到設定的HOSTNAME=HOST
[[email protected] database]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=HOST
但是在/etc/hosts檔案中沒有對應的ip,也不能是127.0.0.1這種, 之前的/etc/hosts檔案如下:
[[email protected] database]$ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
報錯資訊如下:
[[email protected] database]$ ./runInstaller -silent -force -noconfig -responseFile /home/oracle/database/response/db_install.rsp Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 37347 MB Passed Checking swap space: must be greater than 150 MB. Actual 511 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-11-07_09-31-48PM. Please wait ...[
[email protected] database]$ [WARNING] [INS-06101] IP address of localhost could not be determined CAUSE: The localhost is not mapped to a valid IP address in Hosts file (Eg. /etc/hosts in Unix). ACTION: Assign a valid IP address for the localhost or set it to loopback IP address (127.0.0.1 in IPv4 or ::1 in IPv6). SUMMARY: - HOST: HOST [SEVERE] - Email Address Not Specified A log of this session is currently saved as: /tmp/OraInstall2018-11-07_09-31-48PM/installActions2018-11-07_09-31-48PM.log. Oracle recommends that if you want to keep this log, you should move it from the temporary location to a more permanent location.
修改/etc/hosts檔案,增加相應的對映,再次執行安裝oracle命令解決問題。
[[email protected] ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
172.23.178.85 localhost HOST