Search This Blog

Change DBCONTROL_UPLOAD_HOST using emca

$ emca -displayConfig dbcontrol -cluster

STARTED EMCA at Jul 15, 2017 3:07:12 PM
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: orcl
Service name: orcl1
Do you wish to continue? [yes(Y)/no(N)]: y
Jul 15, 2017 3:07:25 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /d01/app/oracle/cfgtoollogs/emca/orcl/e                                                                                        mca_2017_07_15_15_07_11.log.
Jul 15, 2017 3:07:30 PM oracle.sysman.emcp.DatabaseChecks getGlobalDbUniqueName
WARNING: null
Jul 15, 2017 3:07:30 PM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMes                                                                                        sage
INFO:
****************  Current Configuration  ****************
 INSTANCE            NODE           DBCONTROL_UPLOAD_HOST
----------        ----------        ---------------------

orcl             rac02             rac02.db.com
orcl             rac03             rac02.db.com  <<<<===========need to change)


Enterprise Manager configuration completed successfully
FINISHED EMCA at Jul 15, 2017 3:07:30 PM

$ emca -reconfig dbcontrol -cluster -EM_NODE rac03 -EM_NODE_LIST rac03            // eneter HOSTNAME


STARTED EMCA at Jul 15, 2017 3:29:43 PM
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: orcl
Service name: orcl1
Do you wish to continue? [yes(Y)/no(N)]: Y
Jul 15, 2017 3:29:59 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /d01/app/oracle/cfgtoollogs/emca/orcl/emca_2017_07_15_15_29_43.log.
Jul 15, 2017 3:30:03 PM oracle.sysman.emcp.DatabaseChecks getGlobalDbUniqueName
WARNING: null
Jul 15, 2017 3:30:03 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Jul 15, 2017 3:30:07 PM oracle.sysman.emcp.EMAgentConfig performDbcReconfiguration
INFO: Propagating /d01/app/oracle/product/11.2.0/dbhome/rac03_orcl/sysman/config/emd.properties to remote nodes ...
Jul 15, 2017 3:30:08 PM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Jul 15, 2017 3:30:26 PM oracle.sysman.emcp.EMDBPostConfig performDbcReconfiguration
INFO: Database Control started successfully
Jul 15, 2017 3:30:26 PM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
****************  Current Configuration  ****************
 INSTANCE            NODE           DBCONTROL_UPLOAD_HOST
----------        ----------        ---------------------

orcl             rac02             rac02.db.com
orcl             rac03             rac03.db.com <<<<============Changed)


Enterprise Manager configuration completed successfully
FINISHED EMCA at Jul 15, 2017 3:30:26 PM
$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
https://rac02.db.com:5501/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ...... started.
------------------------------------------------------------------
Logs are generated in directory /d01/app/oracle/product/11.2.0/dbhome/rac02_orcl/sysman/log

No comments:

Post a Comment

Launch your Online Business with a $5.99 .COM!