How can I install OEM when full hostname 32 characters

At the end of my DB creation with DBCA, it fails on Oracle Enterprise Manager (OEM) installation. Installing 10gr2 DB in an 11g2 cluster.
Running the emca command in isolation I get:
STARTED EMCA at Nov 23, 2010 1:36:51 PM
EM Configuration Assistant, Version 10.2.0.5.0 Production
Copyright (c) 2003, 2009, Oracle. All rights reserved.
Nov 23, 2010 1:36:51 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/admin/test02/scripts/emConfig.log.
Nov 23, 2010 1:36:52 PM oracle.sysman.emcp.EMConfig perform
SEVERE:  Invalid Hostname hosthostdb01.abcdefgcentre.net.au. Hostname should not contain underscore _ in it and it should not be longer than 32 characters.
Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/admin/test02/scripts/emConfig.log for more details.
Could not complete the configuration. Refer to the log file at /u01/app/oracle/product/10.2.0/db_1/admin/test02/scripts/emConfig.log for more details.
The command is:
/u01/app/oracle/product/10.2.0/db_1/bin/emca -config dbcontrol db -silent -cluster -ASM_USER_ROLE SYSDBA -ASM_USER_NAME SYS -NODE_LIST hosthostdb01,hosthostdb02 -CLUSTER_NAME RMT-cluster -LOG_FILE /u01/app/oracle/product/10.2.0/db_1/admin/test02/scripts/emConfig.log -DBSNMP_PWD my**** -SYS_PWD my**** -ASM_USER_PWD my**** -SID test02 -ASM_SID +ASM1 -DB_UNIQUE_NAME test02 -EM_HOME /u01/app/oracle/product/10.2.0/db_1 -SID_LIST test021,test022 -SYSMAN_PWD my**** -SERVICE_NAME test02 -ASM_PORT 1521 -PORT 1521 -LISTENER_OH /u01/app/11.2.0/grid -LISTENER LISTENER -ORACLE_HOME /u01/app/oracle/product/10.2.0/db_1 -HOST hosthostdb01 -ASM_OH /u01/app/11.2.0/grid;
The hostname itself (hosthostdb01) isn't longer than 32 characters, only when it is fully qualified as hosthostdb01.abcdefgcentre.net.au. I don't have control over that when I run emca, I'm only specifying the hostname. I don't want to change the hostname and have to reinstall everything from scratch.
How can I get emca to work? Can I just change my /etc/hosts and remove the domain - perhaps just temporarily until emca installs ?

Doh! Just reverse the hosthame and qualified hostname in /etc/hosts, at least temporarily

Similar Messages

Maybe you are looking for