Operating System - HP-UX
1824170 Members
2595 Online
109669 Solutions
New Discussion юеВ

/etc/hosts error for oracle installation and exceed.

 
RAC_1
Honored Contributor

/etc/hosts error for oracle installation and exceed.


I am trying to install oracle 8.1.7 on HP-UX 11.11 on
L class.

Oracle runinstaller gives error as follows.

"Your local host name database file (typically
/etc/hosts) is not configured properly. This file
should have entry of the form
"

My nslookup (forward and backward is OK.)

It is as follows.
nslookup bkpsvr(name of the server)
returns 172.17.13.196 and nslookup 172.17.13.196
returns bkpsvr.

I am not using /etc/resolv.conf. My nsswitch.conf is
as follows.

#
# /etc/nsswitch.files:
#
# @(#)B.11.11_LR
#
# An example file that could be copied over to
/etc/nsswitch.conf; it
# does not use any name services.
#
passwd: files
group: files
hosts: files
services: files
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files

uname -a returns bkpsvr, hostname also returns bkpsvr.
HOSTNAME in /etc/rc.config.d/netconf has entry as
follows
HOSTNAME="bkpsvr" And I have also done /etc/set_params
hostname, it also returns bkpsvr.

Exceed also gives /etc/hosts error while connecting
and hangs after logging in.

Permissions on file /etc/hosts are bin:bin with read
permission for everyone.

Thanks in advance.


There is no substitute to HARDWORK
9 REPLIES 9
Ross Zubritski
Trusted Contributor

Re: /etc/hosts error for oracle installation and exceed.

Have you tried to put bksrv.yourdomain.com bksrv in your hosts file?

Regards,

RZ
Rita C Workman
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

My /etc/hosts is:

664 root:sys /etc/hosts

Another thing is double check your hostfile. There may be some bogus character in there, or a duplicate reference (ip or hostname or alias).

Just a thought,
Rita
RAC_1
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

pushing to top to get more replies.
There is no substitute to HARDWORK
Steven E. Protter
Exalted Contributor

Re: /etc/hosts error for oracle installation and exceed.

more replies becuase it was pushed to the top.

Here is an example of a valid /etc/hosts file

10.1.11.50 hebron.juf.net hebron
192.168.0.4 tzfat-boot
192.168.0.10 hebron-boot
10.1.11.40 moriah.juf.net moriah
10.1.10.50 tahoma.juf.net tahoma
127.0.0.1 localhost loopback

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
RAC_1
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

Funny thnig is that we had done oracle installations when hostname was just bkpsvr and not bkpsvr.xxx.xxx.

This was working fine. But now all of a sudden it has started giving problem. Changing the hostname to FQDN will be a problem for me as this server is the omniback cell server.

Really caught up in this.
There is no substitute to HARDWORK
T G Manikandan
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.


xx.xx.xx.xx ANIL ANIL.hp.com
or
xx.xx.xx.xx ANIL.hp.com ANIL

which ever way your backup server and Oracle accept.


Thanks
Sunil Sharma_1
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

Hi Anil,

You sad it's giving problem in Oracle Installation and some place you mention you already installed oracle.

If you are installing oracle first time on this server then just do one thing mv your hosts file to some other name and create a host file manually without doing cut n paste some time soem control character gives problem like this.

second case if you are tring to re installing oracle then where you are installing oracle on same oracle home or different and who is the owner of oracle etc etc.

if you are installing with differet oracle owner you may have to change permission of some other files exact location i don't remember now it may be in /var/opt/oracle
just change the permission to 777 for all files and try to reinstall.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Ravi_8
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

Hi,

I had faced this problem while installing oracle on Solaris.
I continued with the error. It got installed and working well
never give up
Rita C Workman
Honored Contributor

Re: /etc/hosts error for oracle installation and exceed.

Anil,

Did you get this resolved yet?

/Rita