Sie sind auf Seite 1von 35

Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

AHMED ABDEL FATTAH BLOG !

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.

http://www.oracle.com/technetwork/oem/grid‐control/downloads/oem‐linux64‐3237624.html (http://www.oracle.com
/technetwork/oem/grid‐control/downloads/oem‐linux64‐3237624.html)

1 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

http://www.oracle.com/technetwork/oem/enterprise‐manager/downloads/db‐templates‐3233309.html(http://www.ora
/technetwork/oem/enterprise‐manager/downloads/db‐templates‐3233309.html)

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

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)

2 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

# 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:

3 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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.

4 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

[For Linux 6] Amend the “/etc/security/limits.d/90‐nproc.conf” file as described below. See MOS Note [ID 1487773.1]
(https://support.oracle.com/epmos/faces/DocContentDisplay?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

5 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

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

6 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

7 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

8 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

9 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

10 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

11 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

12 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

13 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

The database template that you downloaded earlier at step “00” includes all the relevant dat

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 

dbca

14 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

15 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

16 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

17 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

18 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

19 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

20 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

21 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

22 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

[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

23 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

24 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

25 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

26 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

27 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

28 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

29 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

30 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

31 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

32 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

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

33 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

Report this ad

Report this ad

1. Pingback: Oracle Enterprise Manager 13c (13.2) Installation on Linux | Ahmed Abdel Fattah Blog !
2. 
irfan ahmed khan says:
March 30, 2017 at 10:39 pm
excellent note for install oem 13c , installation done successfully. getting issue with agent deployment if you have
any note please share

thanks again

REPLY
1. 
jordan says:
February 20, 2018 at 11:22 am
I have successfully deployed agents to several machines. Please drop a mail with the issue to me.

3.  REPLY
redman says:
August 3, 2017 at 6:43 pm
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?

34 of 35 5/1/2018, 1:20 PM
Oracle Enterprise Manager 13c (13.2) Installation on Linux – Ahmed Ab... https://ahmadfattah.wordpress.com/oracle-enterprise-manager-13c-13-2-i...

REPLY
1. 
Ahmed Abdel Fattah says:
August 3, 2017 at 8:26 pm
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)

4.  REPLY
Lakshmikant C says:
January 20, 2018 at 2:15 pm
Excellent Note for 13COMS

5. REPLY
jordan says:
February 20, 2018 at 11:21 am
I think I forgot the password of sysman. How to reset it ?

6. REPLY
Chandra Sekhar says:
February 21, 2018 at 8:00 pm
Can we use the oracle 12.2 binaries software for database installation .

7. REPLY
Srinivas Mitta says:
March 26, 2018 at 8:04 am
can we have oracle 12.2 database for oem 13cr2

8. REPLY
Sivaram says:
April 27, 2018 at 9:58 am
Yes…It worked, Successfullly installed OEM 13Cr2, It is working fine..Thanks #Ahmed Abdel Fattah .
Can you please provide some start and stop of all these components also, If you provide, It would be greateful..!!
Once again thank you…!!

REPLY

Create a free website or blog at WordPress.com.

35 of 35 5/1/2018, 1:20 PM

Das könnte Ihnen auch gefallen