修改sysman和dbsnmp密碼後,EM無法啓動

昨天登陸EM後提示sysman與dbsnmp用戶密碼過期,在該界面修改密碼後,em再也進不去。
emctl status dbconsole 已關閉
emctl start dbconsole 失敗
vi $ORACLE_HOME/host_sid/sysman/log/emdb.nohup

----- Tue Apr 9 16:09:16 2013::omsRecvDir is set? = 1 -----
----- Tue Apr 9 16:09:16 2013::Console Launched with PID 26043 at time Tue Apr 9 16:09:16 2013 -----
----- Tue Apr 9 16:09:16 2013::osname is linux -----
----- Tue Apr 9 16:09:16 2013::heap size used is 384M -----
----- Tue Apr 9 16:09:16 2013::perm size used is 400M -----
----- Tue Apr 9 16:09:16 2013::joptions used are -server -Xmx384M -XX:MaxPermSize=400M -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -----
----- Tue Apr 9 16:09:16 2013::Agent Launched with PID 26065 at time Tue Apr 9 16:09:16 2013 -----
(pid=26065): starting emagent version 10.2.0.4.2
(pid=26065): emagent now exiting abnormally - initialization failure. Consult '.trc' and '.log' files.
----- Tue Apr 9 16:09:20 2013::Checking status of EMAgent : 26065 -----
----- Tue Apr 9 16:09:20 2013::EMAgent exited at Tue Apr 9 16:09:20 2013 with return value 55. -----
----- Tue Apr 9 16:09:20 2013::EMAgent has exited due to initialization failure. -----
----- Tue Apr 9 16:09:20 2013::Stopping other components. -----
----- Tue Apr 9 16:09:20 2013::EMWD Stopping DBConsole. -----
--- [color=orange]DBConsole internal stop. No OC4J admin passwd hence hard stop.[/color] ---
----- Tue Apr 9 16:09:25 2013::Commiting Process death. -----
----- Tue Apr 9 16:09:25 2013::Exiting watchdog loop


解決步驟:
百度谷歌搜了很久,方法大多爲修改$ORACLE_HOME/host_sid/sysman/emd/targets.xml或$ORACLE_HOME/host_sid/sysman/config/emoms.properties文件中的加密方式爲FALSE並用明文密碼替換原來的密文,均無效。差點就要重建em了。。。。。這時,點到一個博客地址:[url]http://orapath.blogspot.ca/2012/04/normal-0-false-false-false-en-us-zh-cn_19.html[/url] 依着步驟死馬當活馬醫,然後就可以啓動em了。
博文如下:
Thursday, April 19, 2012

Windows DBConsole internal stop. No OC4J admin passwd hence hard stop


Enterprise manager cannot be started. The status shows dbconsole is already started:
C:\>emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://JDEORA01:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory C:\APP\ORACLE\product\11.2.0\se1/jdeora01_e1prod/sysman/log


And it cannot be stopped:
C:\ >emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://JDEORA01:5500/em/console/aboutApplication
The OracleDBConsoleE1PROD service is not started.

More help is available by typing NET HELPMSG 3521.

Log in Emdb.nohup shows:
12/04/19 15:34:11 Error starting ORMI server JDEORA01 port 5,521: Unrecognized Windows Sockets error: 0: JVM_Bind
12/04/19 15:34:11 Shutting down OC4J...
--- DBConsole internal stop. No OC4J admin passwd hence hard stop. ---
----- Thu Apr 19 15:34:15 2012::Commiting Process death. -----
----- Thu Apr 19 15:34:15 2012::Exiting watchdog loop

Find the process id and kill the tree in task manager:
C:\ >emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 10.2.0.4.2
OMS Version : 10.2.0.4.2
Protocol Version : 10.2.0.4.2
Agent Home : C:\APP\ORACLE\product\11.2.0\se1\jdeora01_E1PROD
Agent binaries : C:\APP\ORACLE\product\11.2.0\se1
Agent Process ID : [color=red]1732[/color]
Agent URL : https://JDEORA01:1830/emd/main
Repository URL : https://JDEORA01:5500/em/upload/
Started at : 2012-04-16 15:37:38
Started by user : SYSTEM
Last Reload : 2012-04-16 15:55:52
Last successful upload : 2012-04-19 15:49:04
Total Megabytes of XML files uploaded so far : 32.59
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 18.32%
Data channel upload directory : C:/APP/ORACLE/product/11.2.0/se1/jdeora01_E1PROD/sysman/recv
Last successful heartbeat to OMS : 2012-04-19 15:48:47
---------------------------------------------------------------
Agent is Running and Ready

[color=orange]Kill process 1732 and dbconsole can be started[/color] now:
C >emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
https://JDEORA01:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory C:\APP\ORACLE\product\11.2.0\se1/jdeora01_e1prod/sysman/log

注:我用的是Ubuntu 11.10加Oracle 11.2.0.1.0 64位,也同樣有效。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章