Be careful :

This document is a production operation document , omitted IP,oracle user server,agent At least sudo,ping,ssh, Create directory permissions .

One 、 Installation requirements

1.1. System Overview

IP

database

OEM

operating system

Database version

XX1

stand-alone

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

Be careful :OEM management RAC The database needs to add a host first , Cluster High Availability Services , After adding the database ; Add host first ( No need to add Cluster High Availability Services ), After adding the database .

1.2. Operating system requirements

install Enterprise Manager Cloud Control 12c The hardware requirements are listed below , At least 4G Memory ,

Linux 6.X The required dependency packages are as follows :

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

linux 5.X The dependency packages for are as follows :

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

Be careful : server and agent Both sides need to install dependency packages

1.3. Software requirements

Software package needed :

em12105_linux64_disk1

em12105_linux64_disk2

em12105_linux64_disk3

Download address :

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

1.4. Database requirements

If the database is configured dbcontrol, Use the following command to delete it :

SYSMAN_PWD: Password for SYSMAN user

SYS_PWD: Password for SYS user

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

Delete EM Case study :

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

Create directory

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 the file ( Decompress the same directory )

unzip em12105_linux64_disk1

unzip em12105_linux64_disk2

unzip em12105_linux64_disk3

Two 、 Start installation Oracle 12c OEM

2.1. install Oracle 12c OEM server

Be careful : Make sure that the installation directory space is at least 14G

Change the parameters :

oracle The user enters the decompression directory , function ./runInstaller

choice ”Skip” Skip updates , Click on NEXT

Prerequisite checks Installation test , In case of wrong report , Please follow the prompts to modify ( Or ignore ), Click on NEXT

Custom version :

Installation directory selection ,middleware HOME The directory must be empty

Host name Can not be in domain name format

User name and password settings :

weblogic/XXX

sysman/XXX

To configure oem Service user name and password :

Service port number settings : The default can be :

next step :

Execute the script :

Look at the server side OEM state :

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

Look at the server side agent state :

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

Console address :

https://IP:7802/em

start-up OEM when , You need to start it first oms Database of server , And middleware console , Finally start OMS( After installation , Started by default ), Start the middleware management console ( By default, server restart will start automatically ):

Root:

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

Console address :

https:// IP:7102/console

start-up oms:

Oracle:

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

Start client :

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

2.2. Server configuration

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

open /etc/sudoers Change the following three parts

Before the change :

Defaults requiretty

After modification :

Defaults:oracle !requiretty

Before the change :

Defaults !visiblepw

After modification :

Defaults visiblepw

Before the change :

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

After modification

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL -- Add a line here

After the above three modifications are completed ,save file

test oracle Is it normal 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. install agent

2.3.1 Early environmental preparation

mkdir -p /u01/agent/

chmod oracle.oinstall /u01/agent

Be careful :

1./u01/agent/ It must be empty .

2. All monitoring servers /etc/hosts Configure domain name resolution

3. All servers do the following sudo File configuration :

Make sure /usr/local/bin/sudo This symbolic link exists

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

open /etc/sudoers Change the following three parts

Before the change :

Defaults requiretty

After modification :

Defaults:oracle !requiretty

Before the change :

Defaults !visiblepw

After modification :

Defaults visiblepw

Before the change :

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

After modification

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL -- Add a line here

After the above three modifications are completed ,save file

test oracle Is it normal 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

Similarly, set other managed end (agent):(bpmexrac1) For example :

