Saturday, February 14, 2015

PRVF:002 Could Not Retrieve Local Node Name During Oracle Database 12c Install

Simple troubleshooting note during Oracle Database 12.1.0.2.0 installation on Oracle Linux 6.6


If you get the message above after running OUI (runInstaller) the message simply indicates that OUI is unable to retrieve the name of the local node. To determine why this happens you can validate using hostname command. 
For example:
[oracle@matthew database]$ hostname --long
hostname: Unknown host
To get additional information use the --verbose flag.
[oracle@matthew database]$ hostname --long --verbose
gethostname()=`matthew'
Resolving `matthew' ...
hostname: Unknown host
It now becomes obvious that the resolution using gethostname() is failing. Hostnames in Linux can be resolved using the /etc/hosts or a name server .e.g DNS. If a name server is not in use a quick check of /etc/hosts will reveal that an entry for the hostname (matthew) is not present.
[oracle@matthew database]$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Create an entry for the host and verify that it can be resolved.
[oracle@matthew database]$ cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.30 matthew.localdomain matthew
[root@matthew /]# hostname --long --verbose
gethostname()=`matthew'
Resolving `matthew' ...
Result: h_name=`matthew.localdomain'
Result: h_aliases=`matthew'
Result: h_addr_list=`192.168.1.30'
matthew.localdomain

Now run OUI again and the issue should be solved. While the problem is fairly trivial and for those who read the database installation documents obvious, this was to demonstrate how hostnames are resolved in Linux.

No comments:

Post a Comment