oem 启动报错 OC4J Configuration issue. notfound
admin
2023-05-09 11:01:44
0

刚装好的oracle 11g rac启动失败,如下:

$ emctl start dbconsole

OC4J Configuration issue. /u01/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole_bjgedb02_bjgedb not found


系统HP-Unix 11i

oracle version 11.2.0


修复过程如下:

$ emca -config dbcontrol db


STARTED EMCA at Jun 10, 2015 4:04:47 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, 2011, Oracle.  All rights reserved.


Enter the following information:

Database SID: gedb

Jun 10, 2015 4:04:54 PM oracle.sysman.emcp.DatabaseChecks checkDbAvailabilityImpl

WARNING: ORA-01034: ORACLE not available


Jun 10, 2015 4:04:54 PM oracle.sysman.emcp.DatabaseChecks throwDBUnavailableException

SEVERE: 

Database instance is unavailable. Fix the ORA error thrown and run EM Configuration Assistant again.


Some of the possible reasons may be : 


1) Database may not be up. 

2) Database is started setting environment variable ORACLE_HOME with trailing '/'. Reset ORACLE_HOME and bounce the database. 


For eg. Database is started setting environment variable ORACLE_HOME=/scratch/db/ . Reset ORACLE_HOME=/scratch/db  and bounce the database.


$ emca -config dbcontrol db


STARTED EMCA at Jun 10, 2015 4:05:05 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, 2011, Oracle.  All rights reserved.


Enter the following information:

Database SID: gedb1

Database Control is already configured for the database gedb1

You have chosen to configure Database Control for managing the database gedb1

This will remove the existing configuration and the default settings and perform a fresh configuration

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

Listener ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_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): 

ASM ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_1 ]: $ echo $ORACLE_HOME

Invalid ORACLE_HOME.

ASM ORACLE_HOME [ /u01/app/oracle/product/11.2.0/db_1 ]: /u01/app/11.2.0/grid

ASM SID [ +ASM ]:     

ASM port [ 1521 ]: 

ASM username [ ASMSNMP ]: 

ASM user password:  

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


You have specified the following settings


Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1


Local hostname ................ bjgedb01

Listener ORACLE_HOME ................ /u01/app/oracle/product/11.2.0/db_1

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

Database SID ................ gedb1

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

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

ASM ORACLE_HOME ................ /u01/app/11.2.0/grid

ASM SID ................ +ASM

ASM port ................ 1521

ASM user role ................ SYSDBA

ASM username ................ ASMSNMP


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

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

Jun 10, 2015 4:06:35 PM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/gedb/emca_2015_06_10_16_05_04.log.

Jun 10, 2015 4:06:37 PM oracle.sysman.emcp.util.PortManager isPortInUse

WARNING: Specified port 5540 is already in use.

Jun 10, 2015 4:06:37 PM oracle.sysman.emcp.util.PortManager isPortInUse

WARNING: Specified port 5520 is already in use.

Jun 10, 2015 4:06:37 PM oracle.sysman.emcp.util.PortManager isPortInUse

WARNING: Specified port 1158 is already in use.

Jun 10, 2015 4:06:37 PM oracle.sysman.emcp.util.DBControlUtil stopOMS

INFO: Stopping Database Control (this may take a while) ...

Jun 10, 2015 4:06:55 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository

INFO: Uploading configuration data to EM repository (this may take a while) ...

Jun 10, 2015 4:09:30 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Uploaded configuration data successfully

Jun 10, 2015 4:09:31 PM oracle.sysman.emcp.ParamsManager getLocalListener

WARNING: Error retrieving listener for bjgedb01

Jun 10, 2015 4:09:45 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Securing Database Control (this may take a while) ...

Jun 10, 2015 4:09:56 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole

INFO: Database Control secured successfully.

Jun 10, 2015 4:09:56 PM oracle.sysman.emcp.util.DBControlUtil startOMS

INFO: Starting Database Control (this may take a while) ...

Jun 10, 2015 4:10:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: Database Control started successfully

Jun 10, 2015 4:10:34 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration

INFO: >>>>>>>>>>> The Database Control URL is https://bjgedb01:1158/em <<<<<<<<<<<

Jun 10, 2015 4:10:38 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: /u01/app/oracle/product/11.2.0/db_1/bjgedb01_gedb/sysman/config/emkey.ora. 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 Jun 10, 2015 4:10:38 PM

$ emctl start dbconsole

Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0 

Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.

https://bjgedb01:1158/em/console/aboutApplication

 - An instance of Oracle Enterprise Manager 11g Database Control is already running. 


相关内容

热门资讯

参加完中美会谈,马斯克、黄仁勋... 5月14日,在参加完中美元首会谈后,特斯拉首席执行官马斯克、苹果首席执行官库克、英伟达首席执行官黄仁...
河南防汛新观察 5月12日,抢险人员在白龟山水库大坝上巡堤查险。 王毛生 摄5月10日,2026年度防汛抢险联合演练...
胡锡进:武大做出了彻底开放的示... 武汉大学宣布正式取消社会公众进校预约制度,校外人员只需凭本人身份证即可进入校园。这是很有意义的一件事...
全国医保基金飞行检查正式启动,... 【大河财立方消息】5月14日,国家医保基金飞行检查湖南现场启动会暨警示教育会在长沙召开,标志着202...
坚定不移沿着习近平总书记指引的... 在中航光电的展馆里,一辆新能源汽车的剖面模型格外醒目。 河南日报全媒体记者 冉衡 摄【编者按】202...
河南一地入选!国家级试点城市名... 【大河财立方消息】5月14日消息,工业和信息化部、财政部公示第三批制造业新型技术改造城市试点拟入选名...
周日有大到暴雨!郑州将有连续性... 受切变线和低空急流共同影响,16日至18日我市将有一次明显降水过程。15日夜里有阵雨,16日下午到夜...
降的是费率 增的是底气 河南失... 中国铁路郑州局集团有限公司开展业务技能实操训练。受访者供图一笔失业保险稳岗返还资金,到了企业手里,可...
宇树科技发布全球首款载人变形机... 宇树科技CEO王兴兴与载人变形机甲GD01击拳。宇树科技供图5月12日,宇树科技发布全球首款量产版载...
洗衣机地漏盖不闭合怎么修 如果您发现您的洗衣机地漏盖不闭合,这可能是由于以下原因之一: 1. 漏水管生锈或破裂:这可能是漏水...