注意:

此文档为生产上操作文档,省略了IP,oracle用户server,agent 端至少需要sudo,ping,ssh,创建目录权限。

一、安装要求

1.1. 系统情况一览

IP

数据库

OEM

操作系统

数据库版本

XX1

单机

service(12.1.0.5)

Linux 6.7

oracle11.2.0.4

XX2

RAC

agent

Linux 6.7

Oracle11.2.0.4

XX3

RAC

agent

Linux 6.7

Oracle11.2.0.4

注意:OEM管理RAC数据库需要先添加主机,集群高可用服务,后添加数据库;单机先添加主机(不用添加集群高可用服务),后添加数据库。

1.2. 操作系统要求

安装Enterprise Manager Cloud Control 12c的硬件要求如以下列表,要求至少4G内存,

Linux 6.X 需要的依赖包如下:

yum -y install make binutils gcc libaio glibc-common libstdc++ sysstat glibc-devel glibc-devel

linux 5.X的依赖包如下:

yum -y install  make binutils gcc libaio glibc-common libstdc setarch sysstat rng-utils libXtst xorg-x11-utils

注意: server和agent端都需要安装依赖包

1.3. 软件要求

需要的软件包:

em12105_linux64_disk1

em12105_linux64_disk2

em12105_linux64_disk3

下载地址:

http://www.oracle.com/technetwork/oem/grid-control/downloads/linuxx8664soft-085949.html

1.4. 数据库要求

如果数据库配置了dbcontrol,使用如下命令将其删除:

SYSMAN_PWD: Password for SYSMAN user

SYS_PWD: Password for SYS user

$ emca -deconfig dbcontrol db -repos drop -SYS_PWD -SYSMAN_PWD

删除EM案例:

$ emca -deconfig dbcontrol db -repos drop -oracle -Oracle123

创建目录

mkdir -p /u01/app/oracle/Middleware/

mkdir -p /u01/app/oracle/agent

chown -R oracle:oinstall /u01/app/oracle/Middleware

chown -R oracle:oinstall /u01/app/oracle/agent

解压文件(同一个目录解压)

unzip em12105_linux64_disk1

unzip em12105_linux64_disk2

unzip em12105_linux64_disk3

二、开始安装Oracle 12c OEM

2.1. 安装Oracle 12c OEM server

注意:确保安装目录空间至少14G

修改一下参数:

oracle用户进入解压目录,运行./runInstaller

选择”Skip”跳过更新,点击NEXT

Prerequisite checks安装检测,如遇报错,请根据提示修改(或者忽略),点击NEXT

定制版本:

安装目录选择,middleware HOME目录一定要为空

Host name 可以不为域名格式

用户名密码设置:

weblogic/XXX

sysman/XXX

配置oem服务用户名和密码:

服务端口号设置:默认即可:

下一步:

执行脚本:

查看服务器端的OEM 状态:

/u01/app/oracle/Middleware/oms/bin/emctl status oms

查看服务器端agent状态:

/u01/app/oracle/agent/agent_inst/bin/emctl status agent

控制台地址:

https://IP:7802/em

启动OEM时,需要先启动所在oms服务器的数据库,以及中间件控制台,最后启动OMS(安装完成后,默认已启动),启动中间件管理台(默认服务器重启会自动启动):

Root:

nohup /u01/app/oracle/gc_inst/user_projects/domains/GCDomain/bin/startWebLogic.sh  &

控制台地址:

https:// IP:7102/console

启动oms:

Oracle:

/u01/app/oracle/Middleware/oms/bin/emctl start oms -all

启动客户端:

/u01/app/oracle/agent/agent_inst/bin/emctl start agent

2.2. 服务端配置

vi /etc/hosts

IP  hostname

[root@bpmDBmonitor agent]# ln -s /usr/bin/sudo /usr/local/bin/sudo

[root@bpmDBmonitor agent]# ls -lh /usr/local/bin/sudo

lrwxrwxrwx. 1 root root 13 Oct  9 11:08 /usr/local/bin/sudo -> /usr/bin/sudo

[root@bpmDBmonitor agent]# ls -lh /usr/bin/sudo

---s--x--x. 1 root root 121K May  6  2015 /usr/bin/sudo

[root@bpmDBmonitor agent]# ls -l /etc/sudoers

-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers

[root@bpmDBmonitor agent]# vi /etc/sudoers

打开/etc/sudoers 将以下三处修改

修改前:

Defaults requiretty

修改后:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改后:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改后

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --这里加一行

以上三处修改完成后,save 文件

测试 oracle 能否正常 sudo

[oracle@bpmDBmonitor ~]$ ls -lh /root/

ls: cannot open directory /root/: Permission denied

[oracle@bpmDBmonitor ~]$ sudo ls -l /root

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.

#2) Think before you type.

#3) With great power comes great responsibility.

[sudo] password for oracle:

total 104

-rw-------. 1 root root  1554 Sep 27 17:04 anaconda-ks.cfg

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Desktop

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Documents

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Downloads

-rw-r--r--. 1 root root 51940 Sep 27 17:04 install.log

-rw-r--r--. 1 root root 10259 Sep 27 17:02 install.log.syslog

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Music

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Pictures

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Public

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Templates

drwxr-xr-x. 2 root root  4096 Sep 27 17:06 Videos

2.3. 安装agent

2.3.1前期环境准备

mkdir -p /u01/agent/

chmod oracle.oinstall /u01/agent

注意:

1./u01/agent/ 一定要为空。

2.所有监控服务器/etc/hosts 配置域名解析

3.所有服务器做以下sudo文件配置:

确保/usr/local/bin/sudo 这个符号链接存在

ROOT:

ln -s /usr/bin/sudo /usr/local/bin/sudo

ls -l /etc/sudoers

-r--r----- 1 root root 3407 Oct 18 19:30 /etc/sudoers

cp /etc/sudoers /etc/sudoers.bak

打开/etc/sudoers 将以下三处修改

修改前:

Defaults requiretty

修改后:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改后:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改后

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --这里加一行

以上三处修改完成后,save 文件

测试 oracle 能否正常 sudo

su - oracle

ls -l /root

ls: /root: Permission denied

sudo ls -l /root

[sudo] password for oracle:

total 88

-rw------- 1 root root 1832 Aug 11 05:26 anaconda-ks.cfg

drwxr-xr-x 2 root root 4096 Aug 10 21:31 Desktop

-rw-r--r-- 1 root root 56307 Aug 11 05:26 install.log

-rw-r--r-- 1 root root 4136 Aug 11 05:26 install.log.syslog

同理设置其他被管理端(agent):(bpmexrac1)为例:

[root@bpmexrac1 u01]# mkdir -p /app/u01/agent/

[root@bpmexrac1 u01]# chown -R oracle:oinstall /app/u01/agent

[root@bpmexrac1 u01]# cat /etc/hosts

IP hostname

[root@bpmexrac1 u01]# ls -lh /usr/bin/sudo

---s--x--x. 1 root root 121K May  6  2015 /usr/bin/sudo

[root@bpmexrac1 u01]# ls -l /etc/sudoers

-r--r-----. 1 root root 4002 Mar  2  2012 /etc/sudoers

[root@bpmexrac1 u01]# ls -lh /usr/local/bin/sudo

ls: cannot access /usr/local/bin/sudo: No such file or directory

[root@bpmexrac1 u01]# ln -s /usr/bin/sudo /usr/local/bin/sudo

[root@bpmexrac1 u01]# ls -lh /usr/local/bin/sudo

lrwxrwxrwx 1 root root 13 Oct  9 11:27 /usr/local/bin/sudo -> /usr/bin/sudo

[root@bpmexrac1 u01]# cp /etc/sudoers /etc/sudoers.bak

[root@bpmexrac1 u01]# chmod 755 /etc/sudoers

打开/etc/sudoers 将以下三处修改

修改前:

Defaults requiretty

修改后:

Defaults:oracle !requiretty

修改前:

Defaults !visiblepw

修改后:

Defaults visiblepw

修改前:

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

修改后

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL --这里加一行

以上三处修改完成后,save 文件

测试 oracle 能否正常 sudo

[root@bpmexrac1 u01]# su - oracle

[oracle@bpmexrac1 ~]$ ls -lh /root/

ls: cannot open directory /root/: Permission denied

[oracle@bpmexrac1 ~]$ sudo ls -lh /root/

We trust you have received the usual lecture from the local System

Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.

#2) Think before you type.

#3) With great power comes great responsibility.

[sudo] password for oracle:

total 84K

-rw-------. 1 root root 1.7K Aug  1 08:07 anaconda-ks.cfg

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Desktop

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Documents

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Downloads

-rw-r--r--. 1 root root  29K Aug  1 08:07 install.log

-rw-r--r--. 1 root root 8.5K Aug  1 08:06 install.log.syslog

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Music

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Pictures

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Public

-rw-r--r--. 1 root root  358 Aug  1 08:07 redhat.repo_bak

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Templates

drwxr-xr-x  2 root root 4.0K Aug  7 06:38 Videos

mkdir -p /agent

chown -R oracle:oinstall /agent

其他:

说明:由于主机做了ssh 远程限制,需要修改监控服务器以及所有被监控主机以下参数文件:

vi /etc/ssh/sshd_config

添加以下:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,curve25519-sha256@libssh.org

重启sshd 服务:service sshd restart

2.3.2安装agent

设置 -> 添加目标 ->手动添加目标

添加需要监控的数据库:

next:

点击OK,然后next 出现以下,注意红色图,填完配置:

下一步部署agent:

下一步:

添加成功

2.4. 添加集群服务

下一步:

下一步:

进行保存(已添加过可以更新)

上图可以根据选择添加主机的集群高可用服务。

2.5. 添加管理的数据库

点击 Target -> Database -> add 添加数据库配置信息:(注意,如果有多套cluster 数据库添加,建议用不用这种这种办法添加,后续有帖子发出)

Next

Next:

注意以下图需要配置1,2,3:

依次配置1,2,3;配置2的时候,设置实例->监听程序计算机名,需要设置IP,最好不要写成域名。

