OEM 13c Silent Installation On RHEL 6

This blog describes silent installation and configuration of Oracle Enterprise Manager Cloud Control 13c (64bit) on RHEL 6. The implementation described in this blog is based on a server installation with a minimum resource allocations required by Oracle.

Environment Setup

In this example, I”ve decided to install the Oracle Management Service (OMS) on a separate host than the Oracle Management Repository.

  • Management Repository Host (DB): dbhost
  • Management Service Host (OMS): oemhost

Download Software

Download software from OTN

  • em13300_linux64.bin
  • em13300_linux64-2.zip
  • em13300_linux64-3.zip
  • em13300_linux64-4.zip
  • em13300_linux64-5.zip
  • em13300_linux64-6.zip

Pre-installation Tasks On Repository Host

For this installation you will need at least 12.1.0.2 for the repository database, so use the installation on how to install and configure Oracle 18c database on Red Hat Linux 7.

Once you’ve provisioned the repository database, run the following SQL commands to set the recommended database instance parameters (you can omit parameters which you’ve already set greater than the recommended minimums).

SQL> ALTER SYSTEM SET "_allow_insert_with_update_check"=TRUE scope=both;
SQL> ALTER SYSTEM SET session_cached_cursors=200 scope=spfile;
SQL> ALTER SYSTEM SET sga_target= 9184M scope=both;
SQL> ALTER SYSTEM SET pga_aggregate_target=3059M scope=both;

Restart the repository database after making the instance parameter changes

SQL> shu IMMEDIATE
SQL> startup

Pre-installation Tasks On OMS Host

Ensure the /etc/hosts file to contain the IP and FQDN of the server.

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.19 oemhost.local oemhost 

Ensure the correct hostname in the “/etc/hostname” file.

Update UDP and TCP ephemeral port range to a range high enough for anticipated system workloads, and to ensure that the ephemeral port range starts at 11,000 and above.

# echo 11000 65000 > /proc/sys/net/ipv4/ip_local_port_rang
# cat /proc/sys/net/ipv4/ip_local_port_range

Update entries to /etc/sysconfig/iptables inorder to allow the port needed for OEM component communication

Adjust your Linux kernels as needed for your environment by adding the necessary entries and values in the /etc/sysctl.conf.

Reload the updated Linux kernels by running the following command:

# sysctl -p

Install the following required OS packages required for RHEL 6.

# yum install -y make-3.81 binutils-2.20 gcc-4.4.4 libaio-0.3.107 glibc-common-2.12-1 libstdc++-4.4.4 libXtst-1.0.99.x86_64 sysstat-9.0.4 glibc-devel-2.12-1.7.i686 glibc-devel-2.12-1.7.x86_64

Create the OS users and groups for the OEM software stack

# groupadd oinstall
# useradd -g oinstall oracle

Ensure secure Linux is set to “targeted” in /etc/selinux/config

# SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted 

Create software directories as needed. In my case I will simply assign ownership of an entire mountpoint

# chown -R oracle:oinstall /u01
# chmod 770 /u01

Add the following entry in /etc/oraInst.loc

inventory_loc=/u01/oraInventory
inst_group=oinstall  

Change permissions of /etc/oraInst.loc file

# chmod 644 /etc/oraInst.loc

OEM Installation & OMS Configuration Tasks (Silent Mode) 

Navigate to software location an invoke the installer and generate the response file you need to use for performing a silent installation. The command generates three response files. You must use only the new_install.rsp file for silent installation. Performed as OEM software owner.

$ cd /software_download/em13300_linux64.bin -getResponseFileTemplates -outputLoc /home/oracle/

Modify /home/oracle/new_install.rsp as needed. See the contents of the response file used for this installation detailed below:

RESPONSEFILE_VERSION=2.2.1.0.0 UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/oraInventory/ SECURITY_UPDATES_VIA_MYORACLESUPPORT=false DECLINE_SECURITY_UPDATES=true MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= INSTALL_UPDATES_SELECTION=skip STAGE_LOCATION= MYORACLESUPPORT_USERNAME_FOR_SOFTWAREUPDATES= MYORACLESUPPORT_PASSWORD_FOR_SOFTWAREUPDATES= PROXY_USER= PROXY_PWD= PROXY_HOST= PROXY_PORT= ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/oms13c/middleware ORACLE_HOSTNAME=oemhost.local AGENT_BASE_DIR=/u01/oms13c/agent13c WLS_ADMIN_SERVER_USERNAME=weblogic WLS_ADMIN_SERVER_PASSWORD=putYourPassword WLS_ADMIN_SERVER_CONFIRM_PASSWORD=putYourPassword NODE_MANAGER_PASSWORD=putYourPassword NODE_MANAGER_CONFIRM_PASSWORD=putYourPassword ORACLE_INSTANCE_HOME_LOCATION=/u01/oms13c/gc_inst CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true SOFTWARE_LIBRARY_LOCATION=/u01/oms13c/swlib DATABASE_HOSTNAME=dbhost.local LISTENER_PORT=1521 SERVICENAME_OR_SID=testdb SYS_PASSWORD=putYourPassword SYSMAN_PASSWORD=putYourPassword SYSMAN_CONFIRM_PASSWORD=putYourPassword DEPLOYMENT_SIZE=MEDIUM MANAGEMENT_TABLESPACE_LOCATION=+DATA CONFIGURATION_DATA_TABLESPACE_LOCATION=+DATA JVM_DIAGNOSTICS_TABLESPACE_LOCATION=+DATA AGENT_REGISTRATION_PASSWORD=putYourPassword AGENT_REGISTRATION_CONFIRM_PASSWORD=putYourPassword STATIC_PORTS_FILE= PLUGIN_SELECTION={} b_upgrade=false EM_INSTALL_TYPE=NOSEED CONFIGURATION_TYPE=ADVANCED CONFIGURE_SHARED_LOCATION_BIP=false CONFIG_LOCATION= CLUSTER_LOCATION= 

Invoke installer using the command below

$ /software_download/em13300_linux64.bin -silent -responseFile /home/oracle/new_install.rsp -invPtrLoc /etc/oraInst.loc

Post Installation Tasks On OMS Host

Run the following configuration scripts (/u01/oms13c/middleware/allroot.sh) as the “root” user

# /u01/oms13c/middleware/allroot.sh

Login as OEM software owner and check the status of the agent

$ /u01/oms13c/middleware/emctl status oms -details