Reconfigure/Rebuild OEM dbcontrol Repository

Oracle Database Installation Procedures
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

Reconfigure/Rebuild OEM dbcontrol Repository

Post by jimb »

Below is the steps to Reconfigure/Rebuild Oracle Enterprise Manager dbcontrol Repository
- Login to Database Server.
- Recreate local SYS password ( orapwd file=$ORACLE_HOME/dbs/orapw<SID> password=<password> entries=5 )
> [ORCLA10 /home/oracle]$ orapwd file=$ORACLE_HOME/dbs/orapwORCL10G password=manager entries=5
- Drop the previous repository
> [ORCLA10 /home/oracle]$ emca -deconfig dbcontrol db -repos drop
[oracle@oracle10g ~]$ emca -deconfig dbcontrol db -repos drop

STARTED EMCA at Jan 23, 2012 10:18:32 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: ORCL10G
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:

Do you wish to continue? [yes(Y)/no(N)]: Y
Jan 23, 2012 10:19:16 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ORCL10G/emca_2012-01-23_10-18-31-PM.log.
Jan 23, 2012 10:19:19 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Jan 23, 2012 10:19:52 PM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
- Recreate repository
> [ORCLA10 /home/oracle]$ emca -config dbcontrol db -repos create
[oracle@oracle10g ~]$ emca -config dbcontrol db -repos create

STARTED EMCA at Jan 23, 2012 11:17:24 PM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: ORCL10G
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 ................ /u01/app/oracle/product/10.2.0/db_1

Database hostname ................ oracle10g.localdomain
Listener port number ................ 1521
Database SID ................ ORCL10G
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............

-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Jan 23, 2012 11:17:45 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/emca/ORCL10G/emca_2012-01-23_11-17-24-PM.log.
Jan 23, 2012 11:17:50 PM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Jan 23, 2012 11:23:46 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Jan 23, 2012 11:23:56 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jan 23, 2012 11:25:36 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Jan 23, 2012 11:25:36 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://oracle10g.localdomain:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Jan 23, 2012 11:25:36 PM
[oracle@oracle10g ~]$
- Restart listener
> [ORCLA10 /home/oracle]$ lsnrctl stop
> [ORCLA10 /home/oracle]$ lsnrctl start
- Restart dbconsole
> [ORCLA10 /home/oracle]$ emctl stop dbconsole
> [ORCLA10 /home/oracle]$ emctl start dbconsole
Oracle Database Administration Forums
http://www.oracle-forums.com/
Post Reply