OEM 12c Silent Installation

“What’s for lunch today?”, said the newly born ready to run Red Hat 6.4 server.

“Well, I have an outstanding 3-course meal of OEM12c installation.
For the appetizer, a light and crispy ASM 12c,
DB 12c with patching for the main and desert, and to cover everything up, OEM 12c setup and configuration”, replied  the DBA who was really happy to prepare such a great meal for his new friend.

“Ok, let’s start cooking, it won’t take long”, said the DBA and took all his cookware (software), prepared ingredients (disk devices) and got the grid infrastructure cooked:

./runInstaller -silent
-responseFile /home/oracle/install/grid/response/grid_install.rsp -showProgress
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.1.0/grid
oracle.install.asm.OSDBA=dba
oracle.install.asm.OSASM=dba
oracle.install.crs.config.storageOption=LOCAL_ASM_STORAGE
oracle.install.asm.SYSASMPassword=sys_pwd
oracle.install.asm.diskGroup.name=DATA
oracle.install.asm.diskGroup.redundancy=EXTERNAL
oracle.install.asm.diskGroup.AUSize=4
oracle.install.asm.diskGroup.disks=/dev/asm-disk1
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/asm*
oracle.install.asm.monitorPassword=sys_pwd
oracle.install.config.managementOption=NONE

And added some crumbs:

/u01/app/oracle/product/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/tmp/asm.rsp
where /tmp/asm.rsp had:
oracle.assistants.asm|S_ASMPASSWORD=sys_pwd
oracle.assistants.asm|S_ASMMONITORPASSWORD=sys_pwd

“It was a great starter”, said the server finishing the first dish,

“I am getting even more hungry. What’s for the main?”.

“Oh, you will love it! It is Database 12c. It is one of these new meals and it is already very popular”, answered the DBA enthusiastically and continued cooking.

“Looking forward to trying it”, the server decided to have a nap until the dish was ready.

“You asked, you got it”, and the DBA gave the server the dish he never tried:

./runInstaller -silent -showProgress
-responseFile /home/oracle/install/database/response/db_install.rsp
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
oracle.install.db.InstallEdition=EE oracle.install.db.DBA_GROUP=dba
oracle.install.db.BACKUPDBA_GROUP=dba
oracle.install.db.DGDBA_GROUP=dba
oracle.install.db.KMDBA_GROUP=dba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

The topping ingredient was of course a brand new database:

./dbca -silent -createDatabase -gdbName em12
-templateName General_Purpose.dbc
-emConfiguration none
-sysPassword sys_pwd
-systemPassword sys_pwd
-storageType ASM
-asmsnmpPassword sys_pwd
-diskGroupName DATA
-redoLogFileSize 100
-initParams log_buffer=10485760,processes=500,
session_cached_cursors=300,db_securefile=PERMITTED
-totalMemory 2048

“Delicious! That’s what I dreamt of! Where did you find it?”, the server could not hide his admiration.

“Well, you have not tried desert yet. When you have it, you will forget all those dishes that you had before.”

“Hmm, you intrigue me. Definitely I will have it!”

“Anything for you, my friend”, and the DBA started his final dish:
He brewed coffee – installed jdk 7.25
Made secret sauce – installed WebLogic Server

/usr/java/jdk1.7.0_25/bin/java -d64 -jar wls1036_generic.jar
-mode=silent -silent_xml=wls.xml -log=wls.log

wls.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<domain-template-descriptor>
<input-fields>
<data-value name="BEAHOME" value="/u01/em12" />
<data-value name="WLS_INSTALL_DIR" value="/u01/em12/wlserver_10.3" />
<data-value name="COMPONENT_PATHS" value="WebLogic Server" />
</input-fields>
</domain-template-descriptor>

And cooked his famous, rich and delicious desert:

./runInstaller -silent
-responseFile /home/oracle/install/em/response/new_install.rsp
-staticPortsIniFile /tmp/ports.ini
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/em12
AGENT_BASE_DIR=/u01/agent12c
WLS_ADMIN_SERVER_USERNAME=weblogic
WLS_ADMIN_SERVER_PASSWORD=Sun03day03
WLS_ADMIN_SERVER_CONFIRM_PASSWORD=Sun03day03
NODE_MANAGER_PASSWORD=Sun03day03
NODE_MANAGER_CONFIRM_PASSWORD=Sun03day03
ORACLE_INSTANCE_HOME_LOCATION=/u01/gc_inst
CONFIGURE_ORACLE_SOFTWARE_LIBRARY=true
SOFTWARE_LIBRARY_LOCATION=/u01/sw_lib
DATABASE_HOSTNAME=oem12c.home
LISTENER_PORT=1521
SERVICENAME_OR_SID=em12
SYS_PASSWORD=sys_pwd
SYSMAN_PASSWORD=Sun03day03
SYSMAN_CONFIRM_PASSWORD=Sun03day03
DEPLOYMENT_SIZE="SMALL"
MANAGEMENT_TABLESPACE_LOCATION="+DATA"
CONFIGURATION_DATA_TABLESPACE_LOCATION="+DATA"
JVM_DIAGNOSTICS_TABLESPACE_LOCATION="+DATA"
AGENT_REGISTRATION_PASSWORD=Sun03day03
AGENT_REGISTRATION_CONFIRM_PASSWORD=Sun03day03

“You made my day!” exclaimed the server when nothing was left on his plate.

“Anytime my friend!” smiled DBA in response.

He was as happy as any chef that the cooking went the way it was planned and the final product was just as the recipe had said.

Have a good day!