• Advertisements

silent installation of EM Cloud Control 12c

originally published at Pythian

Silent installation always attracts by its simplicity and power. And new release 2 of EM 12c proves it making installation
smooth and straightforward. RDBMS software, database creation and installation of OMS server can be done
using command prompt. After installation you get access to Web console and continue on EM configuration.

But before start of installation it is very important to make sure all prerequisites satisfied
to avoid any unpredictable errors during the process: install rpms, configure kernel, modify hosts file, etc.

Let’s start with silent installation of RDBMS ( Linux 64-bit). Create a copy of
response file and modify it to adjust for the environment or run with following variables:

./runInstaller -silent -responseFile ... -showProgress \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=oper \

after successful installation time to create database using dbca in silent mode:

./dbca -silent -createDatabase -gdbName emrep -templateName General_Purpose.dbc \
-emConfiguration none -datafileDestination /u01/oradata -redoLogFileSize 600 \
-sysPassword ...-systemPassword ... -storageType FS \
-initParams filesystemio_options=setall,job_queue_processes=20,log_buffer=10485760,\
open_cursors=300,processes=600,session_cached_cursors=200,shared_pool_size=800m \
-totalMemory 4096

Created database will be having SYSMAN account and it should be deleted:

alter user SYSMAN identified by ... account unlock;

./emca -deconfig dbcontrol db -repos drop -silent \
-SYS_PWD ... -SYSMAN_PWD ... -SID emrep -PORT ...

Now it is time to execute prerequisite utility to see if everything is ready for OMS installation:

./emprereqkit -executionType install \
-prerequisiteXMLLoc /home/oracle/install/em/install/requisites/list \
-dbHost ... -dbPort ... -dbSid emrep -dbUser SYS -dbPassword ... -dbRole sysdba -runPrerequisites

Most likely it will report about scheduled job to gather database statistics which is
enabled as auto task but can be turned off as:

exec DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'auto optimizer stats collection', operation => NULL, window_name => NULL);

I would also turn other jobs off:

exec DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'auto space advisor', operation => NULL, window_name => NULL);
exec DBMS_AUTO_TASK_ADMIN.DISABLE(client_name => 'sql tuning advisor', operation => NULL, window_name => NULL);

It can be worth to run prerequisites check once again to see if all requirements satisfied.
And when database is ready for repository and server for OMS satisfies all requirements
time to define variables for installation. Due to number of them it would be definitely
simpler to modify a copy of response file and use it for installation.
However, nothing stops you to put them as parameters in command line:

./runInstaller -silent -responseFile /home/oracle/install/em/response/new_install.rsp \
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/oracle/product/em12c \
AGENT_BASE_DIR=/u01/app/oracle/product/agent12c \
ORACLE_INSTANCE_HOME_LOCATION=/u01/app/oracle/product/em12c/gc_inst \
MANAGEMENT_TABLESPACE_LOCATION="/u01/oradata/emrep/mgmt.dbf" \
CONFIGURATION_DATA_TABLESPACE_LOCATION="/u01/oradata/emrep/mgmt_ecm_depot1.dbf" \
JVM_DIAGNOSTICS_TABLESPACE_LOCATION="/u01/oradata/emrep/mgmt_ad4j.dbf" \

At the end of installation it will be required to execute allroot.sh script and OMS will be started
so you can connect to Web Console of EM. However if something goes wrong I found it easier
to recreate the database and repeat the installation. Several misconfigurations caused me
to do it and they were – /etc/hosts file and not increased limits for oracle in /etc/security/limits.conf.

Have a good day!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: