Enterprise Manager Cloud Control(EMCC)是Oracle提供的一个全面管理和监控企业环境的工具,近期Oracle官方重磅发布了EMCC 24ai,也是第一时间进行了安装部署,并将部署过程以及升级心得分享给大家。
相比较之前的版本,这次EMCC 24ai新版本发布后,不用再打补丁,而且整体做了很大的优化和改进,远程代理进行监控、数据库的引导式发现、重新设计的插件等,确实进化了不少,属实有点“爱”了!

1.如何下载?
通过官方链接下载即可 https://www.oracle.com/enterprise-manager/downloads 一共是5个包,总共7.8G

2.Oracle存储库设置
19c中的存储库DB版本19.22/更高版本是受支持的版本,确保将最新的PSU应用于受支持的数据库,所以版本低的话,RU升级即可。
1.参数修改 alter system set "_allow_insert_with_update_check"=true scope=both; alter system set session_cached_cursors=200 scope=spfile; alter system set processes=600 scope=spfile; alter system set shared_pool_size=600M; 2.字符集要求 字符集:AL32UTF8 3.内核参数修改 vi /etc/sysctl.conf net.ipv4.ip_local_port_range = 11000 65500 --以下命令生效 sysctl -p 4.在线日志调整 alter database add logfile group 4 '/u01/app/oracle/oradata/ORCL/onlinelog/redo04.log' size 600m; alter database add logfile group 5 '/u01/app/oracle/oradata/ORCL/onlinelog/redo05.log' size 600m; alter database add logfile group 6 '/u01/app/oracle/oradata/ORCL/onlinelog/redo06.log' size 600m; alter database add logfile group 7 '/u01/app/oracle/oradata/ORCL/onlinelog/redo07.log' size 600m;
3.EMCC安装
1.解压 unzip V1046951-01.zip unzip V1046952-01.zip unzip V1046953-01.zip unzip V1046954-01.zip unzip V1046955-01.zip --授权 chown oracle:oinstall -R em24100* 2.目录创建 mkdir -p /u01/app/oracle/middleware mkdir -p /u01/app/oracle/agent 3.安装 ./em24100_linux64.bin


5.开机自启动
1.配置数据库自启动 sed -i 's/ORACLE_HOME_LISTNER=$1/ORACLE_HOME_LISTNER=$ORACLE_HOME/' $ORACLE_HOME/bin/dbstart sed -i 's/ORACLE_HOME_LISTNER=$1/ORACLE_HOME_LISTNER=$ORACLE_HOME/' $ORACLE_HOME/bin/dbshut ## root 用户执行 vi /etc/oratab OMSDB:/u01/app/oracle/product/19.3.0/dbhome_1:Y cat <<-\EOF >>/etc/rc.d/rc.local su - oracle -lc 'lsnrctl start' su - oracle -lc 'dbstart' EOF chmod +x /etc/rc.d/rc.local 2.配置 EMCC 自启动 cat <<-\EOF >>/etc/rc.d/rc.local su oracle -lc "/u01/app/oracle/middleware/bin/emctl start oms" su oracle -lc "/u01/app/oracle/agent/agent_24.1.0.0.0/bin/emctl start agent" EOF chmod +x /etc/rc.d/rc.local
6.监控管理
6.1 硬件监控管理

6.2 数据库监控管理

6.3 ODA监控管理

6.4 Exadata监控管理

6.5 MySQL的监控管理

6.6 grafana结合emcc
grafana用emcc做数据源,定制em上纳管的对象的显示信息,也是非常炫酷的。

7.upgrade to 24ai
1)Repository DB version 19.22/later in 19c are the supported versions. 2)Upgrade can done in any one of the following ways. 1.Upgrade End-to-End 2.Upgrade Software only with plug-ins and Configure Later

8.总结
除了Oracle自身的产品,EMCC还支持对第三方产品进行监控和管理,一些高可用监控、特别方便,可以说是DBA的小助理!
