ablog

不器用で落着きのない技術者のメモ

Oracle9i Application Server R2 9.0.2 のインストール中に「Your local host name database file (typically /etc/hosts) is not configured properly」エラーが発生する

現象

  • Oracle9i Application Server R2 9.0.2 のインストール中に「Your local host name database file (typically /etc/hosts) is not configured properly」エラーが発生する。
  • /export/home/app/oraInventory/logs/installActions2011-03-31_09-01-44AM.log
platGroup = WINDOWS
Query returned : false
Calling query netQueries2.1.0.8.0  getFullHostName
Query returned : jpsunty10
Calling query netQueries2.1.0.8.0  getMachineName

hostName = jpsunty10
Query returned : jpsunty10
Setting value of PRE_REQUISITE to false
# The pre-requisite for the component Oracle9i Application Server 9.0.2.0.1  has failed.
Error :*** Alert: Your local host name database file (typically /etc/hosts) is not configured properly. This file should have an entry of the form: 

 <IP_ADDRESS> <FULLY_QUALIFIED_HOSTNAME> <ALIASES> 

On Solaris systems, the following files should also contain the fully qualified hostname, including the domain name:

/etc/nodename, /etc/net/ticlts/hosts, /etc/net/ticots/hosts, /etc/net/ticotsord/hosts, and any files in /etc whose names begin with "hostname" 

In some of the above files, the hostname may occur more than once, in which case all occurrences should be changed. Please correct your local host name database file, reboot the host, and restart the installation. Failure to properly configure this file may result in product runtime issues regarding proper hostname resolution. ***

原因

  • /etc/hosts の設定不良。
  • 」という書式で記述していなかった。具体的には以下の通り。
誤: 192.168.0.21 oas oas.ablog.com
正: 192.168.0.21 oas.ablog.com oas

対処

  • /etc/hosts の記述を修正する。