Oracle_Enterprise_Manager_Cloud_Control_12c_&Agent(RAC)安装图文教程(中文)

Oracle_Enterprise_Manager_Cloud_Control_12c_&Agent(RAC)安装图文教程(中文)
Oracle_Enterprise_Manager_Cloud_Control_12c_&Agent(RAC)安装图文教程(中文)

Oracle Enterprise Manager Cloud Control 12c and Agent(RAC)安装图文教程

By Luocs.Xu

2012年09月01日

目录

1.Deploying a Highly Available Enterprise Manager 12c Cloud Control (3)

1.1Cloud Control Architecture (3)

1.2Implementation of a Level 3 MAA Setup (3)

2.Preparation of Medium and Uploading (4)

2.1Preparation of Medium (4)

2.2Uploading Media (5)

3.Meeting Hardware Requirements (5)

3.1CPU, RAM, Heap Size, and Hard Disk Space Requirements for OMS (5)

3.2CPU, RAM, and Hard Disk Space Requirements for Management Agents (6)

3.3CPU, RAM, and Hard Disk Space Requirements for Management Repository (6)

4.Meeting Package, Kernel Parameter, and Library Requirements (6)

4.1Package Requirements for Oracle Management Service (6)

4.2Package Requirements for Oracle Management Agent (7)

4.3Package Requirements for Management Repository (8)

5.Creating Operating System Groups and Users (8)

5.1Groups and Users for Oracle Management Service (9)

5.2Groups and Users for Oracle Management Agent (9)

5.3Groups and Users for Management Repository (9)

6.Installing Single-Instance Database and Configuration (9)

6.1Dropping the Database Control Repository (9)

6.2Modifying Initialization Parameters (10)

7.Installing JDK (12)

8.Installing WebLogic Server (12)

9.Other Configuration (16)

10.Prerequisites for Installing Enterprise Manager Cloud Control (16)

10.1Unique Host Name and Static IP Address Requirements (16)

10.2UMASK Value Requirements (16)

10.3File Descriptor Requirements (16)

10.4Host File Requirements (16)

10.5Port Requirements (17)

11.Installation Procedure (18)

12.Prerequisites for Installing Oracle Management Agent (30)

12.1Destination Host Requirements (30)

12.2Permission Requirements (31)

12.3SUDO/PBRUN Requirements (31)

13.Installing Oracle Management Agent (33)

13.1Add Host Targets (37)

13.2Add Database Targets (42)

14.ORACLE_HOME Structure (47)

14.1default middleware home direcotory (47)

14.2default agent base directory (48)

15.Related Posts (48)

1.Deploying a Highly Available Enterprise Manager 12c Cloud Control

1.1Cloud Control Architecture

Cloud Control provides a central point for monitoring and administration in the data center.

To achieve this, it collects information from a variety of distributed components and cons olidates it in a centralized repository. These components must all work in harmony for the Cloud Control system to operate correctly. The components and information flows involve

d in collecting, processing and presenting this information ar

e as follows:

●Oracle Management Agents (Agents) –The Oracle Management Agent is a soft

ware component that is installed on every monitored host in the enterprise. Agents collect information from the targets running on the host and send this information to the Oracle Management Service (OMS). Agents also perform operations against the targets on behalf of Cloud Control users. There are many different types of targets that Cloud Control can manage. Examples include Host, Database, Listener, ASM, WebLogic Server, Service Bus a nd Fusion Applications components

●Oracle Management Service (OMS) –The Oracle Management Service is the ce

ntral component in Cloud Control. It is the component with which all other components in teract (see Figure 1). The OMS is deployed on WebLogic Server and must be available in order for the agents to upload data and for administrators to access the Cloud Control co nsole.

●Oracle Management Repository (Repository) –The Oracle Management Reposit

ory is used as a persistent data store. Examples of the information stored in the repositor y include user information, job definitions, monitoring and alerting settings and all configur ation and monitoring data related to targets. The OMS depends on the repository being a vailable, and as such Cloud Control cannot run if the repository is unavailable.

●Oracle Software Library –The Software Library is a filesystem repository that sto

res software entities such as software patches, virtual appliance images, reference gold im ages, application software, and their associated directive scripts. The software library is ac cessed by the OMS and is used extensively by the Cloud Control framework for features s uch as self-update and agent-push.

●Console –The Console is a browser-based web application that is the main user in

terface for Cloud Control. This console allows the administrator to monitor, manage and re port on the Cloud Control targets that have been setup.

●Enterprise Manager Command Line Interface (EMCLI)–EMCLI allows users t

o access Cloud Control functionality either interactively from a command line, or as part o

f a script. This allows Cloud Control operations to be integrated with complex business pro

