1. Oracle Enterprise Manager Cloud Control 13c Release 3 (13.3.0.0) Installation on Oracle Linux 8

Oracle Enterprise Manager Cloud Control 13c Installation Guide

Table of Contents

  1. Prerequisites

  2. Oracle Database 19c Software Installation

  3. Repository Database Creation

  4. Cloud Control 13c Silent Installation

  5. Post-Installation Configuration

  6. Startup and Shutdown Procedures


Prerequisites

Required Packages for Oracle Linux 9

Before beginning the installation, ensure all required packages are installed:

bash
dnf install -y binutils gcc gcc-c++ glibc glibc-devel glibc-devel.i686
dnf install -y libaio libaio-devel libgcc libstdc++ libstdc++-devel
dnf install -y libnsl sysstat motif motif-devel redhat-lsb redhat-lsb-core
dnf install -y openssl make

# Install compatibility library from OL8
dnf install -y https://yum.oracle.com/repo/OracleLinux/OL8/appstream/x86_64/getPackage/compat-libpthread-nonshared-2.28-72.0.1.el8_1.1.x86_64.rpm

Oracle Database 19c Software Installation

Step 1: Set Environment Variables

bash
export ORACLE_HOSTNAME=${HOSTNAME}
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=${ORACLE_BASE}/product/19.0.0/dbhome_1
export ORA_INVENTORY=/u01/app/oraInventory
export CV_ASSUME_DISTID=OL8  # Fake OL8 for compatibility

Step 2: Extract Installation Files

bash
cd $ORACLE_HOME
unzip /u01/software/LINUX.X64_193000_db_home.zip
unzip -oq /u01/software/p6880880_190000_Linux-x86-64.zip  # OPatch update
cd /u01/software
unzip -oq p36209492_190000_Linux-x86-64.zip  # Release Update patch

Step 3: Run Silent Installation

bash
${ORACLE_HOME}/runInstaller -ignorePrereq -waitforcompletion -silent \
    -applyRU /u01/software/36209492/36233263 \
    -responseFile ${ORACLE_HOME}/install/response/db_install.rsp \
    oracle.install.option=INSTALL_DB_SWONLY \
    ORACLE_HOSTNAME=${ORACLE_HOSTNAME} \
    UNIX_GROUP_NAME=oinstall \
    INVENTORY_LOCATION=${ORA_INVENTORY} \
    SELECTED_LANGUAGES=en,en_GB \
    ORACLE_HOME=${ORACLE_HOME} \
    ORACLE_BASE=${ORACLE_BASE} \
    oracle.install.db.InstallEdition=EE \
    oracle.install.db.OSDBA_GROUP=dba \
    oracle.install.db.OSBACKUPDBA_GROUP=dba \
    oracle.install.db.OSDGDBA_GROUP=dba \
    oracle.install.db.OSKMDBA_GROUP=dba \
    oracle.install.db.OSRACDBA_GROUP=dba \
    SECURITY_UPDATES_VIA_MYORACLESUPPORT=false \
    DECLINE_SECURITY_UPDATES=true

Important: When prompted, run the root scripts as the root user.

Note: While the documentation recommends applying the latest database patches, the installation will work without them. This is useful if you don't have a My Oracle Support account.


Repository Database Creation

Step 1: Start Listener and Prepare Data Directory

bash
lsnrctl start
mkdir -p /u01/oradata

Step 2: Set Database Creation Parameters

bash
export ORACLE_SID=emcdb
export SYS_PASSWORD="SysPassword1"
export PDB_NAME="emrep"
export PDB_PASSWORD="PdbPassword1"
export DATA_DIR=/u01/oradata

Step 3: Create CDB and PDB Using DBCA

bash
./dbca -silent -createDatabase -templateName General_Purpose.dbc \
    -gdbname emcdb -sid emcdb -characterSet AL32UTF8 \
    -sysPassword K0Junga# -systemPassword K0Junga# \
    -createAsContainerDatabase true -numberOfPDBs 1 \
    -pdbName emrep -pdbAdminPassword K0Junga# \
    -databaseType MULTIPURPOSE -memoryMgmtType auto_sga \
    -totalMemory 2048 -storageType FS \
    -datafileDestination /u01/app/FBS/apps_st \
    -redoLogFileSize 600 -emConfiguration NONE -ignorePreReqs

Step 4: Configure Database Settings

bash
sqlplus / as sysdba <<EOF
-- Set data file destination
alter system set db_create_file_dest='${DATA_DIR}';

-- Set PDB to auto-start
alter pluggable database ${PDB_NAME} save state;

-- Recommended minimum settings
alter system set "_allow_insert_with_update_check"=true scope=both;
alter system set session_cached_cursors=200 scope=spfile;
alter system set processes=600 scope=spfile;
alter system set pga_aggregate_target=450M scope=spfile;
alter system set sga_target=800M scope=spfile;

-- Restart database
SHUTDOWN IMMEDIATE;
STARTUP;
exit;
EOF

Step 5: Enable Automatic Startup

bash
# Set restart flag in /etc/oratab
cp /etc/oratab /tmp
sed -i -e "s|${ORACLE_SID}:${ORACLE_HOME}:N|${ORACLE_SID}:${ORACLE_HOME}:Y|g" /tmp/oratab
cp -f /tmp/oratab /etc/oratab

Cloud Control 13c Silent Installation

Step 1: Create Required Directories

bash
mkdir -p /u01/app/oracle/middleware
mkdir -p /u01/app/oracle/agent

Step 2: Generate Response File Templates (Optional)

bash
${SOFTWARE_DIR}/em13500_linux64.bin -getResponseFileTemplates -outputLoc /tmp/

Step 3: Create Installation Response File

bash
cat > /tmp/install.rsp <<EOF
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/u01/app/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
INSTALL_UPDATES_SELECTION=skip
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/middleware
ORACLE_HOSTNAME=yourhost.yourdomain.com
AGENT_BASE_DIR=/u01/app/oracle/agent
WLS_ADMIN_SERVER_USERNAME=weblogic
WLS_ADMIN_SERVER_PASSWORD=Welcome1
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=Welcome1
NODE_MANAGER_PASSWORD=Welcome1
NODE_MANAGER_CONFIRM_PASSWORD=Welcome1
ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/gc_inst
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=/u01/app/oracle/swlib
DATABASE_HOSTNAME=yourhost.yourdomain.com
LISTENER_PORT=1521
SERVICENAME_OR_SID=EMREP
SYS_PASSWORD=K0Junga#
SYSMAN_PASSWORD=K0Junga#
SYSMAN_CONFIRM_PASSWORD=K0Junga#
DEPLOYMENT_SIZE=SMALL
AGENT_REGISTRATION_PASSWORD=Welcome1
AGENT_REGISTRATION_CONFIRM_PASSWORD=Welcome1
PLUGIN_SELECTION={}
b_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=LATER
CONFIGURE_SHARED_LOCATION_BIP=false
MANAGEMENT_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt.dbf
CONFIGURATION_DATA_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt_ecm_depot1.dbf
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt_deepdive.dbf
EOF

Step 4: Execute Silent Installation

bash
unset CLASSPATH
${SOFTWARE_DIR}/em13500_linux64.bin -silent -responseFile /tmp/install.rsp

For systems with limited /tmp space:

bash
mkdir -p /u01/tmp
unset CLASSPATH
${SOFTWARE_DIR}/em13500_linux64.bin -silent -responseFile /tmp/install.rsp -J-Djava.io.tmpdir=/u01/tmp/

Step 5: Run Root Scripts

bash
sh ${MW_HOME}/allroot.sh

Post-Installation Configuration

Step 1: Create Configuration Response File

