【EMCC】 12.1.0.5 OEM server agent 安裝配置及監控MySQL數據庫

【EMCC】Oracle Enterprise Manager Cloud Control 12.1.0.5 OEM server agent 安裝配置及監控MySQL數據庫html


原文: https://www.cnblogs.com/hmwh/p/8649751.html java

https://www.cnblogs.com/hmwh/p/9761138.html mysql

http://www.cnblogs.com/hmwh/p/8657498.html linux


Oracle 12c(12.1.0.5)OEM server agent 安裝配置

注意: c++

此文檔爲生產上操做文檔,省略了IP,oracle用戶server,agent 端至少須要sudo,ping,ssh,建立目錄權限web

1、安裝要求

1.1. 系統狀況一覽

IP面試

數據庫sql

OEM數據庫

操做系統centos

數據庫版本

XX1

單機

service(12.1.0.5)

Linux 6.7

oracle11.2.0.4

XX2

RAC

agent

Linux 6.7

Oracle11.2.0.4

XX3

RAC

agent

Linux 6.7

Oracle11.2.0.4

 

注意:OEM管理RAC數據庫須要先添加主機,集羣高可用服務(也能夠直接添加數據庫,不添加高可用服務,後續文檔補充),後添加數據庫;單機先添加主機(不用添加集羣高可用服務),後添加數據庫,GC服務器很耗資源,須要安裝oracle軟件,建立實例再配置OEM服務端,agent端,建議服務端32G+內存。

1.2. 操做系統要求

安裝Enterprise Manager Cloud Control 12c的硬件要求如如下列表,要求至少4G內存,

Linux 6.X 須要的依賴包以下:

yum -y install make binutils gcc libaio glibc-common libstdc++ sysstat glibc-devel glibc-devel

 

linux 5.X的依賴包以下:

yum -y install  make binutils gcc libaio glibc-common libstdc setarch sysstat rng-utils libXtst xorg-x11-utils

 

注意: server和agent端都須要安裝依賴包

1.3. 軟件要求

須要的軟件包:

em12105_linux64_disk1

em12105_linux64_disk2

em12105_linux64_disk3

下載地址:

http://www.oracle.com/technetwork/oem/grid-control/downloads/linuxx8664soft-085949.html

 

1.4. 數據庫要求

若是數據庫配置了dbcontrol,使用以下命令將其刪除:

SYSMAN_PWD: Password for SYSMAN user

SYS_PWD: Password for SYS user

$ emca -deconfig dbcontrol db -repos drop -SYS_PWD -SYSMAN_PWD

刪除EM案例:

$ emca -deconfig dbcontrol db -repos drop -oracle -Oracle123

   

建立目錄

mkdir -p /u01/app/oracle/Middleware/

mkdir -p /u01/app/oracle/agent

chown -R oracle:oinstall /u01/app/oracle/Middleware

chown -R oracle:oinstall /u01/app/oracle/agent

解壓文件(同一個目錄解壓)

unzip em12105_linux64_disk1

unzip em12105_linux64_disk2

unzip em12105_linux64_disk3

2、開始安裝Oracle 12c OEM

2.1. 安裝Oracle 12c OEM server

注意:確保安裝目錄空間至少14G

修改一下參數:

可酌情修改參數,GC服務器很耗資源,建議參數不要過小。

 

oracle用戶進入解壓目錄,運行./runInstaller

 

選擇」Skip」跳過更新,點擊NEXT

 

Prerequisite checks安裝檢測,如遇報錯,請根據提示修改(或者忽略),點擊NEXT

 

定製版本:

安裝目錄選擇,middleware HOME目錄必定要爲空

 

Host name 能夠不爲域名格式

 

用戶名密碼設置:

weblogic/XXX

sysman/XXX 

  

   

 

配置oem服務用戶名和密碼:

 

 

 

 

服務端口號設置:默認便可:

 

 

下一步:

 

執行腳本:

 

 

查看服務器端的OEM 狀態:

/u01/app/oracle/Middleware/oms/bin/emctl status oms

  

查看服務器端agent狀態:

/u01/app/oracle/agent/agent_inst/bin/emctl status agent

 

控制檯地址:

https://IP:7802/em

 

啓動OEM時,須要先啓動所在oms服務器的數據庫,以及中間件控制檯,最後啓動OMS(安裝完成後,默認已啓動),啓動中間件管理臺(默認服務器重啓會自動啓動):