Next:

看添加成功的数据库:

目标->数据库

Oracle 12c(12.1.0.5)OEM server agent 安装配置的更多相关文章

  1. Oracle 12c(12.1.0.5) oem agent silent install(静默安装agent)

    注释: 文章自oracle support 文档 ID 1360083.1,静默安装agent采用的是把OMS服务端(即oem server端)的agent用压缩包download,远程传到agent ...

  2. oracle 12c 12.1.0.2.0 BUG 22562145

    Wed May 23 17:46:14 2018TT01: Standby redo logfile selected for thread 1 sequence 42251 for destinat ...

  3. 【翻译自mos文章】在RHEL7/OL7上安装Oracle 12.1.0.2的server端或者client时,报须要"compat-libstdc++"包

    在RHEL7/OL7上安装Oracle 12.1.0.2的server端或者client时,报须要"compat-libstdc++"包 来源于: Installation of ...

  4. oracle之 12.1.0.1.0 C 在 linux 7 上安装报错处理

    环境说明:-- os[root@host-172-16-3-132 ~]# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) - ...

  5. 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)——第一篇

    分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)--第一篇 简介 首先简单了解一下基础概念,FastDFS是一个开源的轻量级分布式文件系统,由 ...

  6. zabbix3.0 agent安装配置

    zabbix3.0 agent安装配置wget http://repo.zabbix.com/zabbix/3.0/rhel/6/x86_64/zabbix-agent-3.0.0-2.el6.x86 ...

  7. IIS5.1、IIS6.0、IIS7.5中安装配置MVC 3

    本文主要介绍在IIS5.1.IIS6.0.IIS7.5中安装配置MVC 3的具体办法! 正文: IIS5.1 1. 安装Microsoft .net FrameWork 4.0安装包; 2. 安装AS ...

  8. SQL Server 2012安装配置(Part4 )

    SQL Server 2012安装配置(Part1) SQL Server 2012安装配置(Part2) SQL Server 2012安装配置(Part3 ) SQL Server 2012安装配 ...

  9. SQL Server 2012安装配置(Part3 )

    SQL Server 2012安装配置(Part1 ) SQL Server 2012安装配置(Part2 ) SQL Server 2012安装配置(Part3 ) 3 客户端安装 3.1 安装客户 ...

随机推荐

  1. 关于服务器的CPU的几个概念学习总结

    物理CPU 物理CPU: 物理CPU是指插在主板上面的CPU芯片.即指在主板上肉眼能看到的CPU的个数.一般而言,个人台式机或笔记本上只会有一个物理CPU芯片.而服务器主板上往往有多个物理CPU. L ...

  2. 阿里舆情︱舆情热词分析架构简述(Demo学习)

    本节来源于阿里云栖社区,同时正在开发一个舆情平台,其中他们发布了一篇他们所做的分析流程,感觉可以作为案例来学习.文章来源:觉民cloud/云栖社区 平台试用链接:https://prophet.dat ...

  3. freemarker之include指令

    freemarker之include指令 1.父页面ftl <html> <head> <meta http-equiv="content-type" ...

  4. 程序员的职场潜意识Top10

    什么叫潜规则?其实就是不明文规定的一些规则,关键是他没法明文规定,因为有的规则太没节操.在我们职场中有些规则你不遵守将举步艰难,而要玩转这些潜规则,那么你必须要具备如下10个潜意识: 1.项目会议.那 ...

  5. Modbus总结

    1.概念 ①Coil和Register Modbus中定义的两种数据类型.Coil是位(bit)变量:Register是整型(Word,即16-bit)变量. ②Slave和Master与Server ...

  6. C#迭代语句、跳转语句--C#基础

    1.foreach每执行一次内含的代码时,循环变量就会一次读取集合中的一个元素,不需要个数.循环变量只是一个只读的局部变量,这个值是不能修改的.char后的word是 foreach语句的迭代变量,它 ...

  7. 【Luogu1291】百事世界杯之旅(动态规划,数学期望)

    [Luogu1291]百事世界杯之旅(动态规划,数学期望) 题面 洛谷 题解 设\(f[i]\)表示已经集齐了\(i\)个名字的期望 现在有两种方法: 先说我自己的: \[f[i]=f[i-1]+1+ ...

  8. 【BZOJ3110】K大数查询(整体二分)

    [BZOJ3110]K大数查询(整体二分) 题面 BZOJ 题解 看了很久整体二分 一直不知道哪里写错了 ... 又把树状数组当成线段树区间加法来用了.. 整体二分还是要想清楚在干什么: 我们考虑第\ ...

  9. CDQ分治嵌套模板:多维偏序问题

    CDQ分治2 CDQ套CDQ:四维偏序问题 题目来源:COGS 2479 偏序 #define LEFT 0 #define RIGHT 1 struct Node{int a,b,c,d,bg;}; ...

  10. [POI2000]病毒

    题面 传送门 Sol 建出AC自动机后DFS能走的点,如果能走回来就可行 # include <bits/stdc++.h> # define IL inline # define RG ...