Oracle EM 启动出错(一)

2014-11-24 18:03:11 · 作者: · 浏览: 0

错误信息:


TZ set to PRC


OC4J Configuration issue. /u01/app/oracle/product/10.2/db_1/oc4j/j2ee/OC4J_DBConsole_localhost.localdomain_orcl not found.


解决办法:


方法一(推荐): 使用dbca对数据库重新配置下即可


方法二:手动配置


参考:


This is due to a misconfiguration of dbconsole during database setup. The fastest solution is usually to recreate repository and configuration.


First, deconfigure dbconsole:


======================================================================================


[oracle@oratest03 bin]$ ./emca -deconfig dbcontrol db -repos drop


STARTED EMCA at Dec 28, 2009 12:15:33 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: T11R2


Listener port number: 1521


Password for SYS user:


Password for SYSMAN user:


Do you wish to continue [yes(Y)/no(N)]: Y


Dec 28, 2009 12:15:44 PM oracle.sysman.emcp.EMConfig perform


INFO: This operation is being logged at /app/oracle/cfgtoollogs/emca/T11R2/emca_2009_12_28_12_15_32.log.


Dec 28, 2009 12:15:44 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration


WARNING: EM is not configured for this database. No EM-specific actions can be performed.


Dec 28, 2009 12:15:45 PM oracle.sysman.emcp.EMReposConfig invoke


INFO: Dropping the EM repository (this may take a while) ...


Dec 28, 2009 12:17:33 PM oracle.sysman.emcp.EMReposConfig invoke


INFO: Repository successfully dropped


Enterprise Manager configuration completed successfully


FINISHED EMCA at Dec 28, 2009 12:17:33 PM


========================================================================================


Now, let’s configure it again


========================================================================================


[oracle@oratest03 bin]$ ./emca -config dbcontrol db -repos create


STARTED EMCA at Dec 28, 2009 12:17:43 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: T11R2


Listener port number: 1521


Listener ORACLE_HOME [ /app/oracle/product/11.2.0.1 ]:


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 ................ /app/oracle/product/11.2.0.1


Local hostname ................ oratest03


Listener ORACLE_HOME ................ /app/oracle/product/11.2.0.1


Listener port number ................ 1521


Database SID ................ T11R2


Email address for notifications ...............


Outgoing Mail (SMTP) server for notifications ...............


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


Do you wish to continue [yes(Y)/no(N)]: Y


Dec 28, 2009 12:17:58 PM oracle.sysman.emcp.EMConfig perform


INFO: This operation is being logged at /app/oracle/cfgtoollogs/emca/T11R2/emca_2009_12_28_12_17_43.log.


Dec 28, 2009 12:17:59 PM oracle.sysman.emcp.EMReposConfig createRepository


INFO: Creating the EM repository (this may take a while) ...


Dec 28, 2009 12:23:44 PM oracle.sysman.emcp.EMReposConfig invoke


INFO: Repository successfully created


Dec 28, 2009 12:23:47 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository


INFO: Uploading configuration data