Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OUI EM Configuration using localhost instead of hostname in OEL 5.5

Dude!Aug 21 2010 — edited Oct 6 2010
This is a follow-up of my previous post at:
1119475
But since the scope of the problem seems to have changed, I'm starting a new one.

I installed Oracle Enterprise Linux 5.5, using a static IP address of 10.0.0.151 and used 'system-config-network' to set the hostname of the system to "oel.example.com". Then I installed Oracle 11gR2 11.2.0.1.0 (desktop class), using the global database name printed: orcl.example.com

The installation goes fine. However, when I type the following right after the installation:
$ emctl status dbconsole
OC4J Configuration issue. /u01/app/oracle/product/112/db/oc4j/j2ee/OC4J_DBConsole_oel.example.com_orcl not found. 
$ emctl
EM Configuration issue. /u01/app/oracle/product/112/db/oel.example.com_orcl not found. 
I have done various installation tests using different hostnames, domainnames, etc., removing all Oracle files and installing from scratch, but it continues to create the EM configuration using localhost.

/u01/app/oracle/product/112/db/ localhost_orcl
/u01/app/oracle/product/112/db/oc4j/j2ee/ OC4J_DBConsole_localhost_orcl

I can work around the problem by defining symbolic links after the Oracle installation:
ln -s localhost_orcl oel.example.com_orcl
ln -s OC4J_DBConsole_localhost_orcl OC4J_DBConsole_oel.example.com_orcl
But this was not necessary before, when I installed Oracle under OEL 5.4.

What could be the problem?

Below is some more configuration info:

$ hostname
oel.example.com
$ hostname -f
oel.example.com
$ hostname -s
oel
$ /mnt/runInstaller

(Global database name printed: orcl.example.com)

_/etc/hosts:_
127.0.0.1 localhost localhost.localdomain
::1 localhost6.localdomain6 localhost6
10.0.0.151 oel.example.com oel

Btw, I also changed the first line to 127.0.0.1 localhost.localdomain localhost, without affect.

_/etc/resolv.conf:_
search example.com
nameserver 10.0.0.138

_/etc/sysconfig/network:_
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oel.example.com

Environment variables of Oracle account:
ORACLE_SID=orcl
ORACLE_HOME=/u01/app/oracle/product/112/db
ORACLE_BASE=/u01/app/oracle
PATH=/u01/app/oracle/product/112/db/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/bin
LD_LIBRARY_PATH=/u01/app/oracle/product/112/db/lib

Edited by: Markus Waldorf on Aug 21, 2010 7:07 AM

Edited by: Markus Waldorf on Aug 22, 2010 5:18 AM

Edited by: Markus Waldorf on Aug 22, 2010 5:19 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2010
Added on Aug 21 2010
7 comments
2,848 views