OEM12C添加对MYSQL的监控

来源:互联网 发布:淘宝宝贝展现词为0 编辑:程序博客网 时间:2024/06/06 03:15

OEM12C添加对MYSQL的监控

  • plugin下载与安装
    Setup->extensibility->self update进入Plug-int
    这里写图片描述
    选择plug-in name为”MySQL Database”然后点击页面上的”Download”下载
    https://updates.oracle.com/Orion/Services/download/p22047385_112000_Generic.zip?aru=19479462&patch_file=p22047385_112000_Generic.zip
    下载完之后上传至OMS
emcli  login -username=sysman  -password=Weblogic11gemcli import_update -omslocal -file=D:\ p22047385_112000_Generic.zip

然后可以点击面界上的”Apply”,这样针对Mysql Database的plug-in就安装完毕。

  • agent下载与安装
    Setup->extensibility->self update进入Agent Software
    这里写图片描述
    选择”Linux x86-64”点击”Download”下载
    https://updates.oracle.com/Orion/Services/download/p21207108_112000_Generic.zip?aru=19028877&patch_file=p21207108_112000_Generic.zip
    下载完之后上传至OMS
emcli  login -username=sysman  -password=Weblogic11gemcli import_update -omslocal -file=D:\p21207108_112000_Generic.zip

下载LINUX x86-64位> emcli verify_updates

emcli sync
emcli get_supported_platforms
emcli get_agentimage -destination=D:\tmp3 -platform=”Linux x86-64” -version=12.1.0.5.0 RECOMMENDATION: If your agent image platform and the emcli client
setup is on a different platform then you need to set the environment
variable ZIP_LOC to abso lute path to the zip utility which is greater
than or equal to version 3.0. Example: setenv ZIP_LOC
/usr/local/bin/zip,
处理方法可以将12.1.0.5.0_PluginsOneoffs_226.zip添加到12.1.0.5.0_AgentCore_226.zip就可以了。

解压12.1.0.5.0_AgentCore_226.zip
这里写图片描述
安装agent不能用root用户运行,其次要配置好mysql的环境变量

export PATH=$PATH:$HOME/bin:/data/mysql/binexport MYSQL_UNIX_PORT=/data/mysql/mysql.sock

客户端与OMS上的hosts文件添加

10.3.88.33     pser.com10.3.22.99     oms.com

确保端口4889,3872开通
静默安装方式:

agentDeploy.sh AGENT_BASE_DIR=/oemagent OMS_HOST=oms.com  EM_UPLOAD_PORT=4889 AGENT_REGISTRATION_PASSWORD=Weblogic11g  AGENT_INSTANCE_HOME=/oemagent/agent_ins  AGENT_PORT=3872  ORACLE_HOSNTAME=pser.com

最后提示用root用户运行发下两脚本:

/oemagent/core/12.1.0.5.0/root.sh/data/mysql/oraInventory/orainstRoot.sh

操作完之后可以看到相关提示
这里写图片描述

  • MYSQL监控的配置
    创建Mysql用户
GRANT SELECT, RELOAD, PROCESS, SUPER on *.* to 'sysman'@'%' identified by 'sysman' ;GRANT SELECT, RELOAD, PROCESS on *.* to 'sysman'@'%';

手动添加mysql target
这里写图片描述

这里写图片描述

这里写图片描述
完之后按确定
查看
这里写图片描述
由于IE原因,我自已显示不了相关内容,换其它IE或装些插件可以显示曲线图
这里写图片描述

原创粉丝点击