rac em工具日常管理
启动em工具
停止em工具
检查em运行状况
em工具访问信息
em创建
em删除
检查em集群配置:
emca -displayConfig dbcontrol -cluster
[oracle@racdb1 ~]$ emca -displayConfig dbcontrol -cluster
STARTED EMCA at Sep 29, 2012 8:12:56 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle. All rights reserved.
emca -displayConfig dbcontrol -cluster
[oracle@racdb1 ~]$ emca -displayConfig dbcontrol -cluster
STARTED EMCA at Sep 29, 2012 8:12:56 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: prd
Service name: prd
Do you wish to continue? [yes(Y)/no(N)]: y
Sep 29, 2012 8:13:01 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/prd/emca_2012_09_29_08_12_56.log.
Sep 29, 2012 8:13:04 AM oracle.sysman.emcp.EMDBPostConfig showClusterDBCAgentMessage
INFO:
**************** Current Configuration ****************
INSTANCE NODE DBCONTROL_UPLOAD_HOST
---------- ---------- ---------------------
prd racdb1 racdb1
prd racdb2 racdb1
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 29, 2012 8:13:04 AM
启动em工具
emctl start dbconsole
停止em工具
emctl stop dbconsole
检查em运行状况
emctl status dbconsole
[oracle@racdb1 ~]$ 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://racdb1:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/racdb1_racdb/sysman/log
em工具访问信息
cat $ORACLE_HOME/install/portlist.ini
[oracle@racdb1 ~]$ cat /u01/app/oracle/product/11.2.0/db_1/install/portlist.ini
Enterprise Manager Console HTTP Port (racdb) = 1158
Enterprise Manager Agent Port (racdb) = 3938
Enterprise Manager Console HTTP Port (prd) = 5500
Enterprise Manager Agent Port (prd) = 1830
em创建
emca -config dbcontrol db -repos create -cluster
em删除
emca -deconfig dbcontrol db -repos drop -cluster