Step by Step Installation of OEM 12c

Few important things to be consider before going for OEM 12c on your environment. First EM 12c is more resource demanding as compared to 10g & 11g versions. Second It’s re-engineered for better monitoring and administration capabilities and not compatible with older versions of agents, so the day you rolling 12c in your environment, you have to install 12c agent on all targets.

Package Requirements for Oracle Management Service

In our case we are setting up EM 12C on Oracle Linux 5.x 64 bit

binutils-2.17.50.0.6

gcc -4.1.1

glibc-common-2.3.4

glibc-devel-2.5-49 (32-bit version as well as the 64-bit version)

libaio-0.3.106

libstdc++ -4.1.1

libXtst-1.0.1-3.1(x86_64)

make-3.81

rng-utils-2.0

setarch-1.6

sysstat-5.0.5

xorg-x11-utils     (This package is required only for GUI-based interactive installation, and not for silent installation)

Command to check packages

rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n”| egrep -i ‘^binutil|^gcc|^glibc-common|^glibc-devel|^libaio|^libstdc++|^libXtst|^make|^mg-utils|^setarch|^sysstat|^xorg-x11-utils’ | sort

Install missing packages by “rpm –Uvh” command.

Package Requirements for Oracle Management Agent

64-Bit Packages for 64-Bit Platform

Oracle Linux 5.x and Red Hat Enterprise Linux 5.x, where x <= 5 [for example, Oracle Linux 5.3]

make-3.81

binutils-2.17.50.0.6

gcc -4.1.1

libstdc++ -4.1.1

libXtst-1.0.1-3.1(x86_64)

Oracle Linux 5.x and Red Hat Enterprise Linux 5.x, where x > 5 [for example, Oracle Linux 5.6]

make-3.81

binutils-2.17.50.0.6

gcc -4.1.1

libaio-0.3.106

glibc-common-2.3.4

libstdc++ -4.1.1

setarch-1.6

sysstat-5.0.5

rng-utils-2

libXtst-1.0.1-3.1(x86_64)

SHMMAX

For installing an OMS or a Management Agent on Unix operating systems (32-bit or 64-bit), set the kernel.shmmax parameter to a value 1 byte less than 4 GB or 4294967295.

Oracle recommends this value to avoid lack of memory issues for other applications and to enable a complete and successful core file generation under any and all circumstances.

To verify the value assigned to kernel.shmmax parameter, run the following command:

cat /proc/sys/kernel/shmmax

To set the value for kernel.shmmax parameter, run the following command:

sysctl -w kernel.shmmax=4294967295

[root@maskoem12 ~]# sysctl -w kernel.shmmax=4294967295

kernel.shmmax = 4294967295

[root@maskoem12 ~]# cat /proc/sys/kernel/shmmax

4294967295

Library Requirements for Oracle Management Service

64-Bit Libraries for 64-Bit Platform

glibc-2.5.12

[root@maskoem12 ~]# rpm -qa –queryformat “%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n”| egrep -i ‘^glibc-‘

glibc-2.5-49(x86_64)

glibc-2.5-49(i686)

Library Requirements for Oracle Management Agent

There are no library requirements for Management Agent.

Install 11gR2 RDBMS software and create database

Before proceeding with EM 12c we need a separate database, you could use your existing database as well. Click here to see step by step installation of standalone database.

Installation of OEM 12C

Start with runinstaller from staged software location.

Uncheck the “I Wish to receive security updates via My Oracle Support” check box.

Click Yes

Select radio button “Skip”

If OEM is very first product on this machine then you will see couple of screens related to oracle inventory .

Verify the oraInventory location and click next.

We got permission issues, so need to make sure that owner of installation must have rwx on required location.

[oracle@maskoem12 u01]$ su –

Password:

[root@maskoem12 ~]# cd /u01

[root@maskoem12 u01]# mkdir app

[root@maskoem12 u01]# chown oracle:oinstall app

[root@maskoem12 u01]# ls -lrt app

total 20

drwx—— 2 root root 16384 Mar 10 15:25 lost+found

drwxr-xr-x 2 oracle oinstall 4096 Mar 20 02:23 app

Now switch to OUI and click next.

In case OUI detects mismatch in pre-requisite we have to fix those before we proceed further for smooth installation as well as operation in future.

Create respective directory structure in case of permission issues on writing to mount point and grant necessary permissions.

[root@maskoem12 u02]# cd /u02

[root@maskoem12 u02]# mkdir app

[root@maskoem12 u02]# chown oracle:oinstall app

[root@maskoem12 u02]# ls -lrt

total 20

drwx—— 2 root root 16384 Mar 10 15:27 lost+found

drwxr-xr-x 2 oracle oinstall 4096 Mar 20 11:14 app

As I don’t want to create complexity so I used simple passwords so I have ignored this warning.

Here is the o/p from another session:

