Install Oracle Enterprise Manager (OEM) Cloud Control 12c on Linux
Oracle® Enterprise Manager Cloud Control Basic Installation Guide
1. Hardware Requirement
- Memory Requirements
Minimum: 6 GB of RAM
Recommended: 16 GB of RAM or more
To determine the RAM size, enter the following command,
# grep MemTotal /proc/meminfo
To determine the size of the configured swap space, enter the following command,
# grep SwapTotal /proc/meminfo
To determine the available RAM and swap space, enter the following command,
# free
- Disk Space Requirements
A total of 30Gb to 50Gb for installation of the software.
2 GB of disk space in the /tmp directory.
To determine the amount of disk space available, enter the following command,
# df -h
2. Package Requirements
make-3.81
binutils-2.17.50.0.6
gcc -4.1.1
libaio-0.3.106
glibc-2.5-12
glibc-2.5-12 (32 bit)
glibc-common-2.3.4
libstdc++ -4.1.1
setarch-1.6
sysstat-5.0.5
rng-utils-2.0
libXtst-1.0.1-3.1(x86_64)
xorg-x11-utils
glibc-devel-2.5-49
glibc-devel-2.5-49 (32 bit)
To see if a package has been install or not
#rpm –qa | grep pkg_name
3. Kernel Parameter Requirements
- 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.
- Enter the below commands to view the current values of the kernel parameters,
# /sbin/sysctl -a | grep shmmax
This will display the maximum shared memory segment size.
- By specifying the value in the “/etc/sysctl.conf” file they persist when you restart the system. For
immediate effect of the changed parameters, restart the system or run below commad.
# sysctl -p
4. Configure OS Groups and User
- Creating the Oracle Inventory Group
# /usr/sbin/groupadd oinstall
- Creating the OSDBA Group for Database Installations
# /usr/sbin/groupadd dba
- Creating the Oracle Software Owner User
# /usr/sbin/useradd -g oinstall -G dba,oper -c “Oracle Software Owner” oracle
Set the password of the oracle user:
# passwd oracle
5. Configure “/etc/hosts” file.
- Edit and add below entries in /etc/hosts file on RAC nodes.
# vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.9 oem12c.homedns.com oem12c
6. Configure Shell Limits for Oracle User
- Update the resource limits in the “/etc/security/limits.conf” configuration file for the oracle user by
adding the following lines.
# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
7. Install Oracle Enterprise Manager 12c
- I have downloaded and copied the Oracle Enterprise Manager 12c software in the location
“/u01/oracle_software/”.
- Login as oracle user and perform the below steps.
$ cd /u01/oracle_software/
$ unzip em12_linux64_disk1.zip
$ unzip em12_linux64_disk2.zip
$ unzip em12_linux64_disk3.zip
- Drop the already present repository in database.
$ emca -deconfig dbcontrol db -repos drop
[Before dropping, unlock the DBSNMP and SYSMAN account)
- Now start the installation.
$ ./runInstaller
- MY ORACLE SUPPORT DETAILS Screen
Uncheck the option of receiving security updates and Click on Next to continue.
- SOFTWARE UPDATES Screen
Select the Skip option and Click on Next to continue.
- PREREQUISITE CHECKS Screen
Make sure that all the prechecks gets succeeded. Click on Next to continue.
- INSTALL TYPES Screen
Select the option “Create a new Enterprise Manager System”.
Choose Advanced
Specify the Middleware Home Location.
Click on Next to continue.
- CONFIGURATION DETAILS Screen
Enter the Administrator password and the Database Connection Details.
Click on Next to continue.
- REVIEW Screen
Click on Install to start the installation.
- INSTALL PROGRESS Screen
You can observe the installation of EM 12c. At the end of installation, you will be asked to run the
configuration script as shown in below image.
Run the script as root user and click on OK to end the installation.
- FINISH Screen
Here you can see the URLs to access Enterprise Manager Cloud Control and Admin Server via web browser.
- The installation of Enterprise Manager 12c Cloud has been successfully done.
======================================================================================
8. Start and Stop Cloud Services
- Stop Cloud Control and all its components
$ $OMS_HOME/bin/emctl stop oms -all
$ $AGENT_HOME/bin/emctl stop agent
Stop the database
Stop the listener
- Start Cloud Control and all its components
Start the listener
Start the database
$ $OMS_HOME/bin/emctl start oms
$ $AGENT_HOME/bin/emctl start agent
**Installing OEM12c Agent on to Target**
1. Package Requirements
Oracle Linux 6.x(64bits) or Redhat 6.x(64bits) –
•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
•sysstat-5.0.5
--CHECK THE PACKAGE--
#rpm –qa | grep pkg_name
-Missing package install
Ex: yum install gcc g++ gcc-c++ or yum install package_name
2. Create group and user
Create user group and users. Ex: group oinstall, users – oracle
**Add users to the sudoer list**(optional)
3. Create directory
Create path [Path]/agent – make sure it’s under the ownership or the user acct that used for the
installation
4. Add IP Addresses to Hosts file for both Target and OEM server.
5. Login into OEM 12c and choose Add Target Manually from Setup option.
6.
***Checking OEM Agent Status***
(path)/agent/agent_inst/bin/emctl status agent –details
***Stoping OEM Agent***
(path)/agent/agent_inst/bin/emctl stop agent –details
***Dealing with Jobs***
1. How to find the job_id:
connect sysman@poem
select job_id
from mgmt_job
where job_name = 'BACKUP_ODS_ARCH_2HRS'
and job_owner = 'SYSMAN';
2. How to stop running job:
connect sysman@poem
exec
mgmt_job_engine.stop_all_executions_with_id('459582F20C8B6AF4E0403E0ACECC4DCB',T
RUE);
commit;
3. How to delete the job:
connect sysman@poem
exec mgmt_job_engine.delete_job('BACKUP_ODS_ARCH_2HRS','SYSMAN');
commit;
***OEM PERFORMANCE***
1. Log into Weblogic -> servers -> EMGC_OMS1 -> Monitor Tab -> Thread Tab
2. Check to see if there are stucks thread on Weblogic
3. Check to see if there are stuck thread on the database by using AWR(SQL Developer 4.0
and up)
4.