Root:

nohup /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/bin/startWebLogic.sh  &

控制檯地址:

https:// IP:7102/console

啓動oms:

Oracle:

/u01/app/oracle/Middleware/oms/bin/emctl start oms -all

啓動客戶端:

/u01/app/oracle/agent/agent_inst/bin/emctl start agent

 

 

2.2. 服務端配置

 vi /etc/hosts

IP  hostname

 

[root@xxserver agent]# ln -s /usr/bin/sudo /usr/local/bin/sudo

[root@xxserver agent]# ls -lh /usr/local/bin/sudo

lrwxrwxrwx. 1 root root 13 Oct  9 11:08 /usr/local/bin/sudo -> /usr/bin/sudo

[root@xxserver agent]# ls -lh /usr/bin/sudo

---s--x--x. 1 root root 121K May  6  2015 /usr/bin/sudo

 [root@xxserver agent]# ls -l /etc/sudoers

-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers

[root@xxserver agent]# vi /etc/sudoers

打開/etc/sudoers 將如下三處修改

修改前:

Defaults requiretty

修改後:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改後:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改後

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --這裏加一行

以上三處修改完成後,save 文件

測試 oracle 可否正常 sudo

 

[oracle@xxserver ~]$ ls -lh /root/

ls: cannot open directory /root/: Permission denied

[oracle@xxserver ~]$ sudo ls -l /root

 

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

 

    #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

 

[sudo] password for oracle:

total 104

-rw-------. 1 root root  1554 Sep 27 17:04 anaconda-ks.cfg

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Desktop

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Documents

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Downloads

-rw-r--r--. 1 root root 51940 Sep 27 17:04 install.log

-rw-r--r--. 1 root root 10259 Sep 27 17:02 install.log.syslog

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Music

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Pictures

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Public

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Templates

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Videos

  

2.3. 安裝agent

2.3.1 前期環境準備

mkdir -p /u01/agent/

chmod oracle.oinstall /u01/agent

注意:

1./u01/agent/ 必定要爲空。

2.全部監控服務器/etc/hosts 配置域名解析

3.全部服務器作如下sudo文件配置:

確保/usr/local/bin/sudo 這個符號連接存在

ROOT:

ln -s /usr/bin/sudo /usr/local/bin/sudo

ls -l /etc/sudoers

-r--r----- 1 root root 3407 Oct 18 19:30 /etc/sudoers

cp /etc/sudoers /etc/sudoers.bak

打開/etc/sudoers 將如下三處修改

修改前:

Defaults requiretty

修改後:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改後:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改後

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --這裏加一行

以上三處修改完成後,save 文件

測試 oracle 可否正常 sudo

su - oracle

ls -l /root

ls: /root: Permission denied

sudo ls -l /root

[sudo] password for oracle:

total 88

-rw------- 1 root root 1832 Aug 11 05:26 anaconda-ks.cfg

drwxr-xr-x 2 root root 4096 Aug 10 21:31 Desktop

-rw-r--r-- 1 root root 56307 Aug 11 05:26 install.log

-rw-r--r-- 1 root root 4136 Aug 11 05:26 install.log.syslog

 

同理設置其餘被管理端(agent):(xxhost1)爲例:

[root@xxhost1 u01]# mkdir -p /app/u01/agent/

[root@xxhost1 u01]# chown -R oracle:oinstall /app/u01/agent

[root@xxhost1 u01]# cat /etc/hosts

IP hostname

[root@xxhost1 u01]# ls -lh /usr/bin/sudo

---s--x--x. 1 root root 121K May  6  2015 /usr/bin/sudo

[root@xxhost1 u01]# ls -l /etc/sudoers

-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers

[root@xxhost1 u01]# ls -lh /usr/local/bin/sudo

ls: cannot access /usr/local/bin/sudo: No such file or directory

[root@xxhost1 u01]# ln -s /usr/bin/sudo /usr/local/bin/sudo

[root@xxhost1 u01]# ls -lh /usr/local/bin/sudo

lrwxrwxrwx 1 root root 13 Oct  9 11:27 /usr/local/bin/sudo -> /usr/bin/sudo

[root@xxhost1 u01]# cp /etc/sudoers /etc/sudoers.bak

[root@xxhost1 u01]# chmod 755 /etc/sudoers