cesses without user interaction.

1.2

ared storage with VIP based failover.

Repository hosts configured with Local Physical Stan dby Database.

3 Single Site Multiple OMSs deployed in Active/Active configuration with a

Server

Load Balancer (SLB)

RAC primary database

RAC Physical Standby Database on same site as pri

mary database

Local Load

Balancer 4

Multi Site Active components deployed at primary site.

Primary OMS in Active/Active configuration with a Se

rver Load Balancer (SLB)

RAC Primary Database

Required: Lo

cal Load Bala

ncer for each

site

Optional: Glo

bal Load Bal

ancer

All standby components are deployed on standby sit

e in passive mode. Components on standby site are

only activated after switchover/failover.

Multiple standby OMSs configured with a Server Loa

d Balancer (SLB)

RAC Physical Standby Database

下面这张图是采用Level 3的架构图,生产环境可参考。

我们要测的是第一种,没有一种高可用性,但Agent Server是两个节点的Oracle RAC。

2.Preparation of Medium and Uploading

2.1Preparation of Medium

Oracle_Enterprise-R5-U5-Server-x86_64-dvd.iso

em12_linux64_disk1.zip

em12_linux64_disk2.zip

em12_linux64_disk3.zip

-- Oracle Management Service 12c Release 1 (12.1.0.1)

jdk-6u30-linux-x64-rpm.bin

-- Java Development Kit (JDK) 1.6

wls1035_generic.jar

-- Oracle WebLogic Server 11g Release 1 (10.3.5)

p1*******_112030_Linux-x86-64_1of7.zip

p1*******_112030_Linux-x86-64_2of7.zip

-- Database

rlwrap-0.37-1.el5.x86_64.rpm

VNC-Viewer

FileZilla

Cloud Control 12c

https://www.360docs.net/doc/0c17556420.html,/technetwork/oem/grid-control/downloads/linuxx8664soft-085949.html wls1035_generic.jar

https://www.360docs.net/doc/0c17556420.html,/technetwork/middleware/weblogic/downloads/wls-for-dev-1703574.htm l

jdk-6u30-linux-x64-rpm.bin

https://www.360docs.net/doc/0c17556420.html,/technetwork/java/javase/downloads/jdk-6u30-download-1377139.html

2.2Uploading Media

我们需要将介质上传到相关服务器上,略。

3.Meeting Hardware Requirements

3.1CPU, RAM, Heap Size, and Hard Disk Space Requirements for OMS

以下是官方给出的安装Oracle Enterprise Manager Cloud Control 12c所需硬件需求:

Small Medium Large

(1 OMS, <1000 Targe ts, <100 Agents, <10 Concurrent User Sess ions) (2 OMSes, >=1000 b

ut <10,000 Targets,

>=100 but <1000 A

gents,>=10 but <25

Concurrent User Sessi

ons)

(> 2 OMSes, >=10,0

00 Targets, >=1000

Agents, >=25 but <=

50 Concurrent User S

essions)

CPU Cores/Ho

st

2 4 8

RAM 6GB 8GB 16GB RAM with AD

P, JVMD

8GB 12GB 20GB Oracle WebLo

gic Server JV

M Heap Size

1.7GB 4GB 8GB

Hard Disk Spa

ce

7GB 7GB 7GB

Hard Disk Spa

ce with ADP,

JVMD

10GB 12GB 14GB

如果是测试学习,分配4GB内存即可。

3.2CPU, RAM, and Hard Disk Space Requirements for Management Agents

ensure that you have 2 CPU cores per host, 512 MB of RAM, and 1 GB of free hard disk space.

如果是测试学习,Agent Server有512M内存大小即可。

3.3CPU, RAM, and Hard Disk Space Requirements for Management Repository

Repository Database的硬件需求:

Small Medium Large

(1 OMS, <1000 Targe ts, <100 Agents, <10 Concurrent User Sess ions)(2 OMSes, >=1000 b

ut <10,000 Targets,

>=100 but <1000 A

gents,>=10 but <25

Concurrent User Sessi

ons )

(> 2 OMSes, >=10,0

00 Targets, >=1000

Agents, >=25 but <=

50 Concurrent User S

essions)

CPU Cores/Ho

st

2 4 8

RAM 6GB 8GB 16GB

Hard Disk Spa

ce

50GB 200GB 400GB 如果是测试学习,内存分配2G,硬盘空间40~50G即可。

4.Meeting Package, Kernel Parameter, and Library Requirements

4.1Package Requirements for Oracle Management Service

我这里只看RedHat类Linux,包括OEL,CentOS等

Platform 32-Bit Packages for 32-Bit Platform64-Bit Packages for 64-Bit Platform

Oracle Linux 6.x

