Operating System - HP-UX
1833747 Members
2295 Online
110063 Solutions
New Discussion

Re: My uname value is wrong. Oracle won't start.

 
SOLVED
Go to solution
Stuart Abramson_2
Honored Contributor

My uname value is wrong. Oracle won't start.

The "uname" command is returning an improper value on acshps05:

# uname -a
-t acshps05 B.11.00 A 9000/800 632309333 two-user license

It should be:

# uname -a
HP-UX acshps03 B.11.00 A 9000/800 662309313 two-user license

This is causing all kinds of stuff to fail. Oracle keys off this field

The problem is that someone changed (by mistake):

/etc/rc.config.d/netconf

OPERATING_SYSTEM=-t

It should say:

OPERATING_SYSTEM=HP-UX

How do I change this without rebooting? I tried:

/sbin/init.d/net start

and that didn't do it.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: My uname value is wrong. Oracle won't start.

You need to stop the network first.

/sbin/init.d/net stop
/sbin/init.d/net start

Running the start won't do anything because the script checks if the network is already up.

You are much better off however restarting the box.

Do not leave backup copy of netconf in /etc/rc.config.d/ Your machine will try and read them both.

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
Pete Randall
Outstanding Contributor

Re: My uname value is wrong. Oracle won't start.

Stuart,

/etc/rc.config.d/netconf is also referenced by /sbin/init.d/rarpd, /sbin/init.d/rdpd, and the nfs services, if you're using them. To be safe, I would go through /etc/rc.log to see which order these were started, then reverse that order to stop them, then restart them in the correct, /etc/rc.log order.

But I think you'd be better off to just reboot!


Pete

Pete
Jean-Louis Phelix
Honored Contributor
Solution

Re: My uname value is wrong. Oracle won't start.

Hi,

/sbin/init.d/hostname start should do it. You can find how a variable is used simply by grep'ing it in /sbin/init.d/*. But I agree that a reboot would be safer ...

In fact you can even find in the script that the only command using $OPERATING_SYSTEM is :

setuname -s $OPERATING_SYSTEM -t

See man 1m setuname.

Regards.
It works for me (© Bill McNAMARA ...)
Stuart Abramson_2
Honored Contributor

Re: My uname value is wrong. Oracle won't start.

I fixed the "netconf" file, and did:

setuname -s HP-UX

and that fixed it. No reboot.

We will schedule a reboot for tonite or this weekend.
Joe Colucci_1
Frequent Advisor

Re: My uname value is wrong. Oracle won't start.

Stuart,

One of the quircks about HP-UX is that the hostname is stored in a couple of different places.

Then next time you have to set the hostname for any reason, I suggest using:

set_parms hostname


That utility will set the hostname in all the right places. It will require a reboot, however,

Regards,
Joe