1.OEM架构
- Management repository:存储要监控的数据库的管理数据及状态信息。
- OMS管理服务:监控和管理安装了management agent的数据库,并将获得的管理信息存入management repository。
- Oracle HTTP Server:内置的apache服务器。
- OC4J/J2EE:符合J2EE标准的应用服务器。
- Oracle web cache:用于快速访问web。
- Management agent:安装在被管理的数据服务器上,用于监控数据库的运行状态,资源使用,信息变更等,将信息转送到OMS,OMS将这些信息存入repository。
2. 环境与版本
2.1. oem版本
~]$
/u01/app/oracle/middleware/bin/emctl getversion oms
2.2. repository数据库版本
Oracle 12.2.0.1.0
2.3. OMS目录结构
3. 启动
3.1. 启动repository数据库
3.2. 启动OMS服务
~]$
export OMS_HOME=/u01/app/oracle/middleware
/u01/app/oracle/middleware/bin/emctl stop oms -all -force
/u01/app/oracle/middleware/bin/emctl start oms
3.3. 启动agent 服务
~]$
cd /u01/app/oracle/agent/agent_13.3.0.0.0/bin
./emctl start agent
3.4. emctl start OMS启动失败时必须先检查以下事项。
- emctl is executed from the correct OMS home
-
emctl file size is not zero bytes. If it is zero bytes refer Note 1404623.1:How to Recreate the emctl Script for the Enterprise Manager OMS
-
Repository database and listener are up
-
SYSMAN connectivity to repository db is successful (Refer Note 1448007.1 How to Verify the Connectivity from 12c OMS to Repository Database using rcuJDBCEngine)
-
SYSMAN related users acccount status in the repository database is 'open'
SQL>
select username,account_status from dba_users where username like 'SYSMAN%' order by username;
- No invalid objects exist for sysman related users (refer Use Case 2 in Note 1683050.1: OMS Failed to Start With Error 'Oracle Management Server is Down. Console may not be up')
-
Repository database table space is not full (alert log file does not have table space full errors)
-
Enough space is available for the repository database archive logs
-
Restart database and listener
参考:MOS:(Doc ID 1495519.1):https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=265055542760121&id=1495519.1&_afrWindowMode=0&_adf.ctrl-state=1d47lvpa65_4