PRVF-0002 : Could not retrieve local nodename

I faced this error recently when I was building up my VM to install and configure OEM12cR5 on it. So before I can start with OEM setup I have to install Oracle Database for OMR. While I was performing Oracle 12c Release 1 database installation on my Virtual Machine on Virtual Box having Oracle Enterprise Linux 6 on it I came across this error.

[oracle@localhost database]$ ./runInstaller

Starting Oracle Universal Installer…


Checking Temp space: must be greater than 500 MB.   Actual 45136 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 4031 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-01-24_10-25-50AM. Please wait …


To check if my hostname is setup properly, I thought of looking into my hosts file and there it was.  The problem was that the hostname was missing in the hosts” file:

[oracle@localhost database]$ hostname


[oracle@localhost database]$ cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


Using the editor I put the entry of my hostname in “hosts” file under “/etc/hosts”.  Make sure you have proper permissions while making that change. Login with root user and do the required editing and save the file.

So after making the changed my “hosts” file looked like this.


[oracle@localhost database]$ cat /etc/hosts   localhost localhost.em13c

::1         localhost localhost.em13c


After making this change, I ran the installer again and this time the setup ran successfully without any error messages.


Also the other option can be before running the setup you can set the value of Environment Variable “ORACLE_HOSTNAME” to your hostname and then run the setup.


[oracle@localhost database]$ ORACLE_HOSTNAME=localhost.em13c

[oracle@localhost database]$ export ORACLE_HOSTNAME



Deepak Sharma


Leave a Reply

Your email address will not be published. Required fields are marked *