Troubleshooting DbConsole Error - OC4J Configuration issue

In this Document
Purpose
Last Review Date
Instructions for the Reader
Troubleshooting Details
References



--------------------------------------------------------------------------------



Applies to:
Enterprise Manager for RDBMS - Version: 10.1.0.0 to 10.2.0.0
Enterprise Manager Grid Control - Version: 10.1.0.0 to 10.2.0.0
Information in this document applies to any platform.

Purpose
The purpose of this document is to provide the steps needed to troubleshoot database control startup issues due to the below errors:

1. OC4J Configuration issue.
D:/oracle/10gdb/oc4j/j2ee/OC4J_DBConsole_x.x.x.x_ORCL10G not found.

2. OC4J Configuration issue.
/u01/app/oracle/product/10.1.0/db10g/oc4j/j2ee/OC4J_DBConsole_5
[main] WARN emSDK.config - Exception in getting local host java.net.UnknownHostException:
at java.net.InetAddress.getLocalHost(InetAddress.java:1199)
at oracle.sysman.emSDK.conf.TargetInstaller.getLocalHost(TargetInstaller.java:4790)
at oracle.sysman.emSDK.conf.TargetInstaller.main(TargetInstaller.java:3767) null_altpmp1 not found.

Last Review Date
August 27, 2007
Instructions for the Reader
A Troubleshooting Guide is provided to assist in debugging a specific issue. When possible, diagnostic tools are included in the document to assist in troubleshooting.
Troubleshooting Details
1. If the server is configured for DHCP

The issue is that on the DHCP server end, things can be configured to:

a. dynamically assign an IP address from a pool of IP’s
b. dynamically assign an IP address/hostname from a pool of IP’s and hostnames.

Most DHCP servers associate each IP address in the pool with a hostname in DNS. Thus, depending on how the hostname is retrieved, you may get the local Windows Machine Name (set by setting the machine name in the control panel) or you may get the DHCP assigned hostname (retrieved from DNS). What ends up happening is that you get a mixture of hostnames and IP addresses embedded in configuration files, and the DB control doesn’t start.

The same thing would happen if you were to do an off-network install. When you are off-network, you would get the local machine name returned whenever a query to get the hostname is done. If you were to connect this to the network after the fact, then the servers would not start because the runtime calls to get the hostname would not match the off-network config-time call for the hostname which was embedded in multiple configuration files and directory names.

The way to address all of these issues is to configure the "Loopback Adapter" for Windows. This is essentially a virtual network card that you can configure and assign a dummy static IP address. Then in the "hosts" file, you can add an entry associated with this dummy static IP address and map that to the machine name associated with the system through the system properties.

If this Loopback adapter is configured to be the primary network adapter on the system, then any call to get the IP address of the system will return the dummy static IP associated with the loopback adapter. In call to get the hostname associated with this dummy IP address will return the real machine name, since this was associated with the IP address in the hosts file.

In addition, any call to get the hostname will also return the machine name (instead of the long DHCP hostname as before), since the loopback adapter is the primary network adapter.

In Windows, Refer ‘2.4 Oracle Database Network Topics’ to install a loopback adapter

Oracle® Database Installation Guide
10g Release 2 (10.2) for Microsoft Windows (32-Bit)
Part Number B14316-03

OR

Refer Note 274661.1 - Problem: Startup: Cannot Start DBCONSOLE on DHCP Machine after Reboot

2. If the server uses a static ip address

2a. Network Configuration:

The OM and agent components in dbcontrol uses full canonical name of a machine. This is done with a type of double-lookup/reverse-lookup to get the Fully Qualified Domain Name. Consult a Network Administrator for more details.

i) Check /etc/nsswitch.conf to see how lookups are to be performed by the Operating System

ii) All systems involving a HOSTS file must be setup like this:

NOTE: On Windows, the HOSTS file is under $WINDOWS/system32/drivers/etc

On Unix systems hosts file is under /etc

The file should have the IP address followed by the fully qualified hostname.domain name, and then a short hostname or alias.

For Example: hosts

10.10.10.10 hostname.domainname hostname

iii) To check:

> hostname
hostname.domainname

>ifconfig -a
10.10.10.10

On Windows,
ipconfig /all
10.10.10.10

>ping 10.10.10.10

>ping hostname.domainname
>ping hostname
>nslookup 10.10.10.10
>nslookup hostname.domainname
>nslookup hostname

The above commands should return the same output for hostname, hostname.domainname and ip_address.

Reference - Note 428665.1 - Installation Checklist for Testing Networking Configurations Prior to Installing EM Components

2b. Check if directories

/ _
/oc4j/j2ee/OC4J_DBConsole_

exist and have correct permissions for the same user who has installed the software.


Note:- If you have more than one database in the same ORACLE_HOME, database control has to be created for each SID. Thereby the directory names will be

/ _
/oc4j/j2ee/OC4J_DBConsole_

/ _
/oc4j/j2ee/OC4J_DBConsole_

If these directories don’t exist, then the dbcontrol has to be created using the steps in Note 278100.1 : How To Drop, Create And Recreate DB Control In A 10g Database

2c. Ensure environment variables are set before starting the database control

ORACLE_HOME
ORACLE_SID

2d. If the hostname was changed, please recreate dbconsole using Note 278100.1 : How To Drop, Create And Recreate DB Control In A 10g Database



References
Note 274661.1 - Problem: Startup: Cannot Start DBCONSOLE on DHCP Machine after Reboot
Note 278100.1 - How To Drop, Create And Recreate DB Control In A 10g Database
Note 428665.1 - Installation Checklist for Testing Networking Configurations Prior to Installing EM Components

Keywords
CONFIGURE~OC4J; DB~CONTROL; DATABASE~CONTROL; DBCONTROL; DBCONSOLE;

本文转自
http://www.itpub.net/thread-1048096-2-1.html
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值