Thursday, March 8, 2018

Oracle Enterprise Manager Cloud Control 12c Installation

Hai, this article will illustrate for Installation of Oracle Enterprise Manager 12c (12.1.0.3)

Assumptions: 
Database Name: DELL
Database Version : 11.2.0.4_x86_64
Platform Version : Linux_x86_64
Oracle Enterprise Manager  Version : 12.1.0.3_x86_64
Minimum RAM Required : 3GB (3072-MB).


Linux System Details:
[root@rac1 ~]#
[root@rac1 ~]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description:    Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Release:        5.7
Codename:       Carthage
[root@rac1 ~]#
[root@rac1 ~]# arch
x86_64
[root@rac1 ~]#
[root@rac1 ~]# hostname
Rac1.dell.com
[root@rac1 ~]#
[root@rac1 ~]# hostname -i
192.168.1.11
[root@rac1 ~]#
[root@rac1 ~]# cat /etc/enterprise-release
Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
[root@rac1 ~]#
[root@rac1 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          7990       7892         98          0        217       6271
-/+ buffers/cache:       1404       6586
Swap:        10001          3       9998
[root@rac1 ~]#
[root@rac1 ~]# xhost +
access control disabled, clients can connect from any host
[root@rac1 ~]#
[root@rac1 ~]#
[root@rac1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             190G  6.6G  173G   4% /
/dev/sda5             723G   13G  673G   2% /u01
/dev/sda3              29G  975M   26G   4% /tmp
tmpfs                 2.0G     0  2.0G   0% /dev/shm
.host:/               466G  439G   27G  95% /mnt/hgfs
[root@rac1 ~]# 
[root@rac1 ~]# mount -t tmpfs shmfs -o size=5g /dev/shm
[root@rac1 ~]#
[root@rac1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             190G  6.6G  173G   4% /
/dev/sda5             723G   13G  673G   2% /u01
/dev/sda3              29G  975M   26G   4% /tmp
tmpfs                 5.0G     0  5.0G   0% /dev/shm
.host:/               466G  439G   27G  95% /mnt/hgfs
shmfs                 5.0G     0  5.0G   0% /dev/shm

[root@rac1 ~]#

Create Necessary Directories for OEM Installation:
[root@rac3 ~]#
[root@rac3 ~]# su - oracle
[oracle@rac3 ~]$
[oracle@rac1 ~]$ cat dell.env
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
export PATH=$ORACLE_HOME/bin:$PATH
TNS_ADMIN=$ORACLE_HOME/network/admin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib/usr/lib; export LD_LIBRARY_PATH
export ORACLE_SID=DELL
[oracle@rac3 ~]$
[oracle@rac3 ~]$ . dell.env
[oracle@rac1 ~]$
[oracle@rac1 ~]$ mkdir –p /u01/app/oracle/FMW
[oracle@rac1 ~]$
[oracle@rac1 ~]$ mkdir –p /u01/app/oracle/agent
[oracle@rac1 ~]$
[oracle@rac1 ~]$ netmgr
[oracle@rac1 ~]$






[oracle@rac1 ~]$
[oracle@rac1 ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAR-2018 08:39:08

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1.dell.com)(PORT=1521)))
TNS-12541: TNS:no listener
 TNS-12560: TNS:protocol adapter error
  TNS-00511: No listener
   Linux Error: 111: Connection refused
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAR-2018 08:39:19

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.4.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/diag/tnslsnr/rac1/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1.dell.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1.dell.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAR-2018 08:39:19
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1.dell.com)(PORT=1521)))
Services Summary...
Service "DELL" has 1 instance(s).
  Instance "DELL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$