打開/etc/sudoers 將如下三處修改

修改前:

Defaults requiretty

修改後:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改後:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改後

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --這裏加一行

以上三處修改完成後,save 文件

測試 oracle 可否正常 sudo

[root@xxhost1 u01]# su - oracle

[oracle@xxhost1 ~]$ ls -lh /root/

ls: cannot open directory /root/: Permission denied

[oracle@xxhost1 ~]$ sudo ls -lh /root/

 

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

 

    #1) Respect the privacy of others.

    #2) Think before you type.

    #3) With great power comes great responsibility.

 

[sudo] password for oracle:

total 84K

-rw-------. 1 root root 1.7K Aug  1 08:07 anaconda-ks.cfg

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Desktop

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Documents

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Downloads

-rw-r--r--. 1 root root  29K Aug  1 08:07 install.log

-rw-r--r--. 1 root root 8.5K Aug  1 08:06 install.log.syslog

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Music

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Pictures

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Public

-rw-r--r--. 1 root root  358 Aug  1 08:07 redhat.repo_bak

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Templates

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Videos

mkdir -p /agent

chown -R oracle:oinstall /agent

 

其餘:

說明:因爲主機作了ssh 遠程限制,須要修改監控服務器以及全部被監控主機如下參數文件:

vi /etc/ssh/sshd_config

添加如下:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

 

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

 

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

重啓sshd 服務:service sshd restart

 

2.3.2 安裝agent

設置 -> 添加目標 ->手動添加目標

靜默安裝agent參照:http://www.cnblogs.com/hmwh/p/8657498.html

 

 

添加須要監控的數據庫:

 

 

next:

 

 

點擊OK,而後next 出現如下,注意紅色圖,填完配置:

 

下一步部署agent:

 

 

下一步:

 

添加成功

2.4. 添加集羣服務

 

 

下一步:

 

 

 

下一步:

 

 

進行保存(已添加過能夠更新)

上圖能夠根據選擇添加主機的集羣高可用服務。

2.5. 添加管理的數據庫

