一、GC agent安装

下面介绍GC agent的push和pull两种安装方法

1、push(推送)安装GC agent方法

  1)、打开EMGC home page:https://even.oracle.com:7799/em/

  登录EMGC 密码/账号:sysman/oracle12

  Click "Deployments" - >
  -> Click Agent Installation "Install Agent" - >
  -> Click "Fresh Install" - >
  -> Source Shiphome Directory = "Default, from Management Server location."->
  -> Version = "11.1.0.1.0" - > "
  -> Platform = "Linux x86" - >"
  -> Provide Host List = "odd.oracle.com" - >
  -> Username = oracle - >
  -> Password = **** ->
  -> Deselect "Run root.sh" (待完成后手工执行) ->
  -> Installation Base Directory = "/u01/app/oracle/middleware" -> 注: 安装时将自动建立此目录
  -> Port = 3872 - >
  -> Management Server Registration Password = **** -> (本例: oracle12)
  -> Confirm Password = **** ->
  -> Click "Continue" - >
  -> Deselect "I wish to receive security updates via My Oracle Support."->
  -> Click "Submit" - >
  -> Click "Yes" ->
  -> wait for installation completed -> Click "Done"

  2)、root用户执行以下脚本

  /u01/app/oracle/middleware/agent11g/root.sh

  3)、agent安装完成之后,可以查看各个target的状态。

  可以看到DB PROD1和PROD2的status显示为未知,这里需要我们手工配置。

2、pull(拉)安装GC agent

$wget --no-check-certificate https://even.oracle.com:7799/agent_download/11.1.0.1.0/linux/agentDownload.linux

给agentDownload.linux文件添加执行权限

chmod 775 agentDownload.linux

安装GC agent,-b指定安装目录,-y表示默认为yes,密码为安装EMGC时设置的密码。

./agentDownload.linux -b /u01/app/oracle/middleware -y

agent安装完成后,查看agent状态

[oracle@odd- stage]$ emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent Version : 11.1.0.1.0
OMS Version : 11.1.0.1.0
Protocol Version : 11.1.0.0.0
Agent Home : /u01/app/oracle/middleware/agent11g
Agent binaries : /u01/app/oracle/middleware/agent11g
Agent Process ID : 1747
Parent Process ID : 1693
Agent URL : https://odd.oracle.com:3872/emd/main/
Repository URL : https://even.oracle.com:4900/em/upload
Started at : 2018-11-26 15:31:52
Started by user : oracle
Last Reload : 2018-11-26 15:31:52
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 19
Size of XML files pending upload(MB) : 18.02
Available disk space on upload filesystem : 73.15%
Last successful heartbeat to OMS : 2018-11-26 15:32:00
---------------------------------------------------------------
Agent is Running and Ready

root用户执行脚本:/u01/app/oracle/middleware/agent11g/root.sh

agent安装文成。

二、GC agent卸载

1、停止运行GC agent

[oracle@odd- bin]$ emctl stop agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
Stopping agent ... stopped.

[oracle@odd- bin]$ emctl status agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
Agent is Not Running

2、在EMGC删掉所有关于client host的target

EMGC home page ---> targets ---> all targets

按以下 Target Type 次序(不按次序将有错误提示), 逐个 remove client 相关的全部 target。
 Listener
 Database Instance
 +ASM, High Availability Service(HAS)
 Host
 Agent

以上为listener target的删除示范,按照这个方法将其余关于client host的target全部删掉。

3、运行卸载程序

target全部删掉之后即可运行GC agent的卸载程序

$ /u01/app/oracle/middleware/agent11g/oui/bin/runInstaller

4、删除GC agent环境

#vi /etc/oratab

*:/u01/app/oracle/middleware/agent11g:N
PROD2:/u01/app/oracle/product/11.2.0/dbhome_1:N # line added by Agent
PROD1:/u01/app/oracle/product/11.2.0/dbhome_1:N # line added by Agent

将红色字体的agent相关信息删去。

5、删除agent的安装目录

rm -rf $AGENT_HOME

至此agent删除完成。