(Red Hat 6 K ernel and Un breakable En terprise Kern el (UEK)) ?make-3.81

?binutils-2.17.50.0.6

?gcc-4.1.1

?libaio-0.3.106

?glibc-common-2.3.4

?compat-libstdc++296-2.96

?libstdc++ 4.1.1

?libstdc++devel-4.1.0

?setarch-1.6

?sysstat-5.0.5

?compat-db 4.1.25

?xorg-x11-utils (This package is r

equired only for GUI-based inte

ractive installation, and not for

silent installation)

?make-3.81

?binutils-2.17.50.0.6

?gcc-4.1.1

?libaio-0.3.106

?glibc-common-2.3.4

?libstdc++-4.1.1

?sysstat-5.0.5

?glibc-devel-2.5-49-i686 (This

is a 32-bit package)

?glibc-devel-2.5-49-x86_64 (T

his is a 64-bit package)

我使用的OS为Oracle Enterprise Linux 5.5 (64bit),检测需要如下方式:

rpm -q \

make \

binutils \

gcc \

libaio \

glibc-common \

libstdc++ \

setarch \

sysstat \

mg-utils | grep "not installed"

如果输出显示未安装的包,用YUM方式安装,YUM配置以及安装方法略。

4.2Package Requirements for Oracle Management Agent

Agent Server OS 也只看RedHat类Linux,包括OEL,CentOS等

Platform 32-Bit Packages for 32-Bit Platform64-Bit Packages for 64-Bit Platform

Oracle Linu x 6.x (Red Hat 6 Kernel and ?make-3.81

?binutils-2.17.50.0.6

?gcc-4.1.1

?libstdc++ 4.1.1

?make-3.81

?binutils-2.17.50.0.6

?gcc-4.1.1

?libaio-0.3.106

?glibc-common-2.3.4

Enterprise

Kernel (UE

K))

?sysstat-5.0.5

Oracle Linu x 5.x

Red Hat En terprise Lin ux 5.x ?make-3.81

?binutils-2.17.50.0.6

?gcc-4.1.1

?libstdc++-4.1.1

?libXtst-1.0.1-3.1(i386)

Oracle Linux 5.x and Red Hat

Enterprise Linux 5.x, where x

<= 5 [for example, Oracle Linu

x 5.3]

?make-3.81

?binutils-2.17.50.0.6

?gcc -4.1.1

?libstdc++ -4.1.1

?libXtst-1.0.1-3.1(x86_64)

Oracle Linux 5.x and Red Hat

Enterprise Linux 5.x, where x

> 5 [for example, Oracle Linu

x 5.6]

?make-3.81

?binutils-2.17.50.0.6

?gcc -4.1.1

?libaio-0.3.106

?glibc-common-2.3.4

?libstdc++ -4.1.1

?setarch-1.6

?sysstat-5.0.5

?rng-utils-2

?libXtst-1.0.1-3.1(x86_64)

我这里依然是Oracle Enterprise Linux 5.5 (64bit),检测需要如下方式:rpm -q \

make \

binutils \

gcc \

libaio \

glibc-common \

libstdc++ \

setarch \

sysstat \

mg-utils | grep "not installed"

4.3Package Requirements for Management Repository

这个是数据库安装所需软件包,这里略。

5.1Groups and Users for Oracle Management Service

我们使用oms账号来管理Oracle Management Service

[root@gcoms ~]# /usr/sbin/groupadd oinstall

[root@gcoms ~]# /usr/sbin/useradd -g oinstall oms

[root@gcoms ~]# passwd oms

5.2Groups and Users for Oracle Management Agent

使用数据库安装的用户Oracle,我这里Agent为RAC环境

[root@rac1 ~]# id oracle

uid=1101(oracle) gid=1000(oinstall) groups=1000(oinstall),1300(dba),1301(oper),1201(asmdb

a)

[root@rac1 ~]# id grid

uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1201(asmdba),1200(asmadmin),120 2(asmoper)

5.3Groups and Users for Management Repository

这也是数据库,所以拿Oracle用户来管理,根据需求选择Single Instance或者RAC,我这里是单实例数据库:

[root@gcdb ~]# /usr/sbin/groupadd oinstall

[root@gcdb ~]# /usr/sbin/useradd -g oinstall oracle

[root@gcdb ~]# passwd oracle

6.Installing Single-Instance Database and Configuration

我这里是以文件系统方式安装11.2.0.3版本(可选择11.2.0.2版本)的数据库,开启归档,此过程略。

安装完后,为满足Repository需求,需要进行如下配置:

6.1Dropping the Database Control Repository

如果不删的话,在Cloud Control 12c OUI交互配置的时候报错,如下:

