安装Grid Control 10.2.0.3在做OMS配置的时候遇到OUI-25031解决办法

刚刚在Centos 4.8上安装了10.2.0.3的Grid Control,最后做OMS配置的时候,遇到了OUI-25031的问题,查询metalink,最终解决了,做个记录.问题出错如下图所示:

此时根据安装提示,我们去查看OMS下面的日志,会看到以下信息.

Tail-200f  /oracle/app/oracle/product/10.2.0/oms10g/cfgtoollogs/cfgfw/oracle.sysman.top.oms_2012-02-27_09-04-29-PM.log
Error
--> Process (pid=5159)
failed to start a managed process after the maximum retry limit
Log:
/oracle/app/oracle/product/10.2.0/oms10g/opmn/logs/HTTP_Server~1

根据这个日志信息,我们可以查看HTTP_Server~1信息,可以看到下列错误.

12/02/27 13:27:50 Start process
--------
/oracle/app/oracle/product/10.2.0/oms10g/Apache/Apache/bin/apachectl startssl: execing httpd
--------
12/02/27 13:27:56 Start process
--------
/oracle/app/oracle/product/10.2.0/oms10g/Apache/Apache/bin/apachectl startssl: execing httpd

这里我们可以看到是apache启动的SSL的时候出现了问题,接着我们去查看apache的日志,得到下列信息

Tail -200f /oracle/app/oracle/product/10.2.0/oms10g/Apache/Apache/logs/error_log
[Mon Feb 27 22:42:43 2012] [error] mod_ossl: Init: Server gridcontrol.localdomain:1159:
SSL setup failed: call to nzos_OpenWallet returned error 28750
[Mon Feb 27 22:42:43 2012] [error] mod_ossl: Unknown error
[Mon Feb 27 22:42:45 2012] [error] mod_ossl: Init: Server gridcontrol.localdomain:1159:
SSL setup failed: call to nzos_OpenWallet returned error 28750
[Mon Feb 27 22:42:45 2012] [error] mod_ossl: Unknown error

根据这个错误,我查询了metalink,找到了这个问题的原因.参考文章How to Recover From Enterprise Manager Grid Control 10g Base Releases (10.2.0.x.0) Installation Errors after 31-Dec-2010 [ID 1228103.1].因为Grid Control使用了SSL证书在客户端浏览器和WEB服务器来建立一个SSL安全通道.而这个SSL证书在2010年12月31号就会过期.证书过期就导致出现了这个错误.怎么处理这个错误呢?

1.安装PATH:8430622.

gridcontrol.localdomain> /oracle/app/oracle/product/10.2.0/db10g/OPatch/opatch  aapply
Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0
Copyright (c) 2005, Oracle Corporation.  All rights reserved..

Oracle Home       : /oracle/app/oracle/product/10.2.0/db10g
Central Inventory : /oracle/app/oracle/oraInventory
from           : /etc/oraInst.loc
OPatch version    : 10.2.0.3.0
OUI version       : 10.2.0.3.0
OUI location      : /oracle/app/oracle/product/10.2.0/db10g/oui
Log file location : /oracle/app/oracle/product/10.2.0/db10g/cfgtoollogs/opatch/opatch2012-02-27_22-31-15PM.log

ApplySession applying interim patch '8430622' to OH '/oracle/app/oracle/product/10.2.0/db10g'
ApplySession failed: ApplySession failed to prepare the system. ApplySession: Required component(s) [ oracle.sysman.top.oms, 10.2.0.3.0 ]  not present in the Oracle Home or a higher version found.
System intact, OPatch will not attempt to restore the system

OPatch failed with error code 73

在安装Patch的过程中出错了,因为是OMS的配置出现了问题,这个补丁是针对OMS的,而我这个时候的ORACLE_HOME的环境变量是有问题的, 我的环境变量指向了DB.所以在打补丁的时候出错,重新Export Oracle Home环境变量之后,打补丁正常.

