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

Simple troubleshooting note during Oracle Database 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
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 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 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 matthew.localdomain matthew
[root@matthew /]# hostname --long --verbose
Resolving `matthew' ...
Result: h_name=`matthew.localdomain'
Result: h_aliases=`matthew'
Result: h_addr_list=`'

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.


Popular posts from this blog

Viewing ASM trace files and alert logs in Unix/Linux

ORA-00020: maximum number of processes (%s) exceeded

Troubleshooting RAC Public Network Failure