Operating System - HP-UX
1832973 Members
2587 Online
110048 Solutions
New Discussion

Changed HOSTNAME from upper to lower case and SAM or X won't start now

 
SOLVED
Go to solution
Chris Elmore
Frequent Advisor

Changed HOSTNAME from upper to lower case and SAM or X won't start now

Aloha Good Folks,

I just changed the case of the hostname from upper to lower case and now I find that SAM won't start without asking me to change the HOSTNAME, and X seems to hang after the login and password prompt. There is also some kind of hang signal being generated to my telnet clients which requires and break signal to fix. I suspect there is a mismatch somewhere internally within my HP-UX that is still looking for the upper case hostname. When I change it back, everything works fine. Need the lower case though now for Oracle 10G to work properly. Any help is greatly appreciated and thanks in advance to all.

Very Respectfully,
Chris Elmore
"Life is love and love is life"
6 REPLIES 6
Hein van den Heuvel
Honored Contributor
Solution

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now

Chris,

How and where is the DISPLAY environment parameter defined.

# print $DISPLAY

It probably has the nodename in there, with the wrong case.
It possibly should be localhost:0.0

Bourne, Bash, or Korn shell:
$ DISPLAY=localhost:0.0 ; export DISPLAY
C shell:
$ setenv DISPLAY localhost:0.0

- Is the display local, or is this a desktop - server setup?

- You may want to review the (dns) name resolution lookup mechanisme for the box.
man resolv.conf.

I don't think Oracle cares for lower or upcase hostname, as long as something resolves it correctly. Maybe there is a surprise translation offered up in one case (sic) only.

Hope this helps
Hein.

Chris Elmore
Frequent Advisor

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now

Aloha Folks,

I should mention that my box is HP-UX 11.11 and I've already run the uname -a and hostname commands to set the name. I've even run the set_parms utility to make sure that everything looks in sync.

Very Respectfully,
Chris Elmore
"Life is love and love is life"
Hein van den Heuvel
Honored Contributor

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now


Actually, I just spotted one case with a restriction for Oracle (AS):

The database name portion of the global database name:
* can contain only alphanumeric characters
* must not be longer than eight characters
* must not contain the word "PORT" or "HOST" in uppercase characters. If you need to use these words, use lowercase characters.


http://download-east.oracle.com/docs/cd/B19306_01/install.102/b28043/emnet.htm

Does your hostname contain the word "host"?
Your hostname is not a cute "HOSTNAME" is it?
(If so, you are get what you deserve :-)

Also, be sure to #grep -i HOSTNAME /etc/hosts

btw... I also see a recommendation for numeric host name in listener.ora, for security reasons if the dns setup can be hacked??
http://download-east.oracle.com/docs/cd/B19306_01/em.102/b16231/listener.htm


Regards,
Hein van den Heuvel
HvdH Performance Consulting


DCE
Honored Contributor

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now



The system is very sensitve when it comes to changing the host name - how did you perform the change?

Ideally you should use the set_parms command, and then reboot the system.

Some application (i.e.SAM) use the hostmname obtained from the booot process........
Chris Elmore
Frequent Advisor

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now

Aloha Folks,

Sorry for this slow response, I've been fighting Oracle upgrade fires on my HP day in and day out.

I want to say thanks for your very helpful responses. I awarded you both 10 pts. each for each response posted. I found you both to be very helpful and I really do appreciate your assistance with this folks.

Believe it or not, I simply rebooted my L2000 and the problem resolved itself. Everything was properly re-homed to the new hostname in lower case. SAM worked fine, X worked fine. I'm guessing a hostname change must require the reboot for full effect.

Very Respectfully,
Chris Elmore
"Life is love and love is life"
Chris Elmore
Frequent Advisor

Re: Changed HOSTNAME from upper to lower case and SAM or X won't start now

Thanks again folks and please take care!
"Life is love and love is life"