GC agent的安装和卸载的更多相关文章

  1. 第四课 Grid Control实验 GC Agent安装(第一台机器部署) 及卸载

    3.GC Agent安装(第一台机器部署) 安装Agent 拷贝agent,现在ocm2机器上查找agent.linux  查找文件的方法: find ./ -name agent*linux 把ag ...

  2. OCM_第五天课程:Section2 —》AGENT 的安装 、GC 的使用

    注:本文为原著(其内容来自 腾科教育培训课堂).阅读本文注意事项如下: 1:所有文章的转载请标注本文出处. 2:本文非本人不得用于商业用途.违者将承当相应法律责任. 3:该系列文章目录列表: 一:&l ...

  3. Oracle9i的详细安装与卸载步骤(有图解)

       Oracle9i的安装和卸载详解      本章将以Windows操作系统为例讲述Oracle9i数据库的安装                                           ...

  4. C#创建、安装、卸载、调试Windows Service(Windows 服务)的简单教程

    前言:Microsoft Windows 服务能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面.这 ...

  5. 教你一招:解决win10/win8.1系统在安装、卸载软件时出现2502、2503错误代码的问题

    经常遇到win10/win8.1系统在安装.卸载软件时出现2502.2503错误代码的问题. 解决办法: 1.打开任务管理器后,切换到“详细信息”选项卡,找到explore.exe这个进程,然后结束进 ...

  6. Android随笔之——静默安装、卸载

    随笔之所以叫随笔,就是太随意了,说起来,之前的闹钟系列随笔还没写完,争取在十月结束之前找时间把它给写了吧.今天要讲的Android APK的静默安装.卸载.网上关于静默卸载的教程有很多,更有说要调用隐 ...

  7. Zabbix3 agent端安装(二)

    1.基础环境准备 安装zabbix的yum源,这里有必要提一点,阿里的yum源已经提供了zabbix3.0 1.1.yum源配置 rpm -ihv http://mirrors.aliyun.com/ ...

  8. Windows服务安装与卸载

    Windows服务安装与卸载,使用到了InstallUtil.exe 安装: c: cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319&quo ...

  9. Windows服务一:新建Windows服务、安装、卸载服务

    Windows 服务(即,以前的 NT 服务)使您能够创建在它们自己的 Windows 会话中可长时间运行的可执行应用程序.这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面 ...

随机推荐

  1. Mysql预处理语句prepare、execute、deallocate

    前言 做CTF题的时候遇到的所以参考资料学习一波.... MySQL的SQL预处理(Prepared) 一.SQL 语句的执行处理 1.即时 SQL 一条 SQL 在 DB 接收到最终执行完毕返回,大 ...

  2. 面试阿里,字节跳动,华为必须知道的Java创建对象的5种方式

    Java创建对象的5种方式 1.直接new,调用了构造器2.通过clone(),没有调用构造器3.通过反射,调用了构造器4.通过反序列化,没有调用构造器5.通过Unsafe类的allocateInst ...

  3. FL Studio中的Fruity slicer采样器功能介绍

    本章节采用图文结合的方式来给大家介绍电音编曲软件FL Studio中的Fruity Slicer采样器的功能,感兴趣的朋友可一起来交流哦. Fruity slicer(水果切片器)插件是FL Stud ...

  4. 使用Camtasia给视频课件添加自动聚焦的效果

    随着现在抖音与微课市场的大火,原来可能只是因为兴趣爱好而剪辑制作了一些视频为爱发电,现在却完全可以当作一个事业来做了. 但是课件录制的时候,大部分的录制屏幕软件都是全屏或者固定屏幕大小录制的,有些小细 ...

  5. mathtype样式系统使用技巧-通过样式定义来更改方程中的字体

    本教程中,我们主要介绍MathType Desktop的样式系统.演示如何通过更改样式定义来更改方程中的字体.通过样式可以快速轻松地实现我们所需的公式格式,并统一所有公式的样式. 我们以如下公式来作为 ...

  6. 电脑adb命令给智能电视安装APK

    配置环境 1.电脑需要配置好adb系统环境 具体操作较复杂,请自行百度. 2.电视打开adb命令 在电视的关于界面通过遥控器「上上下下左右左右」进入工厂模式,在「高级设置」-「其他」中的「adb开关」 ...

  7. Leetcode 周赛#201 题解

    1545 找出第N个二进制字符串的第K位 #分治 题目链接 题意 给定正整数\(n(\leq 20)\)与\(k\),二进制串\(S_n\)形成规则有: \(S_1 = "0"\) ...

  8. Mybatis【2.2】-- Mybatis关于创建SqlSession源码分析的几点疑问?

    代码直接放在Github仓库[https://github.com/Damaer/Mybatis-Learning ],可直接运行,就不占篇幅了. 目录 1.为什么我们使用SQLSessionFact ...

  9. GraphicsLab 之 Atmospheric Scattering (二)

    作者:i_dovelemon 日期:2020-11-25 主题:Atmospheric Scattering, Volume Scattering, Rayleigh Scattering, Mie ...

  10. .NET Core/.NET 5.0 析构函数依然有效?

    前言 最近看到小伙伴在.NET Core中用到了析构函数,不禁打一疑问,大部分情况下,即使在.NET Framework中都不会怎么用到析构函数,我想在.NET Core中是否还依然有效呢?随着时间推 ...