1. OEM通信原理图
上图中使用的约定如下:
Convention | Description |
---|---|
C | 发出呼叫的实体。 |
* | 企业管理器(EM)将默认为企业管理器设置范围内的第一个可用端口。 |
** | EM 将默认为第一个可用端口。 |
*** | 数据库侦听器端口。 |
2. 查看OMS详细信息
~]$
cd /u01/app/oracle/middleware/bin
./emctl status oms -details
以下内容为输出信息:
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
Enter Enterprise Manager Root (SYSMAN) Password : 在此输入SYSMAN的密码
Console Server Host : dbOracleLzuData.hz571
HTTP Console Port : 7788
HTTPS Console Port : 7803
HTTP Upload Port : 4889
HTTPS Upload Port : 4903
EM Instance Home : /u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS Log Directory Location : /u01/app/oracle/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: https://dbOracleLzuData.hz51:7803/em
Upload URL: https://dbOracleLzuData.hz51:4903/empbs/upload
WLS Domain Information
Domain Name : GCDomain
Admin Server Host : dbOracleLzuData.hz51
Admin Server HTTPS Port: 7102
Admin Server is RUNNING
Oracle Management Server Information
Managed Server Instance Name: EMGC_OMS1
Oracle Management Server Instance Host: dbOracleLzuData.hz51
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 Up
BI Publisher HTTP Managed Server Port : 9701
BI Publisher HTTPS Managed Server Port : 9803
BI Publisher HTTP OHS Port : 9788
BI Publisher HTTPS OHS Port : 9851
BI Publisher is locked.
BI Publisher Server named 'BIP' running at URL: https://dbOracleLzuData.
------------
:9851/xmlpserver/servlet/home
BI Publisher Server Logs: /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/
BI Publisher Log : /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/servers/BIP/logs/bipublisher/bipublisher.log
3. 查看agent详细信息
~]$
cd /u01/app/oracle/agent/agent_13.3.0.0.0/bin
./emctl status agent -details
以下为输出的内容:
Oracle Enterprise Manager Cloud Control 13c Release 3
Copyright (c) 1996, 2018 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 13.3.0.0.0
OMS Version : 13.3.0.0.0
Protocol Version : 12.1.0.1.0
Agent Home : /u01/app/oracle/agent/agent_inst
Agent Log Directory : /u01/app/oracle/agent/agent_inst/sysman/log
Agent Binaries : /u01/app/oracle/agent/agent_13.3.0.0.0
Core JAR Location : /u01/app/oracle/agent/agent_13.3.0.0.0/jlib
Agent Process ID : 25472
Parent Process ID : 25350
Agent URL : https://dbOracleLzuData.hz51:3872/emd/main/
Local Agent URL in NAT : https://dbOracleLzuData.hz51:3872/emd/main/
Repository URL : https://dbOracleLzuData.hz51:4903/empbs/upload
Started at : 2021-09-08 17:45:07
Started by user : oracle
Operating System : Linux version 4.14.35-1844.2.5.el7uek.x86_64 (amd64)
Number of Targets : 36
Last Reload : (none)
Last successful upload : 2021-09-08 18:30:12
Last attempted upload : 2021-09-08 18:30:12
Total Megabytes of XML files uploaded so far : 0.1
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0
Available disk space on upload filesystem : 26.61%
Collection Status : Collections enabled
Heartbeat Status : Ok
Last attempted heartbeat to OMS : 2021-09-08 18:30:28
Last successful heartbeat to OMS : 2021-09-08 18:30:28
Next scheduled heartbeat to OMS : 2021-09-08 18:31:28
---------------------------------------------------------------
Agent is Running and Ready
4. OMS 日志文件
oem的运行日志主要记录在$ORACLE_BASE/gc_inst
目录下。
$<ORACLE_BASE>/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log, emoms.trc, emoms_pbs.trc
$<ORACLE_BASE>/gc_inst/user_projects/domains/GCDomain/servers/EMGC_ADMINSERVER/logs/EMGC_ADMINSERVER.out
$<ORACLE_BASE>/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/logs/EMGC_OMS1.out
$<ORACLE_BASE>/gc_inst/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/EMGC_OMS1.log
<EM_INSTANCE_BASE>/user_projects/domains/<domain_name>/servers/<SERVER_NAME>/logs/access.log
<EM_INSTANCE_BASE>/user_projects/domains/<domain_name>/servers/<SERVER_NAME>/logs/<SERVER_NAME>-diagnostic.log