[FATAL] PRVF-0002 : Could not retrieve local nodename

During a silent Oracle 12c Release 1 database installation on a newly set up Oracle Enterprise Linux box, I encountered the following error when performing the installation:

[oracle@pandora database]$ ./runInstaller -silent -responseFile /home/oracle/database/response/kdb.rsp 
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/OraInstall2013-06-27_12-11-01AM. Please wait ...
[oracle@pandora database]$ [FATAL] PRVF-0002 : Could not retrieve local nodename
A log of this session is currently saved as: [..]

But when I checked the hostname, everything seems to be just fine, I even get the FQDN:

[oracle@pandora database]$ hostname

So what is the problem here? The Oracle Universal Installer (OUI) performs some thorough checks, including a reverse lookup of the hostname. In my case, I did not have a proper network setup (I was running this installation in a VM) and therefore no clean DNS setup.

It turns out the problem was that the hostname is not in the /etc/hosts file:

[oracle@pandora database]$ cat /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

To resolve this issue, either set up a DNS with proper forward and reverse lookup or just add the hostname (hostname and FQDN) to your /etc/hosts:

[oracle@pandora database]$ cat /etc/hosts   pandora pandora.krenger.local localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         pandora pandora.krenger.local localhost localhost.localdomain localhost6 localhost6.localdomain6

After making this change, I was able to perform the installation without any other problems. Alternatively, use the following command to make the above changes:

cp /etc/hosts /etc/hosts.original
awk '$1~"^|::1"{$2="'`hostname -s`'\ '`hostname`' "$2}1' OFS="\t" /etc/hosts > /etc/hosts


Oh no, new comments are currently disabled.
If you want to get in touch with me, please do so via e-mail:

PRVF-0002: could not retrieve local node name – use strace to find out why it failed | Complicated things possible, on 2018-03-22 03:19:09 (Website)

[…] Got this error message from Oracle 12c runInstaller on new provisioned virtual machine. As usual, google search would return a list of solution. For example.  You can find solution at https://www.krenger.ch/blog/fatal-prvf-0002-could-not-retrieve-local-nodename/ […]

Colin Martin, on 2015-11-03 15:10:12

Thank you Simon. You saved me a lot of headaches.

qais, on 2015-09-19 21:04:01

its work with me thanks

oc, on 2015-07-21 04:22:17

I hit this problem too. Your solution is very helpful. Oracle grid installer is stupid.

Ade, on 2015-03-25 23:03:01

I never thought this would be this much helpful.thanks a bunch. saved me a lot of trouble

LKALAS, on 2015-02-20 14:33:22

Thanks it worked. Install was successful

Thangam, on 2015-01-05 12:58:41

Hi, I have tried this solution, but still i am getting the same error. When i put hostname, both node is showing the same name like rac1.localhost I am trying to install 2 node rac using vmbox, please help me thanks thangaraj

John Kayode-Abusi, on 2014-05-23 15:14:26

Thank you. It also work for me

Gary, on 2014-05-07 23:12:43

Worked for me too. Thanks.

Installing Oracle DB 12c in Linux OEL6 (In One Sitting) | Mario Talavera Writes, on 2014-05-01 02:18:06 (Website)

[…] Source -  http://www.krenger.ch/blog/fatal-prvf-0002-could-not-retrieve-local-nodename/ […]

PRVF-0002 : 无法检索本地节点名 - 数据库 - 开发者, on 2014-04-16 05:23:01 (Website)

[…] http://www.krenger.ch/blog/fatal-prvf-0002-could-not-retrieve-local-nodename/ […]

Bharat, on 2014-01-07 05:38:44

Very good find. Thanks for sharing the info. Very useful

PRIMA NUR PRATAMA, on 2013-11-19 20:55:40

Thank you, May God Save you.. , thank you ! ;)

martin, on 2013-10-18 16:40:59

thanks, helped me a lot

master_shuffler, on 2013-10-09 17:10:24

Thanks a lot that was very helpful!!

JeffE, on 2013-10-03 20:08:36

This saved me after a wasted day of troubleshooting. Thank you

Bart, on 2013-09-09 16:16:56

thanks, works for me too

OracleLinux Release6 Update4(64bit)に、Oracle Database 12c をインストールする, on 2013-08-03 10:50:04 (Website)

[...] [FATAL] PRVF-0002 : Could not retrieve local nodename hostsが上手く設定出来ていないっぽい [...]

Dewendra, on 2013-07-23 13:14:18

Good One

MB, on 2013-07-02 21:49:20

Thanks for your insight; the installation works now.