Change Necessary parameters for OEM Installation:
[oracle@rac1 ~]$
[oracle@rac1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Mar 7 16:27:09 2018

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>
SQL>
SQL> show parameter spfile;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
spfile                               string      /u01/app/oracle/product/11.2.0
                                                 /dbhome_1/dbs/spfileDELL.ora
SQL>
SQL>
SQL> select INSTANCE_NAME, STATUS, DATABASE_STATUS, VERSION from v$instance;

INSTANCE_NAME    STATUS       DATABASE_STATUS   VERSION
---------------- ------------ ----------------- -----------------
DELL             OPEN         ACTIVE            11.2.0.4.0

SQL>

SQL> show parameter sga_target

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
sga_target                           big integer 764M
SQL>
SQL>
SQL>

SQL> alter system set sga_target=2G scope=spfile;

System altered.

SQL>
SQL> show parameter pga_aggregate_target

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
pga_aggregate_target                 big integer 254M
SQL>
SQL>
SQL>
SQL> alter system set pga_aggregate_target=1G scope=spfile;

System altered.

SQL>
SQL> show parameter shared_pool_size

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
shared_pool_size                     big integer 0
SQL>
SQL> alter system set shared_pool_size=600M scope=spfile;

System altered.

SQL>
SQL> show parameter session_cached_cursors

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
session_cached_cursors               integer     50
SQL>
SQL>
SQL>
SQL> alter system set session_cached_cursors=200 scope=spfile;

System altered.

SQL>
SQL> show parameter process

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
processes                            integer     150
SQL>
SQL>
SQL> alter system set processes=300 scope=spfile;

System altered.

SQL> show parameter job_queue_processes

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes                  integer     1000
SQL>
SQL> alter system set job_queue_processes=1000;

System altered.

SQL>
SQL>
SQL> show parameter open_cursors

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
open_cursors                         integer     300
SQL>
SQL>
SQL> alter system set open_cursors=300;

System altered.
SQL>
SQL>
SQL> shut immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> startup
ORACLE instance started.

Total System Global Area 2137886720 bytes
Fixed Size                  2254952 bytes
Variable Size             805308312 bytes
Database Buffers         1325400064 bytes
Redo Buffers                4923392 bytes
Database mounted.
Database opened.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@rac1 ~]$
[oracle@rac1 ~]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 08-MAR-2018 08:43:59

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1.dell.com)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                08-MAR-2018 08:39:19
Uptime                    0 days 0 hr. 4 min. 39 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u01/app/oracle/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rac1.dell.com)(PORT=1521)))
Services Summary...
Service "DELL" has 2 instance(s).
  Instance "DELL", status UNKNOWN, has 1 handler(s) for this service...
  Instance "DELL", status READY, has 1 handler(s) for this service...
Service "DELLXDB" has 1 instance(s).
  Instance "DELL", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@rac1 ~]$

[oracle@rac1 ~]$
[oracle@rac1 ~]$ emca -deconfig dbcontrol db -repos drop -SYS oracle -SYSMAN oracle


STARTED EMCA at Mar 8, 2018 8:44:58 AM
EM Configuration Assistant, Version 11.2.0.3.0 Production
Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:
Database SID: DELL
Listener port number: 1521
Password for SYS user: oracle
Password for SYSMAN user: oracle

----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: Y
Mar 8, 2018 8:45:26 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/DELL/emca_2018_03_08_08_44_58.log.
Mar 8, 2018 8:45:27 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
WARNING: ORA-28000: the account is locked

Mar 8, 2018 8:45:27 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
WARNING: Error initializing SQL connection. SQL operations cannot be performed
Mar 8, 2018 8:45:27 AM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed. Some of the possible reasons may be:
 1) EM is configured with different hostname then physical host. Set environment variable ORACLE_HOSTNAME=<hostname> and re-run EMCA script
 2) ORACLE_HOSTNAME is set. Unset it and re-run EMCA script
Mar 8, 2018 8:45:27 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Mar 8, 2018 8:46:27 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Mar 8, 2018 8:46:27 AM
[oracle@rac1 ~]$
[oracle@rac1 ~]$
[oracle@rac1 ~]$

Oracle Enterprise Manager 12c Software Details:
[root@rac1 OEM_12103]#
[root@rac1 OEM_12103]# ll
total 5936641
-rwxrwxrwx 1 root root 1783676290 Mar  7 13:42 em12103p1_linux64_disk1.zip
-rwxrwxrwx 1 root root 1689422062 Mar  7 13:59 em12103p1_linux64_disk2.zip
-rwxrwxrwx 1 root root 2606016969 Mar  7 14:48 em12103p1_linux64_disk3.zip
[root@rac1 OEM_12103]#

