Oracle Enterprise Manager Cloud Control 13c Installation Guide
Table of Contents
Prerequisites
Oracle Database 19c Software Installation
Repository Database Creation
Cloud Control 13c Silent Installation
Post-Installation Configuration
Startup and Shutdown Procedures
Prerequisites
Required Packages for Oracle Linux 9
Before beginning the installation, ensure all required packages are installed:
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
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
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
${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
lsnrctl start mkdir -p /u01/oradata
Step 2: Set Database Creation Parameters
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
./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
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
# 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
mkdir -p /u01/app/oracle/middleware mkdir -p /u01/app/oracle/agent
Step 2: Generate Response File Templates (Optional)
${SOFTWARE_DIR}/em13500_linux64.bin -getResponseFileTemplates -outputLoc /tmp/
Step 3: Create Installation Response File
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
unset CLASSPATH ${SOFTWARE_DIR}/em13500_linux64.bin -silent -responseFile /tmp/install.rsp
For systems with limited /tmp space:
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
sh ${MW_HOME}/allroot.sh
Post-Installation Configuration
Step 1: Create Configuration Response File
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
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:
https://yourhost.yourdomain.com:7803/em
Login Credentials:
Username:
sysmanPassword: The password you specified during installation (e.g.,
K0Junga#)
Step 4: Initial Setup
Accept the License Agreement
Select your desired homepage (Summary is recommended)
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:
/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/oragchomelistusing#Use the manual startup scripts below
Startup Script
Create a startup script to start all components in the correct order:
#!/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:
#!/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
Memory Requirements: Ensure sufficient memory is allocated for both the database and Cloud Control
Storage Space: Database and Cloud Control require adequate storage for logs, repository, and management data
Network: Ensure proper hostname resolution and firewall configurations
Security: Change default passwords in a production environment
Backup: Regularly backup the repository database and Cloud Control configuration
Troubleshooting Tips
Installation Logs: Check logs in
$ORA_INVENTORY/logsand$ORACLE_HOME/cfgtoollogsOMS Logs: Review logs in
${MW_HOME}/sysman/logAgent Logs: Check
${AGENT_HOME}/agent_inst/sysman/logDatabase Logs: Review alert log in
$ORACLE_BASE/diag/rdbms/emcdb/emcdb/trace
No comments:
Post a Comment