Steps to configure Enterprise Manager DB Control in RAC
-bash-4.1$ ./emca -deconfig dbcontrol db -repos drop -cluster
STARTED EMCA at May 20, 2012 9:31:57 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: IMPHAL
Service name: IMPHAL
Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]:
Password for SYS user:
Password for SYSMAN user:
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
May 20, 2012 9:32:19 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/IMPHAL/emca_2012_05_20_09_31_56.log.
May 20, 2012 9:32:20 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
May 20, 2012 9:32:43 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
May 20, 2012 9:35:45 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at May 20, 2012 9:35:48 AM
-bash-4.1$ ./emca -config dbcontrol db -repos create -cluster
STARTED EMCA at May 20, 2012 9:36:50 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: IMPHAL
Service name: IMPHAL
Listener port number: 1521
Listener ORACLE_HOME [ /u01/app/11.2.0/grid ]:
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Cluster name: evdclus
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
ASM ORACLE_HOME [ /u01/app/11.2.0/grid ]:
ASM port [ 1521 ]:
ASM username [ ASMSNMP ]:
ASM user password:
May 20, 2012 9:37:36 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineRemotely
WARNING: Error during db connection : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0
Database instance hostname ................ Listener ORACLE_HOME ................ /u01/app/11.2.0/grid
Listener port number ................ 1521
Cluster name ................ evdclus
Database unique name ................ IMPHAL
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /u01/app/11.2.0/grid
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ ASMSNMP
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
May 20, 2012 9:37:44 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/IMPHAL/emca_2012_05_20_09_36_49.log.
May 20, 2012 9:37:46 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
May 20, 2012 9:43:56 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
May 20, 2012 9:44:01 AM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository
INFO: Uploading configuration data to EM repository (this may take a while) ...
May 20, 2012 9:45:03 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Uploaded configuration data successfully
May 20, 2012 9:45:04 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /u01/app/oracle/product/11.2.0/oc4j/j2ee/OC4J_DBConsole_IMPHAL1_IMPHAL to remote nodes ...
May 20, 2012 9:45:05 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /u01/app/oracle/product/11.2.0/oc4j/j2ee/OC4J_DBConsole_IMPHAL2_IMPHAL to remote nodes ...
May 20, 2012 9:45:08 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /u01/app/oracle/product/11.2.0/IMPHAL1_IMPHAL to remote nodes ...
May 20, 2012 9:45:10 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /u01/app/oracle/product/11.2.0/IMPHAL2_IMPHAL to remote nodes ...
May 20, 2012 9:45:14 AM oracle.sysman.emcp.util.DBControlUtil secureDBConsole
INFO: Securing Database Control (this may take a while) ...
May 20, 2012 9:45:31 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
May 20, 2012 9:46:20 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
May 20, 2012 9:46:20 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is https://IMPHAL1:1158/em <<<<<<<<<<<
May 20, 2012 9:46:23 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
IMPHAL IMPHAL1 IMPHAL1
IMPHAL IMPHAL2 IMPHAL1
May 20, 2012 9:46: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: /u01/app/oracle/product/11.2.0/IMPHAL1_IMPHAL/sysman/config/emkey.ora. 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 May 20, 2012 9:46:23 AM
-bash-4.1$ ./emca -displayConfig dbcontrol -cluster
STARTED EMCA at May 20, 2012 9:46:39 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: IMPHAL
Service name: IMPHAL
Do you wish to continue? [yes(Y)/no(N)]: Y
May 20, 2012 9:46:48 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/IMPHAL/emca_2012_05_20_09_46_39.log.
May 20, 2012 9:46:51 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
IMPHAL IMPHAL1 IMPHAL1
IMPHAL IMPHAL2 IMPHAL1
Enterprise Manager configuration completed successfully
FINISHED EMCA at May 20, 2012 9:46:51 AM
-bash-4.1$ ./emca -reconfig dbcontrol -cluster -EM_NODE IMPHAL2 -EM_NODE_LIST IMPHAL2
STARTED EMCA at May 20, 2012 9:47:21 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
Enter the following information:
Database unique name: IMPHAL
Service name: IMPHAL
Do you wish to continue? [yes(Y)/no(N)]: Y
May 20, 2012 9:47:34 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/IMPHAL/emca_2012_05_20_09_47_20.log.
May 20, 2012 9:47:36 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
May 20, 2012 9:47:39 AM oracle.sysman.emcp.EMAgentConfig performDbcReconfiguration
INFO: Propagating /u01/app/oracle/product/11.2.0/IMPHAL2_IMPHAL/sysman/config/emd.properties to remote nodes ...
May 20, 2012 9:47:40 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
May 20, 2012 9:48:03 AM oracle.sysman.emcp.EMDBPostConfig performDbcReconfiguration
INFO: Database Control started successfully
May 20, 2012 9:48:03 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
IMPHAL IMPHAL1 IMPHAL1
IMPHAL IMPHAL2 IMPHAL2
Enterprise Manager configuration completed successfully
FINISHED EMCA at May 20, 2012 9:48:03 AM
-bash-4.1$ ./emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://IMPHAL1:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/IMPHAL1_IMPHAL/sysman/log
Node2
-bash-4.1$ ./emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://IMPHAL2:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/IMPHAL2_IMPHAL/sysman/log