11g rac em重建

简介: emca -config dbcontrol db -repos create -cluster

1,删除EM

emca -deconfig dbcontrol db [-repos drop] [-cluster]

emca -deconfig dbcontrol db -repos drop -cluster

To delete Database Control configuration files using EMCA scripts, run one of the following commands:

For a single-instance database:

$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db

For an Oracle RAC database:

$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db –cluster

The -deconfig option removes the Enterprise Manager jobs from Scheduling before Database Control is deconfigured. Otherwise the repository, which is not dropped, could be corrupted or inconsistent if Enterprise Manager jobs were scheduled at the time Database Control is dropped. It could also cause errors during the Database Control deletion

https://docs.oracle.com/cd/E11882_01/server.112/e25494/dbcontrol.htm#ADMIN13417

2,新建EM
emca -config dbcontrol db  -repos create -cluster

使用EMCA创建EM。
 
[oracle@dm01db01 ~]$ emca -config dbcontrol db  -repos create -cluster  

STARTED EMCA at Jun 18, 2014 11:30:26 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: tequdb  
Service name: tequdb  
Listener port number: 1521  
Listener ORACLE_HOME [ /u01/app/11.2.0.4/grid ]:   
Password for SYS user:    
Password for DBSNMP user:    
Password for SYSMAN user:    
Cluster name: cluster-clu1  
Email address for notifications (optional):   
Outgoing Mail (SMTP) server for notifications (optional):   
ASM ORACLE_HOME [ /u01/app/11.2.0.4/grid ]:   
ASM port [ 1521 ]:   
ASM username [ ASMSNMP ]:   
ASM user password:    
-----------------------------------------------------------------  

You have specified the following settings  

Database ORACLE_HOME ................ /u01/app/oracle/product/11.2.0.4/dbhome_1  

Database instance hostname ................ Listener ORACLE_HOME ................ /u01/app/11.2.0.4/grid  
Listener port number ................ 1521  
Cluster name ................ cluster-clu1  
Database unique name ................ tequdb  
Email address for notifications ...............   
Outgoing Mail (SMTP) server for notifications ...............   
ASM ORACLE_HOME ................ /u01/app/11.2.0.4/grid  
ASM port ................ 1521  
ASM user role ................ SYSDBA  
ASM username ................ ASMSNMP  

-----------------------------------------------------------------  
Do you wish to continue? [yes(Y)/no(N)]: y  
Jun 18, 2014 11:31:01 PM oracle.sysman.emcp.EMConfig perform  
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/tequdb/emca_2014_06_18_23_30_26.log.  
Jun 18, 2014 11:31:14 PM oracle.sysman.emcp.EMReposConfig createRepository  
INFO: Creating the EM repository (this may take a while) ...  
Jun 18, 2014 11:33:54 PM oracle.sysman.emcp.EMReposConfig invoke  
INFO: Repository successfully created  
Jun 18, 2014 11:34:03 PM oracle.sysman.emcp.EMReposConfig uploadConfigDataToRepository  
INFO: Uploading configuration data to EM repository (this may take a while) ...  
Jun 18, 2014 11:34:50 PM oracle.sysman.emcp.EMReposConfig invoke  
INFO: Uploaded configuration data successfully  
Jun 18, 2014 11:34:50 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles  
INFO: Propagating /u01/app/oracle/product/11.2.0.4/dbhome_1/oc4j/j2ee/OC4J_DBConsole_dm01db01_tequdb to remote nodes ...  
Jun 18, 2014 11:34:52 PM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles  
INFO: Propagating /u01/app/oracle/product/11.2.0.4/dbhome_1/oc4j/j2ee/OC4J_DBConsole_dm01db02_tequdb to remote nodes ...  
Jun 18, 2014 11:34:54 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs  
INFO: Propagating /u01/app/oracle/product/11.2.0.4/dbhome_1/dm01db01_tequdb to remote nodes ...  
Jun 18, 2014 11:34:55 PM oracle.sysman.emcp.EMAgentConfig deployStateDirs  
INFO: Propagating /u01/app/oracle/product/11.2.0.4/dbhome_1/dm01db02_tequdb to remote nodes ...  
Jun 18, 2014 11:34:58 PM oracle.sysman.emcp.util.DBControlUtil secureDBConsole  
INFO: Securing Database Control (this may take a while) ...  
Jun 18, 2014 11:35:39 PM oracle.sysman.emcp.util.DBControlUtil startOMS  
INFO: Starting Database Control (this may take a while) ...  
Jun 18, 2014 11:36:03 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration  
INFO: Database Control started successfully  
Jun 18, 2014 11:36:03 PM oracle.sysman.emcp.EMDBPostConfig performConfiguration  
INFO: >>>>>>>>>>> The Database Control URL is https://dm01db01.tequ.com:1158/em <<<<<<<<<<<  
Jun 18, 2014 11:46:24 PM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage  
INFO:   
****************  Current Configuration  ****************  
 INSTANCE            NODE           DBCONTROL_UPLOAD_HOST  
----------        ----------        ---------------------  

tequdb            dm01db01            dm01db01.tequ.com  
tequdb            dm01db02            dm01db01.tequ.com  


Jun 18, 2014 11:46:24 PM 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.4/dbhome_1/dm01db01_tequdb/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 Jun 18, 2014 11:46:24 PM  

成功创建EM。 
-----------------------------------
©著作权归作者所有:来自51CTO博客作者小麦苗DB宝的原创作品,请联系作者获取转载授权,否则将追究法律责任
Oracle 11gR2 RAC Database使用emca配置集群dbconsole
https://blog.51cto.com/lhrbest/2695747
相关文章
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 测试技术
Oracle 11G ADG 搭建 RAC to Single 详细教程(RMAN DUPLICATE)
经过交流群中朋友的多次要求,这次给大家分享一下 RAC to Single 的 ADG 搭建教程!
Oracle 11G ADG 搭建 RAC to Single 详细教程(RMAN DUPLICATE)
|
数据库 网络架构 关系型数据库
11g grid rac更改心跳ip地址
grid rac更改心跳ip地址
2096 0
|
Oracle 网络协议 关系型数据库
|
前端开发 Oracle 关系型数据库
|
关系型数据库 Linux Python
|
网络协议 Oracle 关系型数据库