啟動em時報錯:OC4J Configuration issue解決辦法

gholay發表於2013-12-28
啟動em時報錯:
[oracle@gl ~]$ emctl start dbconsole
OC4J Configuration issue. /data/oracle/oc4j/j2ee/OC4J_DBConsole_gl.localdomain_DB11G not found.

發生此問題的原因:因為oracle所在資料庫的ip地址發生變化引起em啟動的時候報OC4J Configuration issue錯誤。
解決辦法:重新配置dbcontrol
[oracle@gl config]$ emca -config dbcontrol db


STARTED EMCA at Dec 28, 2013 2:29:59 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle.  All rights reserved.


Enter the following information:
Database SID: DB11G
Listener port number: 1521   
Listener ORACLE_HOME [ /data/oracle ]: 
Password for SYS user:  
Password for DBSNMP user:  
Password for SYSMAN user:  
Email address for notifications (optional): 
Outgoing Mail (SMTP) server for notifications (optional): 
-----------------------------------------------------------------


You have specified the following settings


Database ORACLE_HOME ................ /data/oracle


Local hostname ................ gl.localdomain
Listener ORACLE_HOME ................ /data/oracle
Listener port number ................ 1521
Database SID ................ DB11G
Email address for notifications ............... 
Outgoing Mail (SMTP) server for notifications ............... 


-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Dec 28, 2013 2:31:05 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /data/cfgtoollogs/emca/DB11G/emca_2013_12_28_14_29_58.log.
Dec 28, 2013 2:31:39 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Dec 28, 2013 2:33:47 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Dec 28, 2013 2:33:54 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Dec 28, 2013 2:33:54 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Dec 28, 2013 2:35:26 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Dec 28, 2013 2:35:26 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Dec 28, 2013 2:36:19 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Dec 28, 2013 2:36:19 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Dec 28, 2013 2:38:58 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Dec 28, 2013 2:38:59 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://gl.localdomain:1158/em <<<<<<<<<<<
Dec 28, 2013 2:39:26 PM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING: 
************************  WARNING  ************************


Management Repository has been placed in secure mode wherein Enterprise Manager data will be encrypted.  The encryption key has been placed in the file: /data/oracle/gl.localdomain_DB11G/sysman/config/emkey.ora.   Please ensure this file is backed up as the encrypted data will become unusable if this file is lost. 


***********************************************************
Enterprise Manager configuration completed successfully
FINISHED EMCA at Dec 28, 2013 2:39:26 PM
[oracle@gl config]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://gl.localdomain:1158/em/console/aboutApplication
 - An instance of Oracle Enterprise Manager 11g Database Control is already running. 
[oracle@gl config]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://gl.localdomain:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ... 
 ...  Stopped. 
[oracle@gl config]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://gl.localdomain:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ......... started. 
------------------------------------------------------------------
Logs are generated in directory /data/oracle/gl.localdomain_DB11G/sysman/log 


重新訪問em,成功。





來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29196873/viewspace-1065225/,如需轉載,請註明出處,否則將追究法律責任。

相關文章