點擊 Target -> Database -> add 添加數據庫配置信息:(注意,若是有多套cluster 數據庫添加,也能夠用這種辦法添加:http://www.cnblogs.com/hmwh/p/8657498.html)

 

 

Next

 

 

 

Next:

 

 

注意如下圖須要配置1,2,3:

 

 

 

依次配置1,2,3;配置2的時候,設置實例->監聽程序計算機名,須要設置IP,最好不要寫成域名。

Next:

 

 

看添加成功的數據庫:

目標->數據庫


OEM12C(12.1.0.5)安裝插件監控mysql(linux)

目錄結構:

文章參考論壇: https://blog.csdn.net/u010719917/article/details/78128200

環境說明:

oms:12.1.0.5   os:centos 6.X

MYSQL: 5.7.21  OS:centos 7.X

 

1、安裝插件mysql database

下載地址:

https://updates.oracle.com/Orion/Services/download/p22047385_112000_Generic.zip?aru=19479462&patch_file=p22047385_112000_Generic.zip

 

下載完成後,上傳至oem oms,並進行導入。

/orabackup/oeminstall/Middleware/oms/bin/emcli login -username=sysman  -password=密碼

/orabackup/oeminstall/Middleware/oms/bin/emcli import_update -omslocal -file=/oracle/p22047385_112000_Generic.zip

Oracle用戶執行:

 

 

 

 

 

 

添加mysql 數據庫插件:

 

 

 

 

 

 

2、Agent安裝

Agent安裝參考我以前的博客:

因爲MySQL 數據庫服務器沒有oracle用戶,root安裝不能圖形界面安裝,因此操做系統我新建的oracle用戶安裝agent。

靜默安裝:

https://www.cnblogs.com/hmwh/p/8657498.html

圖形界面安裝:

https://www.cnblogs.com/hmwh/p/8649751.html

安裝完後以下:

 

 

 

3、添加mysql數據庫

新建監控用戶:

GRANT SELECT, RELOAD, PROCESS, SUPER on *.* to 'sysman'@'%' identified by 'XXX' ;

GRANT SELECT, RELOAD, PROCESS on *.* to 'sysman'@'%';

flush privileges;

 

 

 

 

 

 

 

 

添加完後以下:

 

 

 

 

 


Oracle 12c(12.1.0.5) oem agent silent install(靜默安裝agent)


註釋:

文章來自oracle support 文檔 ID 1360083.1,靜默安裝agent採用的是把OMS服務端(即oem server端)的agent用壓縮包download,遠程傳到agent端,利用編譯的rsp文件進行編譯,靜默安裝agent。

一、server參數配置參照:http://www.cnblogs.com/hmwh/p/8649751.html

二、agent參數配置參照:http://www.cnblogs.com/hmwh/p/8649751.html

三、silent install(靜默安裝) agent

[oracle@bpmDBmonitor oracle]$ /u01/app/oracle/Middleware/oms/bin/emcli login -username=sysman
Error: Already logged in as user "sysman". Use "emcli logout" to logout the current user.
未登錄須要提示登錄輸入密碼

[oracle@bpmDBmonitor oracle]$ /u01/app/oracle/Middleware/oms/bin/emcli get_supported_platforms

-----------------------------------------------
Version = 12.1.0.5.0
Platform = Linux x86-64
-----------------------------------------------
Platforms list displayed successfully.
[oracle@bpmDBmonitor oracle]$ pwd
/u01/app/oracle
[oracle@bpmDBmonitor oracle]$ ls -lh
total 16K
drwxr-xr-x. 6 oracle oinstall 4.0K Sep 28 17:16 agent
drwxr-xr-x. 6 oracle oinstall 4.0K Sep 28 17:07 gc_inst
drwxr-x---. 16 oracle oinstall 4.0K Sep 28 17:07 Middleware
drwxr-xr-x. 75 oracle oinstall 4.0K Sep 28 17:13 swlib
[oracle@bpmDBmonitor oracle]$ mkdir zip
[oracle@bpmDBmonitor oracle]$ /u01/app/oracle/Middleware/oms/bin/emcli get_agentimage -destination=/u01/app/oracle/zip/ -platform="Linux x86-64" -version=12.1.0.5.0
=== Partition Detail ===
Space free : 86 GB
Space required : 1 GB
Check the logs at /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/emcli/setup/.emcli/get_agentimage_2018-03-26_16-12-53-PM.log
Downloading /u01/app/oracle/zip//12.1.0.5.0_AgentCore_226.zip

查看download agent
[oracle@bpmDBmonitor oracle]$ ls -lh zip/
total 246M
-rw-r--r--. 1 oracle oinstall 246M Mar 26 16:13 12.1.0.5.0_AgentCore_226.zip

[oracle@bpmDBmonitor oracle]$ scp zip/12.1.0.5.0_AgentCore_226.zip IP:/u01/agent/
Authorized only . All activity will be monitored and reported 
oracle@bpminrac1's password: 
stty: standard input: Invalid argument
12.1.0.5.0_AgentCore_226.zip 100% 245MB 106.6MB/s 00:02 
[oracle@bpmDBmonitor oracle]$ scp zip/12.1.0.5.0_AgentCore_226.zip bpminrac2:/u01/agent/
The authenticity of host 'bpminrac2 (23.120.101.8)' can't be established.
RSA key fingerprint is SHA256:lA7Dqw1jqtfJxTBfVWcuXu2Usv7Q1CFkkeo6qXZL4AY.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'bpminrac2,23.120.101.8' (RSA) to the list of known hosts.
Authorized only . All activity will be monitored and reported 
oracle@bpminrac2's password: 
stty: standard input: Invalid argument
12.1.0.5.0_AgentCore_226.zip 100% 245MB 99.3MB/s 00:02 
[oracle@bpmDBmonitor oracle]$ cat /tmp/agent.rsp

OMS_HOST=IP
EM_UPLOAD_PORT=4903
AGENT_REGISTRATION_PASSWORD=abc123
#AGENT_INSTANCE_HOME=<Value Unspecified>
AGENT_PORT=3872
#b_startAgent=true
ORACLE_HOSTNAME=XXX
#s_agentHomeName=<Value Unspecified>


[oracle@bpmexrac2 tmp]$ sh agentDeploy.sh AGENT_BASE_DIR=/u01/app/agent RESPONSE_FILE=/tmp/agent.rsp

Validating the OMS_HOST & EM_UPLOAD_PORT
Executing command : /u01/app/agent/core/12.1.0.5.0/jdk/bin/java -classpath /u01/app/agent/core/12.1.0.5.0/jlib/agentInstaller.jar:/u01/app/agent/core/12.1.0.5.0/oui/jlib/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/agent/core/12.1.0.5.0 /tmp /u01/app/agent AGENT_BASE_DIR=/u01/app/agent RESPONSE_FILE=/tmp/agent.rsp -prereq

Validating oms host & port with url: http://XXX:4903/empbs/genwallet
Validating oms host & port with url: https://XXX:4903/empbs/genwallet
Return status:3-oms https port is passed
Unzipping the agentcoreimage.zip to /u01/app/agent ....
12.1.0.5.0_PluginsOneoffs_226.zip
Executing command : /tmp/unzip -o /tmp/12.1.0.5.0_PluginsOneoffs_226.zip -d /u01/app/agent
Successfully unzipped /tmp/12.1.0.5.0_PluginsOneoffs_226.zip to /u01/app/agent !
Executing command : /u01/app/agent/core/12.1.0.5.0/jdk/bin/java -classpath /u01/app/agent/core/12.1.0.5.0/oui/jlib/OraInstaller.jar:/u01/app/agent/core/12.1.0.5.0/oui/jlib/xmlparserv2.jar:/u01/app/agent/core/12.1.0.5.0/oui/jlib/srvm.jar:/u01/app/agent/core/12.1.0.5.0/oui/jlib/emCfg.jar:/u01/app/agent/core/12.1.0.5.0/jlib/agentInstaller.jar:/u01/app/agent/core/12.1.0.5.0/oui/jlib/share.jar oracle.sysman.agent.installer.AgentInstaller /u01/app/agent/core/12.1.0.5.0 /tmp /u01/app/agent /u01/app/agent/agent_inst AGENT_BASE_DIR=/u01/app/agent


Executing agent install prereqs...
Executing command: /u01/app/agent/core/12.1.0.5.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -prereqchecker -silent -ignoreSysPrereqs -waitForCompletion -prereqlogloc /u01/app/agent/core/12.1.0.5.0/cfgtoollogs/agentDeploy -entryPoint oracle.sysman.top.agent_Complete -detailedExitCodes PREREQ_CONFIG_LOCATION=/u01/app/agent/core/12.1.0.5.0/prereqs -J-DORACLE_HOSTNAME=bpmexrac2.biz.jy.neeq.com.cn -J-DAGENT_PORT=3872 -J-DAGENT_BASE_DIR=/u01/app/agent

Agent install prereqs completed successfully

Cloning the agent home...
Executing command: /u01/app/agent/core/12.1.0.5.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -clone -forceClone -silent -waitForCompletion -nowait ORACLE_HOME=/u01/app/agent/core/12.1.0.5.0 -responseFile /tmp/agent.rsp AGENT_BASE_DIR=/u01/app/agent AGENT_BASE_DIR=/u01/app/agent RESPONSE_FILE=/tmp/agent.rsp -noconfig ORACLE_HOME_NAME=agent12c1 -force b_noUpgrade=true EMCTLCFG_MODE=NONE

Cloning of agent home completed successfully

Attaching sbin home...
Executing command: /u01/app/agent/core/12.1.0.5.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -attachHome -waitForCompletion -nowait ORACLE_HOME=/u01/app/agent/sbin ORACLE_HOME_NAME=sbin12c1 -force

Attach home for sbin home completed successfully.

Updating home dependencies...
Executing command: /u01/app/agent/core/12.1.0.5.0/oui/bin/runInstaller -debug -ignoreSysPrereqs -updateHomeDeps -waitForCompletion HOME_DEPENDENCY_LIST={/u01/app/agent/sbin:/u01/app/agent/core/12.1.0.5.0} -invPtrLoc /u01/app/agent/core/12.1.0.5.0/oraInst.loc -force

Update home dependency completed successfully.
Executing command: /u01/app/agent/core/12.1.0.5.0/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/agent/core/12.1.0.5.0 RESPONSE_FILE=/u01/app/agent/core/12.1.0.5.0/agent.rsp ACTION=configure MODE=perform COMPONENT_XML={oracle.sysman.top.agent.11_1_0_1_0.xml} RERUN=true
Agent Configuration completed successfully

The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script to run
/u01/app/agent/core/12.1.0.5.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
Agent Deployment Successful.
Agent deployment log location: /u01/app/agent/core/12.1.0.5.0/cfgtoollogs/agentDeploy/agentDeploy_2018-03-26_17-49-59-PM.log
Agent deployment completed successfully.
[oracle@bpmexrac2 tmp]$ /u01/app/agent/core/12.1.0.5.0/root.sh
This script must be run as root
[oracle@bpmexrac2 tmp]$ exit
logout
[root@bpmexrac2 app]# /u01/app/agent/core/12.1.0.5.0/root.sh
Finished product-specific root actions.
/etc exist

Creating /etc/oragchomelist file...
[oracle@bpmexrac2 bin]$ cd /u01/app/agent/agent_inst/bin
[oracle@bpmexrac2 bin]$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 5 
Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.
Agent is already running
[oracle@bpmexrac2 bin]$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 5 
Copyright (c) 1996, 2015 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 12.1.0.5.0
OMS Version : 12.1.0.5.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/agent/agent_inst
Agent Log Directory : /u01/app/agent/agent_inst/sysman/log
Agent Binaries : /u01/app/agent/core/12.1.0.5.0
Agent Process ID : 26923
Parent Process ID : 26755
Agent URL : https://bpmexrac2.biz.jy.neeq.com.cn:3872/emd/main/
Local Agent URL in NAT : https://bpmexrac2.biz.jy.neeq.com.cn:3872/emd/main/
Repository URL : https://bpmDBmonitor:4903/empbs/upload
Started at : 2018-03-26 17:51:28
Started by user : oracle
Operating System : Linux version 2.6.32-573.el6.x86_64 (amd64)
Last Reload : (none)
Last successful upload : 2018-03-26 17:51:41
Last attempted upload : 2018-03-26 17:51:41
Total Megabytes of XML files uploaded so far : 0
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 64.53%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2018-03-26 17:52:32
Last successful heartbeat to OMS : 2018-03-26 17:52:32
Next scheduled heartbeat to OMS : 2018-03-26 17:53:32

---------------------------------------------------------------
Agent is Running and Ready

四、添加RAC監控數據庫

點擊 Target -> Database -> add 添加數據庫配置信息:

若是此方法行不通,可參照:http://www.cnblogs.com/hmwh/p/8649751.html 添加高可用服務,再添加數據庫。

點擊搜索按鈕:

 

 

 

 

 測試鏈接:

同理添加節點2實例2:

 

完成後結果以下:

 







About Me

........................................................................................................................

● 本文做者:小麥苗,部份內容整理自網絡,如有侵權請聯繫小麥苗刪除

● 本文在itpub( http://blog.itpub.net/26736162 )、博客園( http://www.cnblogs.com/lhrbest )和我的weixin公衆號( xiaomaimiaolhr )上有同步更新

● 本文itpub地址: http://blog.itpub.net/26736162

● 本文博客園地址: http://www.cnblogs.com/lhrbest

● 本文pdf版、我的簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/

● 數據庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/

● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826

........................................................................................................................

● QQ羣號: 230161599 (滿) 、618766405

● weixin羣:可加我weixin,我拉你們進羣,非誠勿擾

● 聯繫我請加QQ好友 646634621 ,註明添加原因

● 於 2018-10-01 06:00 ~ 2018-10-31 24:00 在魔都完成

● 最新修改時間:2018-10-01 06:00 ~ 2018-10-31 24:00

● 文章內容來源於小麥苗的學習筆記,部分整理自網絡,如有侵權或不當之處還請諒解

● 版權全部,歡迎分享本文,轉載請保留出處

........................................................................................................................

小麥苗的微店 https://weidian.com/s/793741433?wfr=c&ifr=shopdetail

小麥苗出版的數據庫類叢書 http://blog.itpub.net/26736162/viewspace-2142121/

小麥苗OCP、OCM、高可用網絡班 http://blog.itpub.net/26736162/viewspace-2148098/

小麥苗騰訊課堂主頁 https://lhr.ke.qq.com/

........................................................................................................................

使用 weixin客戶端 掃描下面的二維碼來關注小麥苗的weixin公衆號( xiaomaimiaolhr )及QQ羣(DBA寶典)、添加小麥苗weixin, 學習最實用的數據庫技術。

........................................................................................................................

歡迎與我聯繫

 

 




來自 「 ITPUB博客 」 ,連接:http://blog.itpub.net/26736162/viewspace-2216862/,如需轉載,請註明出處,不然將追究法律責任。

相關文章
相關標籤/搜索