gridcontrol.localdomain> export ORACLE_HOME=/oracle/app/oracle/product/10.2.0/oms10g/

gridcontrol.localdomain> /oracle/app/oracle/product/10.2.0/oms10g/OPatch/opatch apply
Invoking OPatch 10.2.0.3.0

Oracle interim Patch Installer version 10.2.0.3.0
Copyright (c) 2005, Oracle Corporation.  All rights reserved..

Oracle Home       : /oracle/app/oracle/product/10.2.0/oms10g
Central Inventory : /oracle/app/oracle/oraInventory
from           : /etc/oraInst.loc
OPatch version    : 10.2.0.3.0
OUI version       : 10.2.0.3.0
OUI location      : /oracle/app/oracle/product/10.2.0/oms10g//oui
Log file location : /oracle/app/oracle/product/10.2.0/oms10g/cfgtoollogs/opatch/opatch2012-02-27_23-09-20PM.log

ApplySession applying interim patch '8430622' to OH '/oracle/app/oracle/product/10.2.0/oms10g'

OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.

Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '8430622' for restore. This might take a while...
Backing up files affected by the patch '8430622' for rollback. This might take a while...

Patching component oracle.sysman.top.oms, 10.2.0.3.0...
Updating jar file "/oracle/app/oracle/product/10.2.0/oms10g/sysman/jlib/emagentSDK.jar" with "/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/sec/util/RootCert.class"
ApplySession adding interim patch '8430622' to inventory

Verifying the update...
Inventory check OK: Patch ID 8430622 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 8430622 are present in Oracle Home.

OPatch succeeded.

2.打完补丁成功之后,停止OMS进程.

gridcontrol.localdomain>/opmn/bin/opmnctl stopall
opmnctl: stopping opmn and all managed processes...

3.重置OMS服务

gridcontrol.localdomain> emctl secure oms -reset
Oracle Enterprise Manager 10g Release 3 Grid Control
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
Enter Enterprise Manager Root Password :
Enter Agent Registration password :
OPMN processes already stopped...   Done.
Securing central oms...   Started.
Checking Repository...   Done.
Checking Em Key...   Done.
Checking Repository for an existing Enterprise Manager Root Key...
WARNING! An Enterprise Manager Root Key already exists in
the Repository. This operation will replace your Enterprise
Manager Root Key.
All existing Agents that use HTTPS will need to be
reconfigured if you proceed. Do you wish to continue and
overwrite your Root Key
(Y/N) ?
Y
Are you sure ? Reset of the Enterprise Manager Root Key
will mean that you will need to reconfigure each Agent
that is associated with this OMS before they will be
able to upload any data to it. Monitoring of Targets
associated with these Agents will be unavailable until
after they are reconfigured.
(Y/N) ?
Y
Generating Enterprise Manager Root Key (this takes a minute)...   Done.
Fetching Root Certificate from the Repository...   Done.
Generating Registration Password Verifier in the Repository...   Done.
Generating Oracle Wallet Password for Enterprise Manager OMS...   Done.
Generating Oracle Wallet for Enterprise Manager OMS...   Done.
Generating Oracle Wallet for iAS HTTP Server...   Done.
Updating HTTPS port in emoms.properties file...   Done.
Generating HTTPS Virtual Host for Enterprise Manager OMS...   Done.
Securing central oms...   Ended.

4.重启OMS服务

gridcontrol.localdomain> emctl start oms
Oracle Enterprise Manager 10g Release 3 Grid Control
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
opmnctl: opmn is already running
Starting HTTP Server ...
Starting Oracle Management Server ...
Checking Oracle Management Server Status ...
Oracle Management Server is Up.

5.重启完服务之后,在图形界面retry,成功.

参考文档:How to Recover From Enterprise Manager Grid Control 10g Base Releases (10.2.0.x.0) Installation Errors after 31-Dec-2010 [ID 1228103.1]

分享到: 更多

Post a Comment

Your email is never published nor shared. Required fields are marked *