Unzip Oracle Enterprise Software:
[root@rac1 OEM_12103]#
[root@rac1 OEM_12103]# unzip '*.zip' -d /u01/sftwr/OEM_12103/
[root@rac1 OEM_12103]#
[root@rac1 OEM_12103]# ll
total 1475868
drwxrwxr-x 7 oracle oinstall       4096 Jun 22  2013 install
drwxrwxr-x 4 oracle oinstall       4096 Jun 22  2013 jdk
drwxrwxr-x 4 oracle oinstall       4096 Jun 22  2013 libskgxn
drwxrwxr-x 4 oracle oinstall       4096 Jun 22  2013 oms
drwxrwxr-x 2 oracle oinstall       4096 Oct 12  2013 plugins
-rwxrwxr-x 1 oracle oinstall      77139 Oct 18  2013 Release_Notes.pdf
drwxrwxr-x 2 oracle oinstall       4096 Oct  8  2013 response
-rwxrwxr-x 1 oracle oinstall       5136 Feb 10  2010 runInstaller
drwxrwxr-x 9 oracle oinstall       4096 Jun 22  2013 stage
drwxrwxr-x 2 oracle oinstall       4096 Jun 22  2013 wls
-rwxrwxr-x 1 oracle oinstall 1509685020 Jun 22  2013 WT.zip
[root@rac3 OEM_12103]#


Install Oracle Enterprise Manager:
[oracle@rac1 OEM_12_1_0_3]$
[oracle@rac1 OEM_12_1_0_3]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 400 MB.   Actual 27370 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 29993 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-03-08_08-49-33AM. Please wait ...[oracle@rac1 OEM_12_1_0_3]$












Installation took almost 1:30 Mins with 8GB of RAM:







Run root scripts:
[root@rac1 ~]#
[root@rac1 ~]# /u01/app/oracle/FMW/oms/allroot.sh

Starting to execute allroot.sh .........

Starting to execute /u01/app/oracle/FMW/oms/root.sh ......
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/app/oracle/FMW/oms

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
   Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
   Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: y
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
/etc exist

Creating /etc/oragchomelist file...
/u01/app/oracle/FMW/oms
Finished execution of  /u01/app/oracle/FMW/oms/root.sh ......


Starting to execute /u01/app/oracle/agent/core/12.1.0.3.0/root.sh ......
Finished product-specific root actions.
/etc exist
Finished execution of  /u01/app/oracle/agent/core/12.1.0.3.0/root.sh ......
[root@rac1 ~]# 



Finish:
This information is also available at:

      /u01/app/oracle/FMW/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://rac1.dell.com:7801/em
      2. Admin Server URL: https://rac1.dell.com:7102/console

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

      1. Admin Server Hostname: rac1.dell.com
      2. Admin Server Port: 7102

You can find the ports details used by this deployment at : /u01/app/oracle/FMW/oms/install/portlist.ini


 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.

 A backup of the OMS configuration is available in /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/backup on host rac1.dell.com. See Cloud Control Administrators Guide for details on how to back up and recover an OMS.

 NOTE: This backup is valid only for the initial OMS configuration. For example, it will not reflect plug-ins installed later, topology changes like the addition of a load balancer, or changes to other properties made using emctl or emcli. Backups should be created on a regular basis to ensure they capture the current OMS configuration. Use the following command to backup the OMS configuration:
/u01/app/oracle/FMW/oms/bin/emctl exportconfig oms -dir <backup dir>









WebLogic Server login Page:



For Installation of Oracle Enterprise Manager 13c
Follow the above Steps and just make the following additional Settings before installation of 13c:

--------------------------------------------------
Mandatory Requirement for Installing Oracle Enterprise Manage 13c:
 - Installed RAM : 10GB+
 - Linux Version: OEL & RHEL 6+
 - Database Version: 12.1.0.2

