emctl start dbconsole遇到錯誤:OC4J Configuration issue ORACLE11GR2

啓動emctl start dbconsole的時候,報如下錯誤:[oracle@test ~]$ emctl start dbconsole OC4J Configuration issue. /u01/app/oracle/product/11.2.0/dbhome_1/oc4j/j2ee/OC4J_DBConsole_test_orcl not found.

 

重建EM:emca -repos recreate


手工重新配置EM

oracle@linux:/oracle/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole>  emca -config dbcontrol db

STARTED EMCA at Jan 17, 2014 3:13:05 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: orcl
Listener port number: 1521
Listener ORACLE_HOME [ /oracle/app/grid_home ]: 
Password for SYS user:  
Password for DBSNMP user:  
Password for SYSMAN user:  
Email address for notifications (optional): [email protected]
Outgoing Mail (SMTP) server for notifications (optional): 
ASM ORACLE_HOME [ /oracle/app/grid_home ]: 
ASM SID [ +ASM ]: 
ASM port [ 1521 ]: 
ASM username [ ASMSNMP ]: 
ASM user password:  
-----------------------------------------------------------------

You have specified the following settings

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

Local hostname ................ linux.site
Listener ORACLE_HOME ................ /oracle/app/grid_home
Listener port number ................ 1521
Database SID ................ orcl
Email address for notifications ............... [email protected]
Outgoing Mail (SMTP) server for notifications ............... 
ASM ORACLE_HOME ................ /oracle/app/grid_home
ASM SID ................ +ASM
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jan 17, 2014 3:15:17 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/app/oracle/cfgtoollogs/emca/orcl/emca_2014_01_17_15_13_04.log.
Jan 17, 2014 3:15:32 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Jan 17, 2014 3:18:21 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Jan 17, 2014 3:18:31 PM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Jan 17, 2014 3:18:31 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...

Jan 17, 2014 3:20:00 PM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Jan 17, 2014 3:20:00 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Jan 17, 2014 3:20:27 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Jan 17, 2014 3:20:27 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jan 17, 2014 3:30:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jan 17, 2014 3:30:52 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://linux.site:1158/em <<<<<<<<<<<
Jan 17, 2014 3:31:15 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: /oracle/app/oracle/product/11.2.0/db_1/linux.site_orcl/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 Jan 17, 2014 3:31:15 PM
oracle@linux:/oracle/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole
oracle@linux:/oracle/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole> emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0 
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
https://linux.site:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running. 
------------------------------------------------------------------
Logs are generated in directory /oracle/app/oracle/product/11.2.0/db_1/linux.site_orcl/sysman/log 
oracle@linux:/oracle/app/oracle/product/11.2.0/db_1/oc4j/j2ee/OC4J_DBConsole

修改EM端口
emca -reconfig ports -dbcontrol_http_port 1158
emca -reconfig ports -agent_port 3939  


查看端口:
oracle@linux:/oracle/app/oracle/product/11.2.0/db_1/install> cat portlist.ini 
Enterprise Manager Console HTTP Port (orcl) = 1158
Enterprise Manager Agent Port (orcl) = 3938

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章