5 Replies Latest reply: Jul 12, 2007 2:31 AM by 431164 RSS

    Failed to get IP for localhost

    429779
      hi,
      I was trying to install Oracle 10g on RedHat Linux . OPMN manager assistant failed to start while installation.It suggested to start OPMN manually and retry the installation. when I try to start OPMN manually using opmnctl start it displays an error - Failed to get IP for localhost . Where in there is a proper host name set and proper IP address for the Linux Machine.

      Thanks in ADVANCE for any help.
        • 1. Re: Failed to get IP for localhost
          434965
          I encountered the same issue while installed Oracle ias904 (Oracle App Server 10g). For you to get that error, it appears that your hosts file is not set properly. Edit file /etc/hosts and ensure that you have at least two entries in it. Below is a typical example of how the file should look like.
          ---------------- Start of File --------------
          127.0.0.1 localhost.localdomain localhost
          192.168.0.1     mainserver.domain_name.com     mainserver
          ---------------- End of File --------------
          The first line (uncommented lines) should contain info about your localhost and the IP address must be 127.0.0.1 (loopback IP). The next line should contain the actual IP of the machine. In this example, I used 192.168.0.1 which is the IP for host called mainserver attached to domain domain_name.com. The should be the IP address, the full host name with the domain and optionally, an alias for the host. You may have several other entries. Good luck.
          Regards,
          Jude Onuh
          • 2. Re: Failed to get IP for localhost
            448412
            Hi, I had the same problem while starting opmnctl start. error message is as follows.

            Failed to get IP address for local host(2).....
            Failed to get IP address for local host(2).....
            Failed to get IP address for local host(2).....


            I have added the IP address in the /etc/hosts but still I am getting the same error.

            my hosts file is as follows.
            -------------------------------------------------------------
            127.0.0.1 localhost.localdomain servername
            10.21.253.102 localhost.localdomain servername

            -------------------------------------------------------------------------------

            I don't why it is looking for localhost (2).

            could you please help me in this issue? I appreciate your help in this regard.

            Thanks
            venkat
            • 3. Re: Failed to get IP for localhost
              436088
              Just had the same problem. Look at your /etc/hosts file.There must be localhost instead of servername in loopback definition.

              It should be
              -------------------------------------------------------------
              127.0.0.1 localhost.localdomain servername
              10.21.253.102 localhost.localdomain localhost
              ---------------------------------------------------------------

              instead of

              -------------------------------------------------------------
              127.0.0.1 localhost.localdomain servername
              10.21.253.102 localhost.localdomain servername
              --------------------------------------------------------------------
              • 4. Re: Failed to get IP for localhost
                315025
                Your /etc/hosts file should have entry like :

                127.0.0.1     localhost.localdomain     localhost
                192.168.0.1 my-test.home.com      home-test

                check it once again ..
                • 5. Re: Failed to get IP for localhost
                  431164
                  Thanks
                  i got sameproblem and was rectified with help u provided.
                  thanks