zoukankan      html  css  js  c++  java
  • Grid Control安装和Deployment agent

    环境:

    主机名 IP地址 Instance Name 作用
    gc.origtec.om 10.10.10.135 oms oms
    third.origtec.com 10.10.10.136 oma agent

    jdk:jdk1.6.0.18

    Weblogic:10.3.2.0

    GC:11.1.0.1 x86

    DB:11.2.0.3 x86

    1.gc.origtec.com主机上安装DB

    oracle账号下~/.bash_profile

    image

    /etc/hosts文件

    image

    监听要建起来(我创建了linster.ora,tnsnames.ora)

    2.third.origtec.com主机上安装DB

    oracle账号下的~/.bash_profile

    image

    /etc/hosts文件

    image

    监听要建起来(我创建了linster.ora,tnsnames.ora)

    3.gc.origtec.com上安装JDK

    image

    image

    image

    image

    4.gc.origtec.com上安装Weblogic

    image

    init 3 然后 init 5后

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    汗,好像我用了root账号执行了,先试吧,大不了到最后确定这是错误的。

    5.在gc.origtec.com上安装GC

    首先把EM卸载掉(其他的还有要求,等报错时再改也来得及)

    image

    image

    image

    image

    image

    image

    image

    这儿会报错,可能是因为上面的我用root执行weblogic的原因,我使用chown –R oracle /u01/app/oracle/Middleware

    走一步算一步,怀着侥幸的心理继续往下吧

    image

    密码全部设成oracle123

    image

    image

    报错了,根据配置的不同,所报的错误可能不只这两个

    image

    image

    监听重启下

    image

    image

    image

    image

    image

    image

    image

    image

    image

    OMS Home、Agent Home、Webtier Home等我们添加到bash_profile里

    image

    image

    image 

    image

    image

    image

    6.分发agent

    gc.origtec.com的/etc/hosts要添加third.origtec.com的信息

    image

    同样third.origtec.com的/etc/hosts要添加gc.origtec.com的信息

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    image

    Error

    Following paths are incorrect or not defined in the following hosts.
    Path: /usr/local/bin/sudo(SUDO_PATH) on host 10.10.10.136

    Check the property values in the following files in this order, ssPaths_<plat>.properties or sPaths.properties or Paths.properties in <INSTANCE_HOME>/sysman/prov/resources directory. The <INSTANCE_HOME> location is /u01/app/oracle/gc_inst/em/EMGC_OMS1 .
    For more details look at the Install Guide

    image

    image

    在gc.origtec.com下找ssPaths_<plat>.properties、sPaths.properties、Paths.properties

    image

    image

    image

    ssPaths_<plat>.properties没有对应的平台

    image

    Error

    The "requiretty" flag is set in the sudoers file on the following nodes and hence the application will not be able to run sudo over ssh.
    Hosts : 10.10.10.136
    Disable the "requiretty" flag in the sudoers file.

    这个在third.origtec.com(10.10.10.136)上修改,visudo

    image

    image

    Error

       1. Provide Host List - User not enabled for sudo on one or more of the remote nodes. : 10.10.10.136
       2. Either the user does not have root access on the remote nodes or the user is not enabled to run shell /bin/sh using sudo

    这个报错,我早就预知了

    image

    image

    image

    image

    image

    image

    image

    image

    8.遇到其他一些错误的截图及原因

    image

    这个是gc.origtec.com主机上的监听没有启动

    QQ截图20160406171739

    The Management Server cannot be reached from the target node via HTTP(S)

    要分发agent到的client server的iptables没关;后来关闭了好像还是不行,把oms的/etc/hosts和agent的/etc/hosts添加彼此的主机信息,就ok了。

    (插个广告,用Google搜索比Baidu牛*,Baidu搜出来的是一地牛毛)

    QQ截图20160406201544

    这个报错忘记了,估计还是visudo的问题。

    以上使用的origtec.com域名,拥有者是苏州溯源天成信息技术服务有限公司。

  • 相关阅读:
    Python3 session实现带密码访问网站后台
    Python3实现利用url请求百度翻译
    Python3 parse模块
    Python3 requests模块
    Nignx gzip 文件压缩
    Cnetos7 Yum安装Ningx
    喜极而泣,我终于学会了Nginx!
    Centos7 给磁盘创建Lvm虚拟盘
    Pyhton Tkinter图形工具(原创)
    nginx四种均衡策略
  • 原文地址:https://www.cnblogs.com/cnmarkao/p/5364061.html
Copyright © 2011-2022 走看看