[Email protected] dboracle]$ emctl status Dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, Oracle Corporation. All rights reserved.
Https://localhost.localdomain:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
------------------------------------------------------------------
Logs is generated in Directory/usr/oracle/dboracle/app/localhost.localdomain_mwdb/sysman/log
Use the Emca-config dbcontrol Db-repos recreate rebuild, as prompted for help.
[Email protected] dboracle]$ emca-config Dbcontrol Db-repos recreate
STARTED EMCA at Oct 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 are chosen to configure database Control for managing the database mwdb
This would remove the existing configuration and the default settings and perform a fresh configuration
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 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 are chosen to configure database Control for managing the database mwdb
This would remove the existing configuration and the default settings and perform a fresh configuration
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.-----
The Local hostname ... localhost.localdomain, ... and so on.
Listener oracle_home ..../usr/oracle/dboracle/app.-----
Listener port number ....... ..... 1522
Database SID ..... mwdb ....???
e-mail address for notifications .......
Outgoing Mail (SMTP) server for notifications ..... .....
-----------------------------------------------------------------
wish to continue? [Yes (Y)/no (N)]: Y
OCT 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 9:56:28 AM oracle.sysman.emcp.util.DBControlUtil stopoms
Info:stopping Database Control (This is a while) ...
OCT, 9:56:31 AM oracle.sysman.emcp.EMReposConfig invoke
Info:dropping the EM repository (this is a while) ...
OCT, 9:58:23 AM oracle.sysman.emcp.EMReposConfig invoke
Info:repository successfully dropped
OCT 9:58:23 AM oracle.sysman.emcp.EMReposConfig createrepository
Info:creating the EM repository (this is a while) ...
OCT, 10:04:20 AM oracle.sysman.emcp.EMReposConfig invoke
Info:repository successfully created
OCT 10:04:21 AM oracle.sysman.emcp.EMReposConfig uploadconfigdatatorepository
Info:uploading configuration data to EM repository (this could take a while) ...
OCT, 10:05:06 AM oracle.sysman.emcp.EMReposConfig invoke
info:uploaded Configuration Data successfully
OCT 10:05:09 AM oracle.sysman.emcp.util.DBControlUtil configuresoftwarelib
Info:software Library configured successfully.
OCT 10:05:09 AM oracle.sysman.emcp.EMDBPostConfig configuresoftwarelibrary
Info:deploying Provisioning Archives ...
OCT 10:05:28 AM oracle.sysman.emcp.EMDBPostConfig configuresoftwarelibrary
Info:provisioning Archives deployed successfully.
OCT 10:05:28 AM oracle.sysman.emcp.util.DBControlUtil securedbconsole
Info:securing Database Control (This is a while) ...
OCT 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil securedbconsole
Info:database Control secured successfully.
OCT 10:06:07 AM oracle.sysman.emcp.util.DBControlUtil startoms
Info:starting Database Control (This is a while) ...
OCT 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performconfiguration
Info:database Control started successfully
OCT 10:06:21 AM oracle.sysman.emcp.EMDBPostConfig performconfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://localhost.localdomain:1158/em <<<<<<<<<<<
OCT, 10:06:23 AM oracle.sysman.emcp.EMDBPostConfig invoke
WARNING:
WARNING ************************
Management Repository have been placed in secure mode wherein Enterprise Manager data would be encrypted. The encryption key has been placed in the file:/usr/oracle/dboracle/app/localhost.localdomain_mwdb/sysman/config/ Emkey.ora. Ensure this file was backed up as the encrypted data would become unusable if this file is lost.
***********************************************************
Enterprise Manager Configuration completed successfully
Finished EMCA at Oct 10:06:23 AM
start em again and start successfully.
Use the Emctl status Dbconsole command to discover that EM is not running