maandag 20 april 2015

Error PRVF-0002 : could not retrieve local node name


Got the error “PRVF-0002 : could not retrieve local node name” when I tried to Install the Oracle Database 12c Software on new Oracle Linux (x64) Virtual Box. The pre installation check failed.


The ‘ping’ and ‘hostname’ commands returned the expected result, i.e.  “ofmw.ordina.nl”.

# ping localhost
PING ofmw.ordina.nl (127.0.0.1) 56(84) bytes of data.
# hostname
ofmw.ordina.nl

You’ll not encounter this problem when you accept the default domain ‘localhost.localdomain’ during the installation, but I prefer a more meaningful name like ‘ofmw.ordina.nl’. The file ‘/etc/hosts’ is used to resolve the localhost and/or domain names on Linux and likewise on Windows at the location ‘c:\Windows\System32\drivers\etc\hosts’. The hosts file contained two lines for resolving IPv4 and IPv6 adresses. NOTE: my own domain ‘localhost.localdomain’ is missing!

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

The IP address 127.0.0.1 must resolve to my own domain and localhost. List these hosts first so that they can be resolved fast (< 1ms). The end result looks like the example below.

127.0.0.1   ofmw.ordina.nl localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         ofmw.ordina.nl localhost localhost.localdomain localhost6 localhost6.localdomain6


The pre installation check passed and the Oracle Database 12c was successfully installed.