How I DROP/RECREATE Oracle Enterprise Manager 10g
Hi,
Here are the steps that I followed in dropping and recreating Oracle Database Enterprise Manager. This are just my notes on how I did it. In Oracle 10g, the EMCA utility is used to recreate EM. It is location in your $ORACLE_HOME/bin directory.
My environment:
OS: RHEL 5.4
DB: Oracle DB 10.2.01
Here's my note:
When the database host name (including the domain name) or the IP address changes, deconfigure and then reconfigure the Database Console with the repository create command. Run the following command:
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
or
emca -deconfig dbcontrol db
emca -config dbcontrol db -repos recreate
******************************************
Make sure the the listener.ora, tnsnames.ora and sqlnet.ora are configured well
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(SERVICE_NAME = sakurasg)
)
)
tnsnames.ora
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
SAKURASG=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = sakurasg)
)
)
[oracle@localhost bin]$ ./emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Feb 21, 2011 1:42:33 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: sakurasg
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: Y
Feb 21, 2011 1:42:46 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2/db_1/cfgtoollogs/emca/sakurasg/emca_2011-02-21_01-42-33-AM.log.
Feb 21, 2011 1:42:47 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 21, 2011 1:42:55 AM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Feb 21, 2011 1:46:52 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 21, 2011 1:46:56 AM
[oracle@localhost bin]$
[oracle@localhost bin]$ ./emca -config dbcontrol db -repos create
STARTED EMCA at Feb 21, 2011 1:51:03 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: sakurasg
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN 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/db_1
Database hostname ................ localhost.localdomain
Listener port number ................ 1521
Database SID ................ sakurasg
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Feb 21, 2011 1:51:56 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2/db_1/cfgtoollogs/emca/sakurasg/emca_2011-02-21_01-51-02-AM.log.
Feb 21, 2011 1:52:00 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 21, 2011 2:06:24 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Feb 21, 2011 2:08:20 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Feb 21, 2011 2:11:35 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Feb 21, 2011 2:12:03 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://localhost.localdomain:5501/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 21, 2011 2:12:05 AM
[oracle@localhost bin]$
Make sure that you monitor the logs shows above to ensure that there are no errors while creating the EM.
Hope yu find this helpful.
Here are the steps that I followed in dropping and recreating Oracle Database Enterprise Manager. This are just my notes on how I did it. In Oracle 10g, the EMCA utility is used to recreate EM. It is location in your $ORACLE_HOME/bin directory.
My environment:
OS: RHEL 5.4
DB: Oracle DB 10.2.01
Here's my note:
When the database host name (including the domain name) or the IP address changes, deconfigure and then reconfigure the Database Console with the repository create command. Run the following command:
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create
or
emca -deconfig dbcontrol db
emca -config dbcontrol db -repos recreate
******************************************
Make sure the the listener.ora, tnsnames.ora and sqlnet.ora are configured well
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2/db_1)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(SERVICE_NAME = sakurasg)
)
)
tnsnames.ora
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
SAKURASG=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = sakurasg)
)
)
[oracle@localhost bin]$ ./emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Feb 21, 2011 1:42:33 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: sakurasg
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: Y
Feb 21, 2011 1:42:46 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2/db_1/cfgtoollogs/emca/sakurasg/emca_2011-02-21_01-42-33-AM.log.
Feb 21, 2011 1:42:47 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Feb 21, 2011 1:42:55 AM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Feb 21, 2011 1:46:52 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 21, 2011 1:46:56 AM
[oracle@localhost bin]$
[oracle@localhost bin]$ ./emca -config dbcontrol db -repos create
STARTED EMCA at Feb 21, 2011 1:51:03 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: sakurasg
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN 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/db_1
Database hostname ................ localhost.localdomain
Listener port number ................ 1521
Database SID ................ sakurasg
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Feb 21, 2011 1:51:56 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/product/10.2/db_1/cfgtoollogs/emca/sakurasg/emca_2011-02-21_01-51-02-AM.log.
Feb 21, 2011 1:52:00 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Feb 21, 2011 2:06:24 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Feb 21, 2011 2:08:20 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Feb 21, 2011 2:11:35 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Feb 21, 2011 2:12:03 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://localhost.localdomain:5501/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Feb 21, 2011 2:12:05 AM
[oracle@localhost bin]$
Make sure that you monitor the logs shows above to ensure that there are no errors while creating the EM.
Hope yu find this helpful.
Comments
Post a Comment