Oracle Enterprise Manager Cloud Control 13c插件部署及监控GoldenGate
1. 架构
2. 部署条件
OracleEnterprise Manager Cloud Control 12c(12.1.0.3及以上版本),本文档使用13.2.1.0.0进行示范;
OracleGoldenGate 11.2.1.0.10 及以上版本
OracleDatabase 11.2.0.1.0 及以上
受监控的主机(Agent所在的主机)要求JDK1.7(JDK 7u80及以上)
如没有使用DNS,在EMCC主机和Aagent 所在主机都需要配置/etc/hosts,如:
10.201.0.191 oem13c.dbexample.com oem13c
10.201.0.135dbtest.dbexample.com dbtest
Oracle建议使用全域名方式来命名主机名,最好遵循Oracle的建议;如果在已运行的主机上未使用全域名方式的主机名,也可以进行继续部署,但部署时会有警告提示;
3. 插件部署
a. 如果EMCC主机可以访问互联网,可以直接下载插件
首先设置My Oracle Support账号:
输入账号和密码,选择“应用”:
选择“设置”->“可扩展性”->“自行更新”,选择“插件”->“检查更新”
生成作业,选择“作业详细信息”:
等待两分钟作业完成:
完成更新后回到“自行更新”界面,选择“插件”,搜索“GoldenGate”,选择对应的版本,选择“下载”
立即下载:
生成作业,选择“作业详细信息”:
等待两三分钟作业完成:
插件部署完成:
b. 如果EMCC主机无法访问互联网,这是大部分情况:
首先设置为“脱机”状态,选择“设置”->“可扩展性”->“自行更新”,点击“联机”:
选择“脱机”,粘贴链接使用可以访问互联网的计算机来下载em_catalog.zip,需要My Oracle Support账号:
上传em_catalog.zip,点击“选择文件”,指定em_catalog.zip,选择“上载”:
上传完成后回到“自行更新”界面,选择“检查更新”:
粘贴链接,使用可以访问互联网的计算机来下载最新的更新目录,需要My Oracle Support账号:
将下载好的压缩文件p9348486_112000_Generic.zip,上传到EMCC主机,然后导入到EMCC中:
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli login -username=sysman -password=welcome1
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli sync
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli import_update_catalog-file=/home/oracle/p9348486_112000_Generic.zip -omslocal
完成导入后,回到“插件”界面,已经更新插件列表 :
搜索“goldengate”,选择相应的goldengate版本,点击“下载”
粘贴链接,使用可以访问互联网的计算机来下载插件,需要My Oracle Support账号:
将下载好的压缩文件上传到EMCC主机,然后导入到EMCC中:
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli login -username=sysman -password=welcome1
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli sync
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli import_update -omslocal-file=p22781255_112000_Generic.zip
也可以通过Oracle官网下载插件:
将下载的压缩文件上传到EMCC主机,
[[email protected]~]$ unzip -d OGG-EM-Plugin-13.2.1.0.0.zip
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli login -username=sysman -password=welcome1
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli sync
[[email protected]~]$ /u01/app/oracle/oms/bin/emcli import_update -omslocal -file=/tmp/13.2.1.0.0_oracle.fmw.gg_2000_0.opar
使用其中一种方式完成导入后,回到“自行更新”的“插件”界面,找到相应的goldengate插件条目,选择“应用”:
选择“确定”:
插件部署完成:
c. 安装插件
在插件部署完成的界面,部署插件到EMCC主机,选中“Oracle GoldenGate”,然后选择“部署位置”->“管理服务器”:
点击“下一步”继续:
先决条件检查,等待检查完成,点击“下一步”继续:
资粮档案库,勾选“是否已备份资料档案库和第一个管理服务器配置”,输入sys用户和密码,点击“下一步”继续:
复查,点击“部署”开始部署插件:
开始部署,点击“显示状态”:
插件部署活动,等待部署完成,大概30分钟左右:
这时OMS已经关闭,需要在EMCC主机上查看部署活动:
[[email protected]~]$ /u01/app/oracle/oms/bin/emctl status oms -details
OracleEnterprise Manager Cloud Control 13c Release 2
Copyright(c) 1996, 2016 Oracle Corporation. Allrights reserved.
EnterEnterprise Manager Root (SYSMAN) Password :
ConsoleServer Host : oem13c.dbexample.com
HTTPConsole Port : 7788
HTTPSConsole Port : 7802
HTTPUpload Port : 4889
HTTPSUpload Port : 4903
EMInstance Home :/u01/app/oracle/gc_inst/em/EMGC_OMS1
OMS LogDirectory Location : /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log
OMS isnot configured with SLB or virtual hostname
AgentUpload is locked.
OMSConsole is locked.
ActiveCA ID: 1
ConsoleURL: https://oem13c.dbexample.com:7802/em
UploadURL: https://oem13c.dbexample.com:4903/empbs/upload
WLSDomain Information
DomainName : GCDomain
AdminServer Host : oem13c.dbexample.com
AdminServer HTTPS Port: 7102
AdminServer is RUNNING
OracleManagement Server Information
ManagedServer Instance Name: EMGC_OMS1
OracleManagement Server Instance Host: oem13c.dbexample.com
WebTieris Down
OracleManagement Server status is down possibly because plug-ins are being deployedor undeployed from it. Use -details option to get more details about theplug-in deployment status.
Plug-inDeployment/Undeployment Status
Destination : Management Server -oem13c.dbexample.com:4889_Management_Service
Plug-inName : Oracle GoldenGate
Version : 13.2.1.0.0
ID : oracle.fmw.gg
Content : Plug-in
Action : Deployment
Status : Deploying
StepsInfo:
----------------------------------------------------------------- ------------------------- ----------
Step Start Time End Time Status
----------------------------------------------------------------- ------------------------- ----------
Submitjob for deployment 18-3-26上午10时35分34秒 CST 18-3-26 上午10时35分34秒 CST Success
Initialize 18-3-26 上午10时35分41秒CST 18-3-26 上午10时37分08秒CST Success
Installsoftware 18-3-26 上午10时37分08秒CST 18-3-26 上午10时37分40秒CST Success
Validateplug-in home 18-3-26 上午10时38分31秒CST 18-3-26 上午10时38分35秒CST Success
Performcustom preconfiguration 18-3-26 上午10时38分35秒CST 18-3-26 上午10时38分35秒CST Success
Checkmandatory patches 18-3-26上午10时38分35秒 CST 18-3-26 上午10时38分36秒 CST Success
Generatemetadata SQL 18-3-26 上午10时38分36秒CST 18-3-26 上午10时38分36秒CST Success
PreconfigureManagement Repository 18-3-26 上午10时38分36秒CST 18-3-26 上午10时38分36秒CST Success
PreregisterDLF 18-3-26 上午10时38分36秒CST 18-3-26 上午10时38分36秒CST Success
Stopmanagement server 18-3-26 上午10时38分42秒 CST 18-3-26 上午10时52分44秒 CST Success
RegisterDLF 18-3-26 上午10时52分45秒CST 18-3-26 上午10时59分31秒CST Success
ConfigureManagement Repository 18-3-26 上午10时52分45秒CST 18-3-26 上午11时05分59秒CST Success
Configuremiddle tier 18-3-26 上午10时52分48秒 CST 18-3-26 上午11时10分43秒CST Success
OPSSjazn policy migration 18-3-26 上午11时10分46秒 CST 18-3-26 上午11时12分31秒 CST Success
Registermetadata 18-3-26 上午11时12分32秒CST 18-3-26 上午11时12分47秒CST Success
Performcustom postconfiguration 18-3-26 上午11时12分47秒CST 18-3-26 上午11时12分47秒CST Success
Updateinventory 18-3-26上午11时12分47秒 CST 18-3-26 上午11时12分51秒 CST Success
Startmanagement server 18-3-26 上午11时12分51秒 CST N/A Running
----------------------------------------------------------------- ------------------------- ----------
BIPublisher Server Information
BIPublisher Managed Server Name: BIP
BIPublisher Server is Down
BIPublisher is disabled, to enable BI Publisher on this host, use the 'emctlconfig oms -enable_bip' command
完成后,“目标”菜单中会出现“GoldenGate”项:
d. 受监控的主机(Agent所在的主机)部署插件
在插件部署完成的界面,部署插件到EMCC主机,选中“Oracle GoldenGate”,然后选择“部署位置”->“管理代理”:
点击“继续”:
选择主机,点击“继续”:
先决条件检查,点击“下一步”:
复查,点击“部署”:
确认界面,等待部署完成,大概2分钟左右:
点击“显示状态”:
4. 监控GoldenGate的配置
a. 配置GoldenGate
i. 配置部署Agent所用的操作系统用户JDK的环境变量
exportJAVA_HOME=<PATH to JDK installation>
exportPATH =$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
ii. Jagent 配置
GGSCI>EDIT PARAMS ./GLOBALS
添加一行:
ENABLEMONITORING
iii. 创建Wallet:
# su -oracle
$ cd ogg
$ ./pw_agent_util.sh-jagentonly
Pleasecreate a password for Java Agent:
Pleaseconfirm password for Java Agent:
Walletis created successfully.
输入两次密码
该密码是为后面的jagent.username创建密码;
iv. 编辑jagent配置文件
$ cd cfg
$ vi Config.properties
修改相应的值为:
agent.type.enabled=OEM
jagent.host=dbtest
jagent.jmx.port=5555
jagent.rmi.port=5559
jagent.username=oracle
jagent.ssl=false
v. 启动GoldenGate
$ ggsci
ggsci>createdatastore
ggsci>infoall
ggsci>startmgr
ggsci>startjagent
ggsci>start *
b. 监控GoldenGate
在EMCC中,选择“设置”->“添加目标”->“配置自动搜索”:
选择受监控主机,点击“搜索模块”:
勾选“GoldenGateDiscovery”,输入相应的值,点击“确定”:
选择受监控主机,点击“立即搜索”,点击“是”继续:
等待搜索完成:
“搜索到的目标”列出现相应的值:
点击“搜索到的目标”列对应主机的值:
选择GoldenGate项,点击“升级”:
点击“Promote”,继续:
等待完成:
选择“目标”->“GoldenGate”,查看对GoldenGate的监控信息:
选择“dbtest:5559”:
选择“Oracle GoldenGate”->“成员”->“拓扑”:
查看GoldenGate的拓扑结构:
至此,EMCC对GoldenGate的监控部署完成。