[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

open /etc/sudoers Change the following three parts

Before the change :

Defaults requiretty

After modification :

Defaults:oracle !requiretty

Before the change :

Defaults !visiblepw

After modification :

Defaults visiblepw

Before the change :

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

After modification

##

## Allow root to run any commands anywhere

root ALL=(ALL) ALL

oracle ALL=(ALL) ALL -- Add a line here

After the above three modifications are completed ,save file

test oracle Is it normal 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

other :

explain : Because the host did ssh Remote restrictions , You need to modify the following parameter files of the monitoring server and all monitored hosts :

vi /etc/ssh/sshd_config

Add the following :

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

restart sshd service :service sshd restart

2.3.2 install agent

Set up -> Add target -> Add targets manually

Add the database to be monitored :

next:

Click on OK, then next The following appears , Pay attention to the red chart , Fill in the configuration :

The next step is to deploy agent:

next step :

Add success

2.4. Add cluster services

next step :

next step :

Preservation ( Has been added and can be updated )

In the figure above, you can add cluster high availability services of hosts according to your choice .

2.5. Add managed database

Click on Target -> Database -> add Add database configuration information :( Be careful , If there are more than one cluster Database add , It is suggested to add in this way or not , There will be a follow-up post )

Next

Next:

Note that the following figure needs to be configured 1,2,3:

Sequential configuration 1,2,3; To configure 2 When , Set instance -> Listener computer name , Need to set up IP, It's better not to write it as a domain name .

Next:

Look at the database added successfully :

The goal is -> database

Oracle 12c(12.1.0.5)OEM server agent More articles on installation configuration

  1. Oracle 12c(12.1.0.5) oem agent silent install( Silent installation agent)

    notes : Article from oracle support file ID 1360083.1, Silent installation agent It's using OMS Server side ( namely oem server End ) Of agent With the compressed package download, Remote transmission 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. 【 Translated from mos article 】 stay RHEL7/OL7 Installation on Oracle 12.1.0.2 Of server End or client when , What is needed "compat-libstdc++" package

    stay RHEL7/OL7 Installation on Oracle 12.1.0.2 Of server End or client when , What is needed "compat-libstdc++" package originate : Installation of ...

  4. oracle And 12.1.0.1.0 C stay linux 7 Install error handling on

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

  5. distributed file system FastDFS 5.0.5 & Linux CentOS 7 Installation configuration ( Single point installation )—— Chapter one

    distributed file system FastDFS 5.0.5 & Linux CentOS 7 Installation configuration ( Single point installation )-- Chapter one brief introduction First of all, a brief understanding of the basic concepts ,FastDFS Is an open source lightweight distributed file system , from ...

  6. zabbix3.0 agent Installation configuration

    zabbix3.0 agent Installation configuration 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 Install configuration in MVC 3

    This article mainly introduces in IIS5.1.IIS6.0.IIS7.5 Install configuration in MVC 3 The specific way to solve the problem is to take the following measures ! Text : IIS5.1 1. install Microsoft .net FrameWork 4.0 Installation package ; 2. install AS ...

  8. SQL Server 2012 Installation configuration (Part4 )

    SQL Server 2012 Installation configuration (Part1) SQL Server 2012 Installation configuration (Part2) SQL Server 2012 Installation configuration (Part3 ) SQL Server 2012 Install with ...

  9. SQL Server 2012 Installation configuration (Part3 )

    SQL Server 2012 Installation configuration (Part1 ) SQL Server 2012 Installation configuration (Part2 ) SQL Server 2012 Installation configuration (Part3 ) 3 Client installation 3.1 Install the customer ...

Random recommendation

  1. C3P0 Connection pool configuration and implementation details

    One . To configure <c3p0-config> <default-config> <!-- When the connections in the connection pool are exhausted c3p0 Number of connections acquired at one time .Default: 3 --> ...

  2. WebUploader UEditor chrome Clicking the upload file selection box will delay the display for a few seconds The reaction was slow

    chrome52.0.2743.80 above , accept: { title: 'Images', extensions: 'jpg,jpeg,png', mimeTypes: 'image/*' } ...

  3. Where is the mouse tl Where to

    $(".navcon a").mouseover(function(){ var that = $(this), index = that.index(); that.addCla ...

  4. Json Help class and how to use

    First, add a reference System.Runtime.Serialization. public class JSONHelper { public static string Serialize<T&g ...

  5. selenium-webdriver Cycle click Baidu search results and get a new page handler

    webdriver It's still interesting , Used before Ruby Of watir Automatic testing framework of , Feeling selenium This framework is better , It's easy to start with . I don't do automation , But play first , It's better to learn more ...

  6. Eclipse Format the entire project

    Eclipse It has a very good function , Is to beautify the source code ( Or standardization ), On the Java In the source code ,Ctrl+Shift+F You can do it . however , If you want to beautify the source code of the whole project ? Here's a simple way to do it ...

  7. HBase——HMaster Start one (HMaster The construction of )

    First , Let's go to HMaster Of main Method . This is where we start today . We need to pay attention , As shown in the figure below tool The type of HMasterCommandLine. Next , Let's go to HMasterComma ...

  8. Eclipse Import package prompt Setting build path has encountered a problem

    Eclipse Unable to import jar Packet time , Tips :“Setting build path” has encountered a problem,Could not write file D:\\workspa ...

  9. Kevin ho clocks in every day ||DAY7

  10. week4c: Personal blog assignment

    6. Specific procedures : #include<stdio.h>#include<stdlib.h>#include<math.h>void Udecide_n();int De ...