Recreate the EM repository.

$ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://rac01-ud-us-eqx:1158/em/console/aboutApplication
EM Daemon is not running.
------------------------------------------------------------------
Logs are generated in directory /opt/app/oracle/product/10.2.0/db_1/rac03-ud-us-eqx_RPTS3/sysman/log
$ emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://rac01-ud-us-eqx:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ............................................................................................. failed.
------------------------------------------------------------------
Logs are generated in directory /opt/app/oracle/product/10.2.0/db_1/rac03-ud-us-eqx_RPTS3/sysman/log

$ emca -config dbcontrol db -repos recreate

STARTED EMCA at Feb 11, 2011 1:49:01 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: RPTS3
Database Control is already configured for the database RPTS3
You have chosen to configure Database Control for managing the database RPTS3
This will remove the existing configuration and the default settings and perform a fresh configuration
Do you wish to continue? [yes(Y)/no(N)]: yes
Listener port number: 1521
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 ................ /opt/app/oracle/product/10.2.0/db_1

Database hostname ................ rac03-ud-us-eqx
Listener port number ................ 1521
Database SID ................ RPTS3
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: yes
Feb 11, 2011 1:49:26 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /opt/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/RPTS/emca_2011-02-11_01-49-01-AM.log.
Feb 11, 2011 1:49:30 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5540 is already in use.
Feb 11, 2011 1:49:30 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 5520 is already in use.
Feb 11, 2011 1:49:30 AM oracle.sysman.emcp.util.PortManager isPortInUse
WARNING: Specified port 1158 is already in use.
Feb 11, 2011 1:49:30 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 11, 2011 1:49:35 AM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Feb 11, 2011 1:58:25 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Feb 11, 2011 1:58:25 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...


Feb 11, 2011 2:16:46 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Feb 11, 2011 2:16:56 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Feb 11, 2011 2:18:40 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Feb 11, 2011 2:18:40 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://rac03-ud-us-eqx:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 11, 2011 2:18:40 AM

你可能感兴趣的:(repository)