I'm currently installing RAC using Oracle 11g Release 2 but unfortunately while installing the Grid Infrustructure, it failed to continue because of the error "INS-40904 ORACLE_HOSTNAME does not resolve to a valid host name", I have configured the public hostnames including vip and scan in DNS Server. I am able to nslookup all the configured hostnames.
Any help or ideas will be appreciated.
ORACLE_HOSTNAME is an environment variable. Check your .profile (.bash_profile etc) and see if its being set there. echo $ORACLE_HOSTNAME to se what its set to currently. My bet is that $ORACLE_HOSTNAME is being set somewhere in your environment and simply needs changing to be correct;
I know this as when I was following the www.ORACLE-BASE.com 11g RAC install I used their profile and missed the fact that it was setting ORACLE_HOSTNAME to RAC1!!!!
Let me know how you get on!
Thanks for your reply. I appreciate it.
So far no entries for ORACLE_HOSTNAME in my .bash_profile. No ORACLE_HOST_NAME variable set.
I'm using oracle Enterprise Linux 5.5.
Any other clue?
...Ok - so its not set; then set the environment variable to be your servername before installing; and set it in the .bash_profile on each node;
For example, check out http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVMwareServer2.php#install_grid_infrastructure
"Login as the oracle user and add the following lines at the end of the .bash_profile file.
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
*ORACLE_HOSTNAME=rac1.localdomain; export ORACLE_HOSTNAME*
ORACLE_UNQNAME=RAC; export ORACLE_UNQNAME