Chinaunix首页 | 论坛 | 博客
  • 博客访问: 411644
  • 博文数量: 65
  • 博客积分: 2711
  • 博客等级: 少校
  • 技术积分: 745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-02 10:02
文章分类

全部博文(65)

文章存档

2013年(4)

2012年(3)

2011年(24)

2010年(21)

2009年(11)

2008年(2)

分类:

2011-02-12 10:14:48

一、 概述
     网格控制是为整个 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, 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) ofem_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 userroot.

/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 variablePERL5LIB

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

A) For the base 10.2.0.1.0 Grid Control product install:

Before invoking the runInstaller utility for the 10.2.0.1.0 base Grid Control product installation in step 1, the following modifications may be made to the /response/em_with_new_db.rsp response file (other values may remain at default):

UNIX_GROUP_NAME= to dba
FROM_LOCATION="../rdbms/Disk1/stage/products.xml" to actual full filepath
BASEDIR= to full parent directory filepath
INSTALLATION_NAME= to ""
s_gdbName= to
s_mountPoint= to
s_operGroup= to dba
s_adminGroup= to dba
b_lockedSelected= to false (to be locked later)
b_passwordsDifferent= to false (for common password option)
sl_adminPwds= to
sl_adminPwdsConfirm= to
b_passwordsSame= to true (for common password option)
s_reposPwd= to
s_reposPwdConfirm= to

Notes:

In the configuration above, using common passwords for sys, system, dbsnmp and sysman, this password is established in the s_reposPwd and s_reposPwdConfirm values.

If the values for b_passwordsDifferent and b_passwordsSame are not correct, i.e, they are both false, then the subsequent configuration action will fail on repository access by SYS or SYSMAN, showing ORA-01017 in the associated logging.. Be sure these entries are correct before running the silent installation.

B) For the 10.2.0.4.0 Grid Control patchset application to the OMS (agent is similar):

Before invoking the runInstaller utility for the 10.2.0.4.0 Grid Control patchset installation in step 3, the following modifications may be made to the /3731593/Disk1/response/patchset.rsp response file (other values may remain at default):

UNIX_GROUP_NAME= to dba
FROM_LOCATION="../stage/products.xml" to "/stage/products.xml"
ORACLE_HOME= to the BASEDIR parameter from the base install appended with "/oms10g".
b_softwareonly=false to true
s_sysPassword= to
sl_pwdInfo= to
ORACLE_HOME_NAME should be "oms10g" in the response file and this will need to be added.
DEINSTALL_LIST should be active with the default value during patchset installation.

all of these set to false:
SHOW_SPLASH_SCREEN
SHOW_WELCOME_PAGE
SHOW_SUMMARY_PAGE
SHOW_INSTALL_PROGRESS_PAGE
SHOW_REQUIRED_CONFIG_TOOL_PAGE
SHOW_CONFIG_TOOL_PAGE
SHOW_XML_PREREQ_PAGE
SHOW_END_OF_INSTALL_MSGS
SHOW_ROOTSH_CONFIRMATION
SHOW_END_SESSION_PAGE
SHOW_EXIT_CONFIRMATION

Additionally, the 10.1.0.5.0 database patchset and 4329444 database patch should be applied to the repository database Oracle Home prior to 10.2.0.4.0 Control Grid patching as required by the 10.2.0.4.0 patchset installation procedure described in its readme.html (see also).

Further, OPMN may have been started during the base product installation, but all of the OPMN-managed processes will be stopped. OPMN itself will also need to be stopped before application of the 10.2.0.4.0 Control Grid patchset can proceed. Issue the command "opmnctl stopall" to terminate the interfering processes and then apply the patchset. Stoppage can be verified with this command: ps -ef|grep opmn

Note that patching of the agent in the .../agent10g/ location is not performed in this step. A similar patching action should be performed on the agent at this time, so the action of the ConfigureGC.pl can proceed successfully through 10.2.0.4.0 agent configuration.


C) Execution of ConfigureGC.pl

In step 7c, during the OMS configuration step in the ConfigureGC.pl execution, it is likely that dbms jobs are running which will need to time out before the OMS CA can complete successfully. This problem and the solution are logged in the .../oms10g/cfgtoollogs/cfgfw/CfmLogger.log for the session. Not enough time is allowed for the job queue to flush out, so, on failure of the OMS CA, execute the following on the repository database as SYSMAN:

exec emd_maintenance.remove_em_dbms_jobs;

This action prevents start of new jobs, but existing ones will need to complete. Run this query until no rows are returned:

Select count(*) FROM dba_jobs_running run_job,gv$session sess WHERE sess.sid = run_job.sid AND sess.schemaname = 'SYSMAN';

Then run the exact same ConfigureGC.pl script. execution command again. Note that this possibility is described in the software-only install procedure, but the indicated above is not provided there.

Normally the CA process will run to completion, through the agent CA, with all components starting up. If this is not the observed state of components, bring the Grid Control down completely and restart it from the listener as described in:

Oracle® Enterprise Manager Advanced Configuration
Release 4 (10.2.0.4.0)
Part Number E10954-01
Chapter 2 Starting and Stopping Enterprise Manager Components
Section titled: 2.6 Starting and Stopping Oracle Enterprise Manager 10g Grid Control

Execute this procedure when the ConfigureGC.pl script. is complete and the Grid Control framework is working:

exec emd_maintenance.submit_em_dbms_jobs;

Enterprise Manager Grid Control Architecture

Enterprise Manager Grid Control Architecture

Enterprise Manager Grid Control Components

Enterprise Manager Grid Control Components

初始化参数

初始化参数

内存要求

内存要求

包检查

包检查

Oracle Enterprise Manager Downloads:

安装文档:

指南:在 linux 下的 Oracle 数据库 11g 中安装 Oracle 企业管理器 10g 网格控制第 5 版

阅读(1200) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~