Dbconsole Fails To Start With Nzos_handshake Failed,Ret=29024


一、现象
2010-04-23 23:38:46 Thread-46 ERROR ssl: nzos_Handshake failed, ret=29024
2010-04-23 23:38:46 Thread-46 ERROR http: 12: Unable to initialize ssl connection with server, aborting connection attempt
2010-04-23 23:38:46 Thread-46 ERROR pingManager: nmepm_pingReposURL: Cannot connect to
https://LEIZ:1158/em/upload/: retStatus=-1
2010-04-23 23:39:46 Thread-49 ERROR upload: Error in uploadXMLFiles.  Trying again in 300.00 seconds.

二、原因
The Dbconsole certificate life time has expired.

三、解决方法

1. check dbconsole status
$ emctl status dbconsole
oracle@LEIZ:/oracle/product/10.2/db/dbs$ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://LEIZ:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running.
------------------------------------------------------------------
Logs are generated in directory /oracle/product/10.2/db/LEIZ_hisdb/sysman/log
oracle@LEIZ:/oracle/product/10.2/db/dbs$ ps -ef|grep java
  oracle  8148  8143  0 23:28:10 pts/1     0:32 /oracle/product/10.2/db/jdk/bin/IA64N/java -server -Xmx256M -XX:MaxPermSize=96m -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40
  oracle 19806  2899  0 01:00:37 pts/1     0:00 grep java
oracle@LEIZ:/oracle/product/10.2/db/dbs$ kill -9 8148
oracle@LEIZ:/oracle/product/10.2/db/dbs$ ps -ef|grep java
  oracle 19869  2899  1 01:01:12 pts/1     0:00 grep java

2. $ emctl unsecure dbconsole
oracle@LEIZ:/oracle/product/10.2/db/dbs$ emctl unsecure dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://LEIZ:1158/em/console/aboutApplication
Configuring DBConsole for HTTP...   Done.
DBCONSOLE already stopped...   Done.
Agent is already stopped...   Done.
Unsecuring dbconsole...   Started.
DBConsole is now unsecured...  Done.
Unsecuring dbconsole...  Sucessful.

3. $ emctl upload
oracle@LEIZ:/oracle/product/10.2/db/dbs$ emctl upload
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
Agent is Not Running

4. $ emctl secure dbconsole
oracle@LEIZ:/oracle/product/10.2/db/dbs$ emctl secure dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
http://LEIZ:1158/em/console/aboutApplication
Enter Enterprise Manager Root password :
Enter a Hostname for this OMS : LEIZ
DBCONSOLE already stopped...   Done.
Agent is already stopped...   Done.
Securing dbconsole...   Started.
Checking Repository...   Done.
Checking Em Key...   Done.
Checking Repository for an existing Enterprise Manager Root Key...   Done.
Fetching Root Certificate from the Repository...   Done.
Updating HTTPS port in emoms.properties file...   Done.
Generating Java Keystore...   Done.
Securing OMS ...   Done.
Generating Oracle Wallet Password for Agent....   Done.
Generating wallet for Agent ...    Done.
Copying the wallet for agent use...    Done.
Storing agent key in repository...   Done.
Storing agent key for agent ...   Done.
Configuring Agent...
Configuring Agent for HTTPS in DBCONSOLE mode...   Done.
EMD_URL set in /oracle/product/10.2/db/LEIZ_hisdb/sysman/config/emd.properties Done.
Configuring Key store..   Done.
Securing dbconsole...   Sucessful.

5. $ emctl start dbconsole
oracle@LEIZ:/oracle/product/10.2/db/dbs$ emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0 
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://LEIZ:1158/em/console/aboutApplication
ps: cmd is not a valid field name
Starting Oracle Enterprise Manager 10g Database Control ................... started.
------------------------------------------------------------------
Logs are generated in directory /oracle/product/10.2/db/LEIZ_hisdb/sysman/log

参考文献:Dbconsole Fails To Start With Nzos_handshake Failed,Ret=29024 [ID 749243.1]

请使用浏览器的分享功能分享到微信等