bash
cat > /tmp/config.rsp <<EOF
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=dba
INVENTORY_LOCATION=/u01/app/oraInventory
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
INSTALL_UPDATES_SELECTION=skip
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/middleware
ORACLE_HOSTNAME=yourhost.yourdomain.com
AGENT_BASE_DIR=/u01/app/oracle/agent
WLS_ADMIN_SERVER_USERNAME=weblogic
WLS_ADMIN_SERVER_PASSWORD=Welcome1
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=Welcome1
NODE_MANAGER_PASSWORD=Welcome1
NODE_MANAGER_CONFIRM_PASSWORD=Welcome1
ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/gc_inst
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=/u01/app/oracle/swlib
DATABASE_HOSTNAME=yourhost.yourdomain.com
LISTENER_PORT=1521
SERVICENAME_OR_SID=emrep.yourdomain.com
SYS_PASSWORD=K0Junga#
SYSMAN_PASSWORD=K0Junga#
SYSMAN_CONFIRM_PASSWORD=K0Junga#
DEPLOYMENT_SIZE=SMALL
AGENT_REGISTRATION_PASSWORD=Welcome1
AGENT_REGISTRATION_CONFIRM_PASSWORD=Welcome1
PLUGIN_SELECTION={}
b_upgrade=false
EM_INSTALL_TYPE=NOSEED
CONFIGURATION_TYPE=ADVANCED
CONFIGURE_SHARED_LOCATION_BIP=false
MANAGEMENT_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt.dbf
CONFIGURATION_DATA_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt_ecm_depot1.dbf
JVM_DIAGNOSTICS_TABLESPACE_LOCATION=/u01/app/oracle/oradata/EMCDB/emrep/mgmt_deepdive.dbf
EOF

Step 2: Run Configuration

bash
unset CLASSPATH
${MW_HOME}/sysman/install/ConfigureGC.sh -silent -responseFile /tmp/config.rsp

Note: The configuration process can take a significant amount of time to complete.

Step 3: Access the Console

Once configuration is complete, access the Enterprise Manager console using the URL provided in the installation output:

text
https://yourhost.yourdomain.com:7803/em

Login Credentials:

  • Username: sysman

  • Password: The password you specified during installation (e.g., K0Junga#)

Step 4: Initial Setup

  1. Accept the License Agreement

  2. Select your desired homepage (Summary is recommended)

  3. Allow time for all targets to be recognized as available


Startup and Shutdown Procedures

Automatic Startup Configuration

Cloud Control is configured with gcstartup service. The /etc/oragchomelist file contains the components to start:

text
/u01/app/oracle/middleware
/u01/app/oracle/agent/agent_13.5.0.0.0:/u01/app/oracle/agent/agent_inst

Important: On simple installations, the default auto-start may attempt to start Cloud Control before the database is ready. To prevent this:

  • Comment out all entries in /etc/oragchomelist using #

  • Use the manual startup scripts below

Startup Script

Create a startup script to start all components in the correct order:

bash
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export OMS_HOME=/u01/app/oracle/middleware
export AGENT_HOME=/u01/app/oracle/agent/agent_inst

# Start database first
$ORACLE_HOME/bin/dbstart $ORACLE_HOME

# Start OMS
$OMS_HOME/bin/emctl start oms

# Start agent
$AGENT_HOME/bin/emctl start agent

Shutdown Script

Create a shutdown script to stop all components in the correct order:

bash
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
export OMS_HOME=/u01/app/oracle/middleware
export AGENT_HOME=/u01/app/oracle/agent/agent_inst

# Stop OMS first
$OMS_HOME/bin/emctl stop oms -all

# Stop agent
$AGENT_HOME/bin/emctl stop agent

# Stop database last
$ORACLE_HOME/bin/dbshut $ORACLE_HOME

Important Notes

  1. Memory Requirements: Ensure sufficient memory is allocated for both the database and Cloud Control

  2. Storage Space: Database and Cloud Control require adequate storage for logs, repository, and management data

  3. Network: Ensure proper hostname resolution and firewall configurations

  4. Security: Change default passwords in a production environment

  5. Backup: Regularly backup the repository database and Cloud Control configuration


Troubleshooting Tips

  • Installation Logs: Check logs in $ORA_INVENTORY/logs and $ORACLE_HOME/cfgtoollogs

  • OMS Logs: Review logs in ${MW_HOME}/sysman/log

  • Agent Logs: Check ${AGENT_HOME}/agent_inst/sysman/log

  • Database Logs: Review alert log in $ORACLE_BASE/diag/rdbms/emcdb/emcdb/trace

No comments:

Post a Comment