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。
1、server参数配置参照:http://www.cnblogs.com/hmwh/p/8649751.html
2、agent参数配置参照:http://www.cnblogs.com/hmwh/p/8649751.html
3、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
4、添加RAC监控数据库
点击 Target -> Database -> add 添加数据库配置信息:
如果此方法行不通,可参照:http://www.cnblogs.com/hmwh/p/8649751.html 添加高可用服务,再添加数据库。
点击搜索按钮:
测试连接:
同理添加节点2实例2:
完成后结果如下:
Oracle 12c(12.1.0.5) oem agent silent install(静默安装agent)的更多相关文章
- ORACLE RAC 11.2.0.4 CentOS release 6.9 静默安装1.0版本
RAC11.2.0.4静默安装 1.0版本,20180613 #本文档IP地址使用X隐藏,个人可按照自己的当前环境IP进行适当修改 1. 清除原环境中的单实例软件 #清除原环境: 删除/etc/ora ...
- oracle 12c 12.1.0.2.0 BUG 22562145
Wed May 23 17:46:14 2018TT01: Standby redo logfile selected for thread 1 sequence 42251 for destinat ...
- oracle之 12.1.0.1.0 C 在 linux 7 上安装报错处理
环境说明:-- os[root@host-172-16-3-132 ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) - ...
- ORACLE官方全托管驱动 Oracle.ManagedDataAccess 12.1.0.1.0
以前用Oracle的时候,必须得装他臃肿的客户端,网上虽然也有提供直连Oracle的驱动,但也是要收费的,最近Oracle终于开窍了,提供了官方的全托管驱动. 这次是随Oracle ODAC 12c ...
- LRM-00109: could not open parameter file '/u01/app/oracle/product/12.1.0/db_1/dbs/initepps.ora'
安装好oracle后,起动时报如下错误: [oracle@Oracle-A ~]$ export ORACLE_SID=ORCL [oracle@Oracle-A ~]$ sqlplus / as s ...
- 【Service】【Database】【Oracle】Oracle client 12.1.0.2 for MacOS
1. 概述:为了在我的macos上搭建python的cx_Oracle开发环境,首先需要配置oracle client 2. 环境与版本: 2.1. OS:Mac OS Sierra 10.12.2 ...
- Oracle 11g RAC for LINUX rhel 6.X silent install(静默安装)
一.前期规划 1.硬件环境 CPU: Intel(R) Xeon(R) CPU E7-4820 v4 @ 2.00GHz 8*10核 内存:512GB OCR:2147*5 MB DATA1:2TB ...
- [转帖]在VirtualBox Linux 7u2 中安装Oracle RAC 12.2.0.1.0
https://xiaoyu.blog.csdn.net/article/details/81980936
- Oracle 12c 单实例安装
准备工作 实验环境:Redhat 6.6 Oracle 12c 12.2.0.1 1.官网下载 https://www.oracle.com/technetwork/database/enterp ...
随机推荐
- ARM架构
ARM架构(过去称作进阶精简指令集机器(Advanced RISC Machine),更早称作Acorn RISC Machine)是一个32位元精简指令集(RISC) 中央处理器(processor ...
- Android之PendingIntent的深入理解
PendingIntent字面意义:等待的,未决定的Intent.要得到一个pendingIntent对象,使用方法类的静态方法 getActivity(Context, int, Intent, i ...
- 使用WebApiClient请求和管理Restful Api
前言 本篇文章的内容是WebApiClient应用说明篇,如果你没有了解过WebApiClient,可以先阅读以下相关文章: WebApi client 的面向切面编程 我来给.Net设计一款Http ...
- java中回调函数的理解
一,案例一 "通常大家说的回调函数一般就是按照别人(李四)的定好的接口规范写,等待别人(张三)调用的函数,在C语言中,回调函数通常通过函数指针来传递:在Java中,通常就是编写另外一个类或类 ...
- JS对select动态添加options操作(主流浏览器兼容)
之前项目中,遇到一个表单提交的页面,里面有多级下拉框联动的复杂逻辑,因此当时在做的过程中也是学到了不少容易出现问题的地方,下面就整理下当时遇到的一些关于下拉框的操作,并指出其中的一些注意点和坑: 有如 ...
- 又把JDK改回JDK1.8的过程
我已经在崩溃的边缘. 先在控制面板卸载9.0.4,非常好,卸的干干净净的. 然后继续卸载9.0.1,也很好,卸的很干净. 命令行: 安装JDK1.8 装完了,去配环境变量: 4个环境变量都配齐了. J ...
- 【BZOJ3930】选数(莫比乌斯反演,杜教筛)
[BZOJ3930]选数(莫比乌斯反演,杜教筛) 题面 给定\(n,K,L,R\) 问从\(L-R\)中选出\(n\)个数,使得他们\(gcd=K\)的方案数 题解 这样想,既然\(gcd=K\),首 ...
- [Luogu2852][USACO06DEC]牛奶模式Milk Patterns
Luogu 一句话题意 给出一个串,求至少出现了\(K\)次的子串的最长长度. sol 对这个串求后缀数组. 二分最长长度. 如果有\(K\)个不同后缀他们两两的\(lcp\)都\(>=mid\ ...
- Scala编程快速入门系列(一)
目 录 一.Scala概述 二.Scala数据类型 三.Scala函数 四.Scala集合 五.Scala伴生对象 六.Scala trait 七.Actor 八.隐式转换与隐式参数 九.Sca ...
- Django 2.0 学习(01):Django初识与安装
Django(Python Web框架) Django是一个开放源代码的Web框架,用Python写的.采用了MTV的框架模式,即模型M,模板T和视图V.它最初被开发是用来管理以新闻内容为主的网站,即 ...