Search

Thursday, June 23, 2016

Oracle  client silent installation without response file for DB

I’m often asked questions on Oracle database or client software installation in Silent Mode with using response file. I used to do it in the past but not anymore. The silent software installation with Oracle response file is still available but I found another handy option in Oracle 11g/12c of doing the same. The same silent installation can be done directly from the command prompt without using an Oracle response file but it requires a minimum set of variables (from the response file) as arguments to the Oracle Universal Installer (OUI) (i.e “runInstaller or setup.exe”).
I give a few tested examples below to install Oracle software in Silent mode without a response file:

Oracle Database 11.2 on Linux silent installation (Enterprise Edition Software Only)

cd /opt/oracle/stage/database
./runInstaller -silent -debug -force \
FROM_LOCATION=/opt/oracle/stage/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/opt/oracle/oraInventory \
ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1 \
ORACLE_BASE=/opt/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.isCustomInstall=false \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=oper \
DECLINE_SECURITY_UPDATES=true

Oracle Database 12.1 on Linux silent installation (Enterprise Edition Software Only)

cd /opt/oracle/stage/database
./runInstaller -silent -debug -force \
FROM_LOCATION=/opt/oracle/stage/database/stage/products.xml \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
INVENTORY_LOCATION=/opt/oracle/oraInventory \
ORACLE_HOME=/opt/oracle/product/12.1.0/dbhome_1 \
ORACLE_BASE=/opt/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.DBA_GROUP=dba \
oracle.install.db.OPER_GROUP=oper \
oracle.install.db.BACKUPDBA_GROUP=dba \
oracle.install.db.DGDBA_GROUP=dba \
oracle.install.db.KMDBA_GROUP=dba \
DECLINE_SECURITY_UPDATES=true

Oracle Client 11.2 on Windows silent installation (Install Type: Administrator)

cd C:\temp\win32_11gR2_client\client
.\setup.exe -silent -debug -force -waitforcompletion FROM_LOCATION=C:\temp\win32_11gR2_client\client\stage\products.xml oracle.install.client.installType=”Administrator” ORACLE_HOME=”C:\oracle\product\11.2.0\Client” ORACLE_HOME_NAME=”OraClient11g_Home1″ ORACLE_BASE=”C:\oracle” DECLINE_SECURITY_UPDATES=true

Note :
1) The following OUI options are not mandatory but can be used when required:
– force : Allows silent mode installation into a non-empty ORACLE_HOME directory.
– debug : Displays extra debug information from OUI. If you want less output just omit it.
2) The following OUI variables are not mandatory but can be used when required:
– ORACLE_HOME_NAME – if not used , OUI will assign the name automatically (OraClient11g_Home1, OraClient11g_Home2, .. OraClient12g_Home1, OraClient11g_Home2,..)
3) Following are new groups introduced in Oracle 12.1:
oracle.install.db.BACKUPDBA_GROUP=dba \
oracle.install.db.DGDBA_GROUP=dba \
oracle.install.db.KMDBA_GROUP=dba \
That was the Oracle database or client 11g, 12c software installation in Silent Mode without using response file. Please share your experience and other examples on the same in comments below.