[[email protected] DBOracle]$ 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://localhost.localdomain:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
------------------------------------------------------------------
Logs are generated in directory /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/sysman/log
根据提示帮助,使用emca -config dbcontrol db -repos recreate重建。
[[email protected] DBOracle]$ emca -config dbcontrol db -repos recreate
STARTED EMCA at Oct 17, 2011 9:54:44 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: mwdb
Database Control is already configured for the database mwdb
You have chosen to configure Database Control for managing the database mwdb
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 [ /usr/oracle/DBOracle/app ]:
Password for SYS user:
Password for DBSNMP user: [[email protected] DBOracle]$
[[email protected] DBOracle]$ emca -config dbcontrol db -repos recreate
STARTED EMCA at Oct 17, 2011 9:55:44 AM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: mwdb
Database Control is already configured for the database mwdb
You have chosen to configure Database Control for managing the database mwdb
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 [ /usr/oracle/DBOracle/app ]:
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 ................ /usr/oracle/DBOracle/app
Local hostname ................ localhost.localdomain
Listener ORACLE_HOME ................ /usr/oracle/DBOracle/app
Listener port number ................ 1522
Database SID ................ mwdb
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /usr/oracle/cfgtoollogs/emca/mwdb/emca_2011_10_17_09_55_44.log.
Oct 17, 2011 9:56:28 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Oct 17, 2011 9:56:31 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Oct 17, 2011 9:58:23 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Oct 17, 2011 10:04:20 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Oct 17, 2011 10:04:21 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
Oct 17, 2011 10:05:06 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.util.DBControlUtil configureSoftwareLib
INFO: Software library configured successfully.
Oct 17, 2011 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Deploying Provisioning archives ...
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.EMDBPostConfig configureSoftwareLibrary
INFO: Provisioning archives deployed successfully.
Oct 17, 2011 10:05:28 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Database Control secured successfully.
Oct 17, 2011 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Oct 17, 2011 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<<
Oct 17, 2011 10:06:23 AM 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: /usr/oracle/DBOracle/app/localhost.localdomain_mwdb/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 Oct 17, 2011 10:06:23 AM
再次启动em,启动成功。