我们需要手动执行,这里注意填对sys和sysman的密码

[oracle@gc ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD oracle -SYSMAN_PWD oracle

6.2Modifying Initialization Parameters

作为Repository Database,需要满足如下要求:

如果不满足这些参数要求,在Cloud Control 12c OUI交互配置的时候报错,如下:

为满足以上参数要求,如下执行:

备注:这里是满足要求的最低值,我们可以根据需要提高值。

我这里的话Repository Database物理内存只分配了2G,所以只做下列调整,不然数据库会起不来,另外我把原来的日志组都给删除:

备注:这里注意如果要删除的日志组是当前使用的,你通过alter system switch logfile和alter s ystem checkpoint命令手动切换日志并成为Inactive状态,略。

修改后重启数据库以生效。

确认UNDO表空间大小,执行下面脚本,确保UNDO表空间大小大于200M

7. Installing JDK

如果系统安装时候顺带安装了旧版本,那通过下面命令卸载: [root@gcoms ~]# yum -y remove java

安装Java Development Kit

(JDK) 1.6 :

[root@gcoms ~]# chmod +x jdk-6u30-linux-x64-rpm.bin [root@gcoms ~]# ./jdk-6u30-linux-x64-rpm.bin

安装完测试:

[oms@gcoms ~]$ java -version

8. Installing WebLogic Server

我们将/u01/app/oracle 作为基目录,分配相应的权限: [root@gcoms ~]# mkdir -p /u01/app/oracle [root@gcoms ~]# chown -R oms.oinstall /u01

通过vncviewer 连接到Server 端,执行如下命令进行图形安装: [root@gcoms ~]# xhost +

[root@gcoms ~]# chown oms.oinstall wls1035_generic.jar [oms@gcoms install]$ java -d64 -jar wls1035_generic.jar

启动Weblogic Server 安装图形界面,直接Next

这里邮件不选择,按图操作

选择典型安装方式,Next

这里识别到了jdk安装路径,默认Next

选择默认,Next

选择默认,Next

安装完毕,去掉Run Quickstart,Done结束安装

9.Other Configuration

解压介质

[root@gcoms ~]# chown oms.oinstall /install/em12_linux64_disk*

[oms@gcoms install]$ unzip em12_linux64_disk1.zip

[oms@gcoms install]$ unzip em12_linux64_disk2.zip

[oms@gcoms install]$ unzip em12_linux64_disk3.zip

10.Prerequisites for Installing Enterprise Manager Cloud Control

10.1Unique Host Name and Static IP Address Requirements

Ensure that you check the network configuration to verify that the host on which you

are installing resolves to a unique host name and a static IP address that are visible to

other hosts in the network.

10.2UMASK Value Requirements

Ensure that you set the default file mode creation mask (umask) to 022 in the shell st

artup file.

[oms@gcoms ~]$ cat >> ~/.bash_profile <

umask 022

EOF

10.3File Descriptor Requirements

Ensure that you set the file descriptor to a minimum of 4096.

[root@gcoms ~]# cat >> /etc/security/limits.conf <

* soft nofile 4096

* hard nofile 4096

EOF

备注:*改为UID oms也可以。

10.4Host File Requirements

Ensure that the host name specified in the /etc/hosts file is unique, and ensure that it maps to the correct IP address of that host. Otherwise, the installation can fail on the product-specific prerequisite check page.

[root@gcoms ~]# cat /etc/hosts

备注:最好把Repository Database的/etc/hosts也修改,如下:

[root@gcdb ~]# cat /etc/hosts

if DNS server is configured in your environment, then you should be able to use DNS t o resolve the name of the host on which you want to install the OMS.

检测方法如下:

当然,我这里因为没有配DNS,所以略过。

10.5Port Requirements

Ensure that the ports you assign (within the given range) to the following components are free and available:

检测方法:

11.Installation Procedure

正式打开OUI图形界面配置安装Oracle Enterprise Manager Cloud Control 12c:[oms@gcoms install]$ ./runInstaller ORACLE_HOSTNAME=https://www.360docs.net/doc/0c17556420.html,

启动OUI图形界面,不选择邮件发送,Next

选择Skip,Next

一般Inventory Location按照默认所选即可,Next

Prerequisite Checks步骤检查安装的前提条件,这里出现Warnning,那么需要根据提示去解决,全部为Succeeded后,Next

备注:如果是因为物理内存提供不足而产生的Warnning,在实在无法满足需求的情况下可点Ignore略过。

选择create a new Enterprise Manager System -> Advanced,Middleware Home location选择/ u01/app/oracle/Middleware(默认),Next

Select Plug-ins,根据需求选好所需的插件,我这里按照默认配置,Next

相关主题
相关文档
最新文档