[oracle@maskoem12 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/bin/

[oracle@maskoem12 bin]$ ./emca -deconfig dbcontrol db -repos drop -SYS_PWD sys -SYSMAN_PWD oemrep12

STARTED EMCA at Mar 20, 2012 11:21:11 AM

EM Configuration Assistant, Version 11.2.0.0.2 Production

Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:

Database SID: maskoem12

Listener port number: 1521

Do you wish to continue? [yes(Y)/no(N)]: Y

Mar 20, 2012 11:21:31 AM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/maskoem12/emca_2012_03_20_11_21_10.log.

Mar 20, 2012 11:21:32 AM oracle.sysman.emcp.util.DBControlUtil stopOMS

INFO: Stopping Database Control (this may take a while) …

Mar 20, 2012 11:22:01 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Dropping the EM repository (this may take a while) …

Mar 20, 2012 11:25:01 AM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully dropped

Enterprise Manager configuration completed successfully

FINISHED EMCA at Mar 20, 2012 11:25:07 AM

Click on YES

Click on “OK” right now but need to fix these points after installation.

Click on Install button and take a break as installation would take some time based on your infrastructure.

You can check logs directly by clicking on “view Log” link listed against individual step.

Execute root.sh on different session from root user.

Once complete then go to OUI screen and click “OK”

[root@maskoem12 cfgfw]# cat /u02/app/middleware/oms/install/setupinfo.txt

This information is also available at:

/u02/app/middleware/oms/install/setupinfo.txt

See below for information pertaining to your Enterprise Manager installation:

Use the following URL to access:

1. Enterprise Manager Cloud Control URL: https://maskoem12.lgk.nmk:7801/em

2. Admin Server URL: https://maskoem12.lgk.nmk:7102/console

The following details need to be provided during the additional OMS install:

1. Admin Server Hostname: maskoem12.lgk.nmk

2. Admin Server Port: 7102

NOTE:

An encryption key has been generated to encrypt sensitive data in the Management Repository. If this key is lost, all encrypted data in the Repository becomes unusable. Please run following command to backup the Management Service configuration including the emkey and keep the backup on another system:

emctl exportconfig oms -dir <backup location>

After login very first time you would see License agreement

In case you would have db and OMS on same machine then you could use following profile files to toggle b/w environments

###########################
.db_profile

###########################

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

ORACLE_HOME=
/u01/app/oracle/product/11.2.0/dbhome_1/

ORACLE_BASE=/u01/app/oracle

LD_LIBRARY_PATH=$ORACLE_HOME/lib

ORACLE_SID=maskoem12

PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_HOME ORACLE_BASE ORACLE_SID LD_LIBRARY_PATH PATH

PS1=”

\$PWD sid=\$ORACLE_SID oh=\$ORACLE_HOME

[$LOGNAME@`hostname`] ”

export DISPLAY=`who -m|cut -f2 -d”(“|cut -f1 -d”)”`:0

echo “\nDISPLAY=$DISPLAY”

echo ‘Your Oracle Home is:’ $ORACLE_HOME

echo ‘Your Oracle SID is:’ $ORACLE_SID

########################################

.oms_profile

########################################

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi

# User specific environment and startup programs

ORACLE_HOME=
/u02/app/middleware/oms

ORACLE_BASE=/u01/app/oracle

LD_LIBRARY_PATH=$ORACLE_HOME/lib

ORACLE_SID=OMS_ENV

PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_HOME ORACLE_BASE ORACLE_SID LD_LIBRARY_PATH PATH

PS1=”

\$PWD sid=\$ORACLE_SID oh=\$ORACLE_HOME

[$LOGNAME@`hostname`] ”

export DISPLAY=`who -m|cut -f2 -d”(“|cut -f1 -d”)”`:0

echo “\nDISPLAY=$DISPLAY”

echo ‘Your Oracle Home is:’ $ORACLE_HOME

echo ‘Your Oracle SID is:’ $ORACLE_SID

Now your environment is ready to use!!

Advertisements

2 Responses to Step by Step Installation of OEM 12c

  1. good job Amit… keep it up.

Share Your Comment

Please log in using one of these methods to post your comment:

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

Pierre blog

Pierre Forstmann Oracle Database blog

flashdba

Oracle databases, storage and the high-performance world of flash memory

Future Veterans

Ramblings about Oracle

Ranjeet Srivastava

Smile! You’re at the best blog ever

Kevin Closson's Blog: Platforms, Databases and Storage

Platform, Database and Storage Topics

Real Life Database / SQL Experiences : An Oracle Blog from Vivek Sharma

Being an Oracle Professional, I like to share all my Real Life Performance Tuning Challenges and Experiences. The Content and Views on this site are my own and not necessarily those of Oracle. While, I write on my real life experiences, the resolutions mentioned are solely mine. Comments / Criticisms are always a welcome.

Frits Hoogland Weblog

IT Technology; Oracle, linux, TCP/IP and other stuff I find interesting

OraStory

Dominic Brooks on Oracle Performance, Tuning, Data Quality & Sensible Design ... (Now with added Sets Appeal)

ASM Support Guy

Just Another Crazy Oracle DBA

Exadata Certification

Just Another Crazy Oracle DBA

Carlos Sierra's Tools and Tips

Tools and Tips for Oracle Performance and SQL Tuning

Sangram keshari's Oracle Blog

The Fusion Middleware Administration & Database Administration Blog

Amit Saraswat

Just Another Crazy Oracle DBA

Oracle Scratchpad

Just another Oracle weblog

The Tom Kyte Blog

Just Another Crazy Oracle DBA

Hemant's Oracle DBA Blog

Just Another Crazy Oracle DBA

Uwe Hesse

about Database Technology

Richard Foote's Oracle Blog

Focusing Specifically On Oracle Indexes, Database Administration and Some Great Music

%d bloggers like this: