EMCC 13新增其它主機和資料庫
OMS:新增監控資源
OEMCC監控的主機需要部署對應的agent,官檔描述如下:
Oracle Management Agent (Management Agent) is one of the core components of Enterprise Manager Cloud Control that enables you to convert an unmanaged host to a managed host in the Enterprise Manager system. The Management Agent works in conjunction with the plug-ins to monitor the targets running on that managed host.
我直接在OEMCC上手動新增目標:
起初在被監控的主機上部署agent時,碰到報錯,如下:
報錯資訊文字:
在主機 192.168.1.61 上執行命令 cd /opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM;/opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM/agentDeploy.sh -ignorePrereqs ORACLE_HOSTNAME=192.168.1.61 AGENT_BASE_DIR=/opt/app/scratch/agentHome OMS_HOST=OMS EM_UPLOAD_PORT=4903 AGENT_INSTANCE_HOME=/opt/app/scratch/agentHome/agent_inst b_doDiscovery=false START_AGENT=false b_forceInstCheck=true -force AGENT_PORT=3872 失敗
錯誤訊息: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available. Pass in a valid hostname and port number for the OMS to successfully deploy the agent.
退出程式碼 :1
開始認為是主機間可能有防火牆沒關閉,或者是埠配置不對,進一步根據MOS的一些文件說明:
•EM 12C: Enterprise Manager 12c Cloud Control Agent Silent Installation Fails while Validating OMS Host and Port (文件 ID 1368010.1)
•EM 12c Agent Install fails with ERROR: The Oracle Management Server (OMS) host and port specified via OMS_HOST and EM_UPLOAD_PORT is not available (文件 ID 1524756.1)
首先確認OMS的埠配置正確:
[oracle@OMS ~]$ /u01/app/oracle/product/oem13.2/middleware/bin/emctl status oms -details
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password :
Console Server Host : OMS
HTTP Console Port : 7788
HTTPS Console Port : 7802
HTTP Upload Port : 4889
HTTPS Upload Port : 4903 <<<===== ======== OMS Upload Port is same the port configured at the agent
EM Instance Home : /u01/app/oracle/product/oem13.2/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/product/oem13.2/gc_inst/em/EMGC_OMS1/sysman/log
OMS is not configured with SLB or virtual hostname
Agent Upload is locked.
OMS Console is locked.
Active CA ID: 1
Console URL:
Upload URL:
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : OMS
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: OMS
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server Information
BI Publisher Managed Server Name: BIP
BI Publisher Server is Down
BI Publisher is disabled, to enable BI Publisher on this host, use the 'emctl config oms -enable_bip' command
[oracle@OMS ~]$
檢視日誌發現是這一段之後報錯:
/opt/app/scratch/agentHome/agent_13.2.0.0.0/jdk/jre/bin/java -classpath /opt/app/scratch/agentHome/agent_13.2.0.0.0/jlib/agentInstaller.jar:/opt/app/scratch/agentHome/agent_13.2.0.0.0/oui/modules/OraInstaller.jar oracle.sysman.agent.installer.AgentInstaller /opt/app/scratch/agentHome/agent_13.2.0.0.0 /opt/app/scratch/agentHome/ADATMP_2018-01-23_13-38-45-PM /opt/app/scratch/agentHome $args -prereq
Validating the OMS_HOST & EM_UPLOAD_PORT has failed
根據文件1368010.1的思路排查:
1). OMS status
[oracle@OMS ~]$ $OMS_HOME/bin/emctl status oms
Oracle Enterprise Manager Cloud Control 13c Release 2
Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
WebTier is Up
Oracle Management Server is Up
JVMD Engine is Up
BI Publisher Server is Down
BI Publisher is disabled, to enable BI Publisher on this host, use the 'emctl config oms -enable_bip' command
OMS is ok.
2). ping OMS
[oracle@jystdrac1 ADATMP_2018-01-23_13-38-45-PM]$ ping OMS
ping: unknown host OMS
[oracle@jystdrac1 ADATMP_2018-01-23_13-38-45-PM]$ ping 192.168.1.88
PING 192.168.1.88 (192.168.1.88) 56(84) bytes of data.
64 bytes from 192.168.1.88: icmp_seq=1 ttl=64 time=1.37 ms
64 bytes from 192.168.1.88: icmp_seq=2 ttl=64 time=0.615 ms
配置/etc/hosts,增加:
#OMS
192.168.1.88 OMS
3).
wget http://192.168.1.88:4903/empbs/genwallet
or
wget https://192.168.1.88:4903/empbs/genwallet
wget
[oracle@jystdrac1 ~]$ wget
--2018-01-23 16:02:03--
Resolving oms... 192.168.1.88
Connecting to oms|192.168.1.88|:4903... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2018-01-23 16:02:04-- (try: 2)
Connecting to oms|192.168.1.88|:4903... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
--2018-01-23 16:02:06-- (try: 3)
Connecting to oms|192.168.1.88|:4903... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
^C
4).
再次嘗試重新部署agent成功。
在OEMCC上部署agent(推送方式)步驟截圖如下:
最後就可以在OEMCC上直觀看到該主機的相關監控資料:
至此,我們就熟悉了OEMCC 13.2 的整體安裝、部署、配置agent等基本操作,後續就可以在這個環境下逐漸深入學習並感受OEMCC的強大功能了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2217130/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 19C+13.4EMCC資料庫監控Oracle資料庫
- Oracle 19C+13.4EMCC主機監控Oracle
- 12、Oracle中的其它資料庫物件Oracle資料庫物件
- MongoDB在不同主機間複製資料庫和集合MongoDB資料庫
- mysql資料庫新增和修改欄位MySql資料庫
- IndexedDB 資料庫新增資料Index資料庫
- SRVCTL 刪除和新增資料庫服務資料庫
- BlueHost美國主機如何建立資料庫資料庫
- BlueHost主機支援哪些資料庫型別?資料庫型別
- 手動刪除EMCC13C的 Repository DatabaseDatabase
- SQLServer批量新增資料庫SQLServer資料庫
- mysql資料庫的主從複製和主主複製實踐MySql資料庫
- mybatis入門程式:向資料庫中新增使用者&&自增主鍵和非自增主鍵的返回MyBatis資料庫
- 資料庫管理-第145期 最強Oracle監控EMCC深入使用-02(20240205)資料庫Oracle
- 1.2.11. 任務11: 回滾到其它主機
- 2.4.14 Step 13: 備份資料庫資料庫
- redis-13.資料庫通用指令Redis資料庫
- indexedDB 資料庫主鍵Index資料庫
- 如何用flask在資料庫新增資料Flask資料庫
- PHP中CakePHP新增資料庫PHP資料庫
- 圖資料庫在主機安全的應用探索資料庫
- 虛擬主機資料庫與空間關係資料庫
- GBase XDM(單機/分片叢集)資料庫 新增記錄資料庫
- 13、資料,學習和建模
- mysql8.0資料庫新增使用者和授權MySql資料庫
- Zabbix 4.0 API 實踐,主機/主機群組 批量新增模板和刪除模板API
- MySQL8.0.18資料庫新增資料檔案MySql資料庫
- 13_深入解析Oracle資料庫bootstrapOracle資料庫boot
- 13 使用SQL Apply 升級資料庫SQLAPP資料庫
- MacOS使用Docker建立MySQL主主資料庫MacDockerMySql資料庫
- 二次開發連線區域網其它資料庫資料庫
- 資料庫主機重啟卡住問題處理分享資料庫
- 資料庫主從複製資料庫
- mysql主從資料庫配置MySql資料庫
- [資料庫]MYSQL主從同步資料庫MySql主從同步
- 新增時--sqlserver資料庫跟蹤SQLServer資料庫
- MySQL 5.7主從新增新從庫MySql
- 記一次資料庫遷移到rac11204資料庫連線scan找不到主機資料庫