--------------------------------------------------
Directory Structure:
[root@rac1 ~]#
[root@rac1 ~]# mkdir -p /u01/app/oracle/FMW
[root@rac1 ~]# mkdir -p /u01/app/oracle/agent
[root@rac1 ~]# mkdir -p /u01/app/oracle/bip/config
[root@rac1 ~]# mkdir -p /u01/app/oracle/bip/cluster
[root@rac1 ~]# 
[root@rac1 ~]# chown -R oracle:oinstall /u01
[root@rac1 ~]# chmod -R 775 /u01
--------------------------------------------------
Kernel Parameters Setting:
[root@rac1 ~]#
[root@rac1 ~]# vi /etc/sysctl.conf

net.ipv4.ip_local_port_range = 11000 65000

[root@rac1 ~]# 
[root@rac1 ~]# sysctl -p

--------------------------------------------------
Additional Parameters Setting for Database:
SQL>
SQL> alter system set optimizer_adaptive_features=false;

System altered.

SQL> 


No Need to unzip the software files:
[oracle@rac1 ~]$
[oracle@rac1 ~]$ cd /u01/sftwr/OEM/
[oracle@rac1 OEM]$ ll
total 8330984
-rwxr-xr-x. 1 oracle oinstall 2123211088 Mar 11 10:05 em13200p1_linux64-2.zip
-rwxr-xr-x. 1 oracle oinstall  741526563 Mar 11 10:06 em13200p1_linux64-3.zip
-rwxr-xr-x. 1 oracle oinstall 2084231936 Mar 11 10:07 em13200p1_linux64-4.zip
-rwxr-xr-x. 1 oracle oinstall  109191154 Mar 11 10:08 em13200p1_linux64-5.zip
-rwxr-xr-x. 1 oracle oinstall 2146696423 Mar 11 10:09 em13200p1_linux64-6.zip
-rwxr-xr-x. 1 oracle oinstall  771426157 Mar 11 10:09 em13200p1_linux64-7.zip
-rwxr-xr-x. 1 oracle oinstall  554606940 Mar 11 10:09 em13200p1_linux64.bin
[oracle@rac1 OEM]$ 
[oracle@rac1 OEM]$ 
[oracle@rac1 OEM]$ ./em13200p1_linux64.bin
0%...............................................................................100%
Launcher log file is /tmp/OraInstall2018-03-11_10-33-53AM/launcher2018-03-11_10-33-53AM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 3392.370 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.   Actual 16777216    Passed
Checking swap space: must be greater than 512 MB.   Actual 29999 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)


Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2018-03-11_10-33-53AM
====Prereq Config Location main===
/tmp/OraInstall2018-03-11_10-33-53AM/stage/prereq
EMGCInstaller args -scratchPath
EMGCInstaller args /tmp/OraInstall2018-03-11_10-33-53AM
EMGCInstaller args -sourceType
EMGCInstaller args network
EMGCInstaller args -timestamp
EMGCInstaller args 2018-03-11_10-33-53AM
EMGCInstaller args -paramFile
EMGCInstaller args /tmp/sfx_9SvhPJ/Disk1/install/linux64/oraparam.ini
EMGCInstaller args -nocleanUpOnExit
DiskLoc inside SourceLoc/u01/sftwr/OEM
EMFileLoc:/tmp/OraInstall2018-03-11_10-33-53AM/oui/em/
ScratchPathValue :/tmp/OraInstall2018-03-11_10-33-53AM
ConfigSharedLocation : shareLocationForBIP.isSelectedtrue
ConfigSharedLocation : bipConfigText
ConfigSharedLocation :bipClusterText
hostname instantiation HOSTNAME=rac1.dell.com
hostname instantiation ADMIN_SERVER_HOSTNAME=rac1.dell.com
hostname instantiation MANAGED_SERVER_HOSTNAME=rac1.dell.com
hostname instantiation s_hostname=rac1.dell.com
Visit http://www.oracle.com/support/policies.html for Oracle Technical Support policies.

..................................................................................................
Installation in progress (Sunday, March 11, 2018 10:48:09 AM AST)
                              98% Done.

Install successful



This document helps those who would like to Install Oracle Enterprise Manager 12c for Linux Environments.



No comments:

Post a Comment