Oracle 12c (12.1.0.5) OEM Server Agent installation configuration

Source: Internet
Author: User
Tags hmac md5 save file sha1 syslog

Attention:

This document is an operational document for production, omitting the need for ip,oracle users to server,agent at least Sudo,ping,ssh, creating directory permissions.

First, installation requirements 1.1. Overview of the System

IP

Database

oem

Operating system

Database version

XX1

Standalone

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

Note: The OEM management RAC database needs to add the host first, the cluster high-availability service (also can add the database directly, do not add the high-availability service, the subsequent document supplement), add the database, the machine first add the host (do not add the cluster high-availability service), and then add the database.

1.2. Operating System requirements

Install Enterprise Manager Cloud Control 12c hardware requirements such as the following list, which requires at least 4G of memory,

Linux 6.X requires a dependency package as follows:

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

The Linux 5.X dependency package is as follows:

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

Note: Both the server and the agent side need to install the dependent packages

1.3. Software Requirements

Required Packages:

Em12105_linux64_disk1

Em12105_linux64_disk2

Em12105_linux64_disk3

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

1.4. Database Requirements

If the database is configured with Dbcontrol, delete it using the following command:

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:

$ emca-deconfig Dbcontrol Db-repos drop-oracle-oracle123

Create a 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

Extract files (extract from the same directory)

Unzip Em12105_linux64_disk1

Unzip Em12105_linux64_disk2

Unzip EM12105_LINUX64_DISK3

Second, start installing Oracle 12c OEM2.1. Install Oracle 12c OEM Server

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

Modify the parameters:

Oracle user enters the unzip directory and runs./runinstaller

Select "Skip" to skip the update and click Next

Prerequisite checks installation detection, if the error, please modify (or ignore), click on the next

Custom version:

Installation directory selection, middleware home directory must be empty

Host name can not be a domain name format

User name Password settings:

Weblogic/xxx

Sysman/xxx

Configure the OEM service user name and password:

Service port number settings: Default:

Next:

Execute script:

To view the OEM status on the server side:

/U01/APP/ORACLE/MIDDLEWARE/OMS/BIN/EMCTL Status OMS

To view server-side agent status:

/u01/app/oracle/agent/agent_inst/bin/emctl Status Agent

Console Address:

Https://IP:7802/em

When you start an OEM, you need to start the database for your OMS server and the middleware console, and finally start OMS (which is started by default after installation) to start the Middleware Management console (the 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 OMS:

Oracle:

/u01/app/oracle/middleware/oms/bin/emctl Start Oms-all

To start the client:

/u01/app/oracle/agent/agent_inst/bin/emctl Start Agent

2.2. Server-side configuration

Vi/etc/hosts

IP hostname

[Email protected] agent]# ln-s/usr/bin/sudo/usr/local/bin/sudo

[Email protected] agent]# Ls-lh/usr/local/bin/sudo

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

[Email protected] agent]# Ls-lh/usr/bin/sudo

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

[Email protected] agent]# ls-l/etc/sudoers

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

[Email protected] agent]# vi/etc/sudoers

Opening the/etc/sudoers will change the following three places

Before modification:

Defaults Requiretty

After modification:

Defaults:oracle!requiretty

Before modification:

Defaults!VISIBLEPW

After modification:

Defaults VISIBLEPW

Before modification:

##

# 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 row here

When the above three modifications are complete, the save file

Test whether Oracle is normal sudo

[Email protected] ~]$ ls-lh/root/

Ls:cannot Open directory/root/: Permission denied

[email protected] ~]$ sudo ls-l/root

We Trust you are 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 17:04 anaconda-ks.cfg

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

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

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

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

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

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

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

Drwxr-xr-x. 2 root root 4096 Sep 17:06 public

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

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

2.3. Installing the Agent

2.3.1 . Pre-environment preparation

Mkdir-p/u01/agent/

chmod oracle.oinstall/u01/agent

Attention:

1./u01/agent/must be empty.

2. All monitoring server/etc/hosts configuration 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 19:30/etc/sudoers

Cp/etc/sudoers/etc/sudoers.bak

Opening the/etc/sudoers will change the following three places

Before modification:

Defaults Requiretty

After modification:

Defaults:oracle!requiretty

Before modification:

Defaults!VISIBLEPW

After modification:

Defaults VISIBLEPW

Before modification:

##

# 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 row here

When the above three modifications are complete, the save file

Test whether Oracle is 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 05:26 anaconda-ks.cfg

Drwxr-xr-x 2 root root 4096 21:31 Desktop

-rw-r--r--1 root root 56307 05:26 Install.log

-rw-r--r--1 root root 4136 05:26 Install.log.syslog

Similarly set up other managed side (agent): (BPMEXRAC1) as an example:

[Email protected] u01]# mkdir-p/app/u01/agent/

[Email protected] u01]# chown-r oracle:oinstall/app/u01/agent

[Email protected] u01]# cat/etc/hosts

IP hostname

[Email protected] u01]# Ls-lh/usr/bin/sudo

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

[Email protected] u01]# ls-l/etc/sudoers

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

[Email protected] u01]# Ls-lh/usr/local/bin/sudo

Ls:cannot access/usr/local/bin/sudo:no such file or directory

[Email protected] u01]# ln-s/usr/bin/sudo/usr/local/bin/sudo

[Email protected] u01]# Ls-lh/usr/local/bin/sudo

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

[Email protected] u01]# Cp/etc/sudoers/etc/sudoers.bak

[Email protected] u01]# chmod 755/etc/sudoers

Opening the/etc/sudoers will change the following three places

Before modification:

Defaults Requiretty

After modification:

Defaults:oracle!requiretty

Before modification:

Defaults!VISIBLEPW

After modification:

Defaults VISIBLEPW

Before modification:

##

# 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 row here

When the above three modifications are complete, the save file

Test whether Oracle is normal sudo

[Email protected] u01]# su-oracle

[Email protected] ~]$ ls-lh/root/

Ls:cannot Open directory/root/: Permission denied

[email protected] ~]$ sudo ls-lh/root/

We Trust you are 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 1 08:07 anaconda-ks.cfg

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

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

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

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

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

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

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

Drwxr-xr-x 2 root root 4.0K 7 06:38 public

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

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

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

Mkdir-p/agent

Chown-r oracle:oinstall/agent

Other:

Note: Since the host has made SSH remote restrictions, it is necessary to modify the monitoring server and all monitored hosts the following parameter files:

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,[email protected],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,[email protected]

Restart SSHD Services: Service sshd restart

2.3.2 . Install Agent

Add Target-> Manually add target

To add a database that needs to be monitored:

Next

Click OK, then next appears below, note the red map, fill in the configuration:

Next Deployment Agent:

Next:

Add success

2.4. Adding a Cluster service

Next:

Next:

Save (added to update)

You can add a clustered high-availability service for a host based on your selections.

2.5. Adding a managed database

Click Target. Add Database configuration information: (Note that if there are multiple sets of cluster database added, it is recommended to use this method to add, follow-up post issued)

Next

Next:

Note the need to configure:

Configure 2, configure the listener computer name, set the instance, you need to set the IP, preferably do not write the domain name.

Next:

See Adding a successful database:

Target Database

Oracle 12c (12.1.0.5) OEM Server Agent installation configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.