ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Install Oracle Enterprise Manager Grid Control 10.2.0.4 on Linux AS4.5

Install Oracle Enterprise Manager Grid Control 10.2.0.4 on Linux AS4.5

原创 Linux操作系统 作者:jiuniang012 时间:2009-07-17 14:35:46 0 删除 编辑
一、 概述
     Grid Control网格控制是为整个Oracle IT架构提供中心化监视、管理、生命周期管理功能的系统管理软件。包含Oracle系统和非Oracle系统。在你的企业架构中也许有很多数据库,中间件,应用程序,当然你可以为每个产品安装一个控制监视台,但对于大的复杂环境来说显然这样的工作量很大和效果不好。

二、Grid Control 架构
 网格控制包含三个组件:
 1). Oracle Management Service (OMS)
    2). Oracle Management Agent (Management Agent)
    3). Oracle Management Repository (Management Repository)

    OMS就好比是Grid Control架构里的大脑,负责和OMA和中央的存储信息的OMR通信。OMA就好比手和脚,负责从被监视的目标里收集信息并传输给OMS。OMR被配置为中央存储系统,专门用于存储收集来的信息。

三、安装前的准备工作
  在安装前必须做一些准备工作:
  1). 检查目标系统是不是支持的平台。比如:10.2.0.1是release版本,支持AIX 5L(不支持AIX6),但是现在要安装10.2.0.4到认证了的平台AIX6,并且需要先安装10.2.0.1然后打补丁到10.2.0.4。这样先安装10.2.0.1时就会报不支持的平台错误。这在metalink上有解决方法。
  2). 安装包,32-bit的只能在32-bit的平台上安装,64-bit的必须在64-bit平台上安装。
  3). 安装存储库时,提供两种选项:一个安装到存在的数据库,一个新安装一个数据库作为存储库。
   如果是选项一:那么需要考虑存在数据库的版本是否符合要求,参数是否满足要求,是否已经配置了control控制台,如果是必须先卸载,某些包是否存在等。
   如果是选项二:那么默认安装的数据库版本是10.1.0.4,如果升级Grid Control到10.2.0.4那不会自动升级该数据库,必须手工升级到10.2.0.4以上版本。
   对于不同的安装方法下文将会介绍。
  4).接下来还需要检查系统包、内核安全参数、空间、内存等,具体见附件
  5).Grid Control有密码策略:密码必须5到30个字符长、不能和用户名一样、必须包含要么全小写要么全大写的字母、至少要一个字母一个数字和一个特殊字符(如下划线)、密码不能为Oracle的保留字。
   如果想改默认的密码: ORACLE_HOME/bin/emctl set password
  6). Grid ControlSchema用户需要在UTL_FILE包上有执行权限
    SQL> grant execute on utl_file to sysman;
        7). 尽量使用静态的IP和主机名
  8). 其它的所需要的用户和组基本和创建数据库一样:Group----oinstall, dba, oper, user----oracle, nobody

四、安装Grid Control version10.2.0.4
        安装10.2.0.4之前必须先安装10.2.0.1,因此需要两个安装包。
  选项一:安装到存在的数据库
  这里我选择安装到存在的数据库11.1.0.6上。
  
Note: Before proceeding with the silent install change the port of ONS from database home $ORACLE_DB_HOME/opmn/conf/ons.config to 6004 or 6003 (or other unused non-default port for the OMS, 6001), and restart the database.

Note:

Example filepaths are used below. Actual filepaths should be substituted for the actual procedure.

$ORACLE_HOME:   repository databse Oracle Home filepath.

:   grid control extracted installation stage filepath, may taake a variety of forms, depending on the source being used.

:   OMS Oracle Home filepath, i.e., /u01/app/oracle/oms10g.

:   10.2.0.4 Grid Control patchset extracted installation stage filepath, i.e., /u02/gcpatch/3731593/Disk1.

:   filepath of the parent directory to be used for the OMS and agent.

