emctl status dbconsole
2.查看RAC数据库 dbcontrol 的配置信息
emca -displayConfig dbcontrol -cluster
3.清除RAC数据库旧的配置信息
emca -deconfig dbcontrol db -repos drop -cluster
4.重新建立RAC数据库的db control的配置信息
emca -config dbcontrol db -repos create -cluster
********************************************************************************************************
[oracle@dbs ~]$ emctl status dbconsole
TZ set to PRC
OC4J Configuration issue. /home/oracle/product/10.2.0/db/oc4j/j2ee/OC4J_DBConsole_dbs_racdb2 not found.
[oracle@dbs ~]$ cd /home/oracle/product/10.2.0/db/oc4j/j2ee/
[oracle@dbs j2ee]$ ls
deploy_db.ini isqlplus isqlplus_dbs OC4J_DBConsole OC4J_DBConsole_dbs_racdb1
home isqlplus_dbp oc4j_applications OC4J_DBConsole_dbp_racdb2
[oracle@dbs j2ee]$ emca -deconfig dbcontrol db -repos drop -cluster
STARTED EMCA at Nov 25, 2010 9:08:38 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database unique name: racdb
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
Nov 25, 2010 9:08:59 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /home/oracle/product/10.2.0/db/cfgtoollogs/emca/racdb/emca_2010-11-25_09-08-38-AM.log.
Nov 25, 2010 9:09:02 AM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Nov 25, 2010 9:09:18 AM oracle.sysman.emcp.EMReposConfig stopDBMSJobs
WARNING: Error initializing SQL connection. SQL operations cannot be performed
Nov 25, 2010 9:09:18 AM oracle.sysman.emcp.EMReposConfig invoke
WARNING: Unable to remove DBMS jobs.
Nov 25, 2010 9:09:18 AM oracle.sysman.emcp.EMReposConfig dropRepository
INFO: Dropping the EM repository (this may take a while) ...
Nov 25, 2010 9:15:04 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 25, 2010 9:15:06 AM
************************************************************************************
[oracle@dbs j2ee]$ emca -config dbcontrol db -repos create -cluster
STARTED EMCA at Nov 25, 2010 9:16:58 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database unique name: racdb
Listener port number: 1521
Cluster name: racdb
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):
ASM ORACLE_HOME [ /home/oracle/product/10.2.0/db ]:
ASM port [ 1521 ]:
ASM user role [ SYSDBA ]:
ASM username [ SYS ]:
ASM user password:
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /home/oracle/product/10.2.0/db
Database instance hostname ................ dbs
Listener port number ................ 1521
Cluster name ................ racdb
Database unique name ................ racdb
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
ASM ORACLE_HOME ................ /home/oracle/product/10.2.0/db
ASM port ................ 1521
ASM user role ................ SYSDBA
ASM username ................ SYS
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
INFO: This operation is being logged at /home/oracle/product/10.2.0/db/cfgtoollogs/emca/racdb/emca_2010-11-25_09-16-58-AM.log.
Nov 25, 2010 9:18:19 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Nov 25, 2010 9:24:26 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Nov 25, 2010 9:25:11 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /home/oracle/product/10.2.0/db/oc4j/j2ee/OC4J_DBConsole_dbp_racdb2 to remote nodes ...
Nov 25, 2010 9:25:11 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
INFO: Propagating /home/oracle/product/10.2.0/db/oc4j/j2ee/OC4J_DBConsole_dbs_racdb1 to remote nodes ...
Nov 25, 2010 9:25:25 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /home/oracle/product/10.2.0/db/dbp_racdb2 to remote nodes ...
Nov 25, 2010 9:25:28 AM oracle.sysman.emcp.EMAgentConfig deployStateDirs
INFO: Propagating /home/oracle/product/10.2.0/db/dbs_racdb1 to remote nodes ...
Nov 25, 2010 9:25:29 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Nov 25, 2010 9:27:31 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Nov 25, 2010 9:27:31 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://dbs:1158/em <<<<<<<<<<<
Nov 25, 2010 9:27:35 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
racdb2 dbp dbs
racdb1 dbs dbs
Enterprise Manager configuration completed successfully
FINISHED EMCA at Nov 25, 2010 9:27:35 AM
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16313359/viewspace-682333/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16313359/viewspace-682333/