This is a step-by-step procedure to install the latest available release of the Oracle Enterprise Manager 13c (13.2) on Linux 64-bit.

The main installation steps are:

1- Install Oracle Database 12c (12.1.0.2)  binaries.

2- Create  database using a ready template (to hold the EM’s repository objects).

3- Install the Oracle EM CC 13.2.0.0

 

So, let us start.


00 -Software to be downloaded:

1-     Oracle Enterprise Manager Cloud Control 13c Release 2 (13.2.0.0) from:

http://www.oracle.com/technetwork/oem/grid-control/downloads/oem-linux64-3237624.html

0_1

2-   Database Template (with EM 13.2.0.0 repository pre-configured) for Installing Oracle Enterprise Manager Cloud Control 13c Release 2 (13.2.0.0) from:

http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/db-templates-3233309.html

0_2

3-     Oracle Database 12c Release 1 (12.1.0.2.0) Enterprise Edition from:

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/database12c-linux-download-2240591.html

0_3


1-   Oracle Database 12c (12.1.0.2) Installation

Hardware Specs:

I was lucky to have a server with 256 GB ram and 24 core (48 threads), but at least you should have about 24-32GB ram + 80 GB disk.

O.S is Redhat Linux 6.8

Make a staging area for the database software:
                /software/DB
Unzip the database software

Hosts File:

127.0.0.1                        localhost      localhost.localdomain 
xxx.xxx.xxx.xxx                  yourHostName   yourHostName.yourDomain

Oracle Installation Prerequisites

You may use the Oracle provided package to do that ( if your server has internet connection)

# yum install oracle-rdbms-server-12cR1-preinstall –y

Or you may check the prerequisites manually as follows:

Add or amend the following lines in the “/etc/sysctl.conf” file.
fs.file-max = 6815744
kernel.sem = 250 32000 100 128

kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65000

Then you may reboot the server or just reload the kernel using:
   /sbin/sysctl –p

Add the following lines to the “/etc/security/limits.conf” file.

oracle   soft   nofile    1024
oracle   hard   nofile    65536
oracle   soft   nproc    16384
oracle   hard   nproc    16384
oracle   soft   stack    10240
oracle   hard   stack    32768

Install the following packages if they are not already present:

yum install binutils -y
yum install compat-libcap1 –y                    # needed only with Linux 6
yum install compat-libstdc++-33 -y
yum install compat-libstdc++-33.i686 -y
yum install gcc -y
yum install gcc-c++ -y
yum install glibc -y
yum install glibc.i686 -y
yum install glibc-devel -y
yum install glibc-devel.i686 -y
yum install ksh -y
yum install libgcc -y
yum install libgcc.i686 -y
yum install libstdc++ -y
yum install libstdc++.i686 -y
yum install libstdc++-devel -y
yum install libstdc++-devel.i686 -y
yum install libaio -y
yum install libaio.i686 -y
yum install libaio-devel -y
yum install libaio-devel.i686 -y
yum install libXext -y
yum install libXext.i686 -y
yum install libXtst -y
yum install libXtst.i686 -y
yum install libX11 -y
yum install libX11.i686 -y
yum install libXau -y
yum install libXau.i686 -y
yum install libxcb -y
yum install libxcb.i686 -y
yum install libXi -y
yum install libXi.i686 -y
yum install make -y
yum install sysstat -y
yum install unixODBC -y
yum install unixODBC-devel –y
yum install zlib-devel –y                           #Linux 7
yum install zlib-devel.i686 –y                      #Linux 7
or you may install them using rpm:
     # rpm –ivh libX11

Users & Groups:

Create the new groups and users.

groupadd -g 1001 oinstall
groupadd -g 1002 dba
groupadd -g 1003 oper
useradd -u 1001 -g oinstall -G dba,oper oracle

 

Additional Setup

[For Linux 6] Amend the “/etc/security/limits.d/90-nproc.conf” file as described below. See MOS Note [ID 1487773.1]

# Change From
*          soft    nproc    1024

# To:
*             - nproc 16384

 

Set secure Linux to permissive by editing the “/etc/selinux/config” file as follows.

SELINUX=permissive

Once the change is complete, restart the server or run the following command.

# setenforce Permissive

If you have the Linux firewall enabled, you will need to disable.

For Linux 6:
# service iptables stop
# chkconfig iptables off

 

For Linux 7:
# systemctl stop firewalld
# systemctl disable firewalld

 

Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/12.1.0.2/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01

 

Unless you are working from the console, or using SSH tunnelling, login as root and issue the following command:
 xhost +<machine-name>

Add the following lines at the end of the “/home/oracle/.bash_profile” file:

# Oracle Settings
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=HostName.localdomain
export ORACLE_UNQNAME=emccdb
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.2/db_1
export ORACLE_SID= emccdb
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

Oracle 12.1.0.2 Binaries Installation:

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
  DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
  ./runInstaller

12345678910111213141516


2- Repository Database Creation Using Template

The database template that you downloaded earlier at step “00” includes all the relevant database settings, but make sure that character set is selected during the creation is “AL32UTF8”.

Unzip the repository template under the ORACLE_HOME.
   cd $ORACLE_HOME/assistants/dbca/templates
   unzip /tmp/12.1.0.2.0_Database_Template_with_cdbpdb_for_EM13_2_0_0_0_Linux_x64.zip

As oracle user, start the Database Configuration Assistant (DBCA) and create a new database using the template:

   dbca

2324252627282930

You may deselect listener creation at this step and create it manually after that (as I received error due to that)

31323334353637383940

[Optional] Edit the contents of the “/etc/oratab” file, making sure the database can be started and stopped using the dbstart and dbshut commands:

emccdb:/u01/app/oracle/product/12.1.0.2/db_1:Y


3- EM Cloud Control 13c (13.2.0.0) Installation

You don’t need to unzip the EM13c software files, the installer will do that for you, but ensure you have enough space at /tmp (about 10GB)

Make the following directories to hold the management server and agent. There are some restrictions on the possible path lengths, so don’t make the directory structure too deep, especially for Windows installations:

mkdir -p /u01/app/oracle/middleware
mkdir -p /u01/app/oracle/agent

Start the installation by running the "em13200_linux64.bin" file.
 chmod u+x em13200_linux64.bin
 ./em13200_linux64.bin

42434445

I changed the value of the above kernel parameter from 65500 to 65000 and continued.

4647484950515253545556

Now, you can run the EM CC and navigate around successfully:

575859

Also, in this release you will find many plugins installed by default (including Exadata plugin):

60

In the coming blog, I’ll explain how we can discover one Exadata machine, stay tuned !

 

 

 

 

 

 

 

4 thoughts on “Oracle Enterprise Manager 13c (13.2) Installation on Linux

  1. excellent note for install oem 13c , installation done successfully. getting issue with agent deployment if you have any note please share

    thanks again

    Like

  2. at the top you mention that you need to pick the DB template without cdbpdb and then later on you actually use the one with cdbpdb – what are the advanatages/disadvantages of using one over the other?

    Like

    1. Both are valid options. The repository database may be a non-CDB or PDB database, but cannot be a CDB. You may download any of the following templates:
      12.1.0.2 DB Template for EM 13.2.0.0 on Linux x86-64
      (376,876,746 bytes, cksum 3941973314)
      12.1.0.2 DB Template with CDB PDB for EM 13.2.0.0 on Linux x86-64
      (920,740,572 bytes, cksum 59968564)

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s