Step 1: 

Upgrade the 10.1.0.4.0 database to 10.1.0.5.0 by applying the Patch 4505133, if it is desired to upgrade or patch the repository database later on. Note that only these versions are supported for this procedure at this time.

Step 2:

Edit the following parameters (example shown) of em_using_existing_db.rsp
Located under the /response/  

Parameter =              “ Value”
===========               ======
s_operGroup             ="dba"
UNIX_GROUP_NAME         ="dba"
FROM_LOCATION           ="/u02/grid_control/Disk1/oms/Disk1/stage/products.xml"
BASEDIR                 ="/u01/app/oracle"
INSTALLATION_NAME       ="Silent Install"
s_reposHost             =""
s_reposPort             ="1521"
s_reposSID              ="emrep"
s_reposDBAPwd           ="oracle1"
s_mgmtTbsName           ="/u01/app/oracle/oradata/emrep/mgmt.dbf"
s_ecmTbsName            ="/u01/app/oracle/oradata/emrep/mgmt_ecm_depot1.dbf"
s_securePassword        ="oracle1"
s_securePasswordConfirm ="oracle1"
s_reposPwd              ="oracle1"
s_reposPwdConfirm       ="oracle1"

 

Note: If the database is already configured with Database Control, then it must be deconfigured before continuing the installation of Grid Control.

 

cd $ORACLE_HOME/bin
emca -deconfig dbcontrol db -repos drop


For the RAC cluster database, use this command.

cd $ORACLE_HOME/bin
emca -deconfig dbcontrol db -repos drop -cluster


Step 3:

Now Install the Grid Control Base version 10.2.0.1 for 32-bit Linux using silent install option with using “em_using_existing_db.rsp” response file.

Step 4:

cd
runInstaller -noconfig -silent -ignoreSysPrereqs -responseFile /response/em_using_existing_db.rsp -force


After successful installation of the base version run the scripts recommended by installer as a user root.

/allroot.sh


Step 5:

The OMS should not be started at this point.

Stop the opmn processes which may be running as follows:

cd /opmn/bin
./opmnctl stopall


Edit the parameters in the10.2.0.4 patchset.rsp located under the directory
//Disk1/response/patchset.rsp:

Parameter =        “ Value” 
===========        ====== 
UNIX_GROUP_NAME    ="dba" 
ORACLE_HOME        =”” 
b_softwareonly     =true 
FROM_LOCATION      =”/Disk1/stage/products.xml” 
s_sysPassword      =”oracle1” 
s1_pwdInfo         =”oracle1”

By using the following command, the installer will start the installation of the 10.2.0.4 patchset to the OMS home:

runInstaller -noconfig -silent -responseFile /Disk1/response/patchset.rsp -force

Step 6:

Now after patching OMS home, use the same response file to patch the Agent home. Change the ORACLE_HOME parameter to the filepath for the Agent Home in the patchset.rsp file. Leave all other parameters in place:

ORACLE_HOME=”/agent10g”

After making changes to patchset.rsp re run the command for patching Agent Home.

./runInstaller -noconfig -silent -responseFile /Disk1/response/patchset.rsp -force  

Set the environmental variable PERL5LIB

export PERL5LIB=/perl/lib/5.6.1

Next, run the ConfigureGC.pl script. in either of these ways:

/perl/bin/perl /sysman/install/ConfigureGC.pl

or

cd /perl/bin/
./perl /sysman/install/ConfigureGC.pl

 
Monitor these files in for errors and progress of the ConfigureGC.pl script.:

/cfgtoollogs/oui/configActions.log

/cfgtoollogs/cfgfw/CfmLogger_.log

/sysman/log/emca_repos_create

/sysman/log/emca_repos_drop
下一篇: Fine-Grianed Auditing
请登录后发表评论 登录
全部评论

注册时间:2009-07-02

  • 博文量
    126
  • 访问量
    211260