User Rating: 3 / 5

Star ActiveStar ActiveStar ActiveStar InactiveStar Inactive

Quick article to show how to install Oracle 12c RDBMS software in silent mode.

Before starting, you need :
- Oracle Linux 7 installed
    (Check how to Install Oracle Linux 7 on VirtualBox)
- Oracle Linux configured for Oracle
    (Check how to Configure Oracle Linux for Oracle Database 12c)
- Oracle Grid Infrastructure installed
    (Optional but recommended, check how to Install Oracle Grid Infrastructure)
- Oracle 12c rdbms installation files downloaded (Available on OTN)
- at least 8GB free disk space

Install Oracle 12c

Uncompress installation files

# Go to folder containing installation zip files first
[oracle]$ cd /mnt/nfs/ora_instfiles/Oracle12c/
# Then unzip
[oracle]$ unzip /mnt/nfs/ora_instfiles/Oracle12c/

Manual silent install

# Create directories
[oracle]$ ORACLE_INVENTORY_LOC=/u01/app/oraInventory
[oracle]$ ORACLE_BASE=/u01/app/oracle
[oracle]$ ORACLE_HOME=$ORACLE_BASE/product/12.2.0/db1

[oracle]$ mkdir -p $ORACLE_INVENTORY_LOC
[oracle]$ mkdir -p $ORACLE_HOME

# Run silent installer
[oracle]$ cd /mnt/nfs/ora_instfiles/Oracle12c/database
[oracle]$ ./runInstaller -silent                \
  -responseFile $PWD/response/db_install.rsp    \
  SELECTED_LANGUAGES=en                         \
  UNIX_GROUP_NAME=oinstall                      \
  ORACLE_BASE=$ORACLE_BASE                      \
  ORACLE_HOME=$ORACLE_HOME                      \
  oracle.install.option=INSTALL_DB_SWONLY       \
  oracle.install.db.CLUSTER_NODES=oralab01      \
  oracle.install.db.InstallEdition=EE           \
  oracle.install.db.isCustomInstall=false       \
  oracle.install.db.OSDBA_GROUP=dba             \
  oracle.install.db.OSOPER_GROUP=oper           \
  oracle.install.db.OSBACKUPDBA_GROUP=backupdba \
  oracle.install.db.OSDGDBA_GROUP=dgdba         \
  oracle.install.db.OSKMDBA_GROUP=kmdba         \
  oracle.install.db.OSRACDBA_GROUP=racdba       \
  DECLINE_SECURITY_UPDATES=true                 \

    Starting Oracle Universal Installer...

    Checking Temp space: must be greater than 500 MB.   Actual 9107 MB    Passed
    Checking swap space: must be greater than 150 MB.   Actual 9208 MB    Passed
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-10-07_01-04-23PM. Please wait ...You can find the log of this install session at:
    The installation of Oracle Database 12c was successful.
    Please check '/u01/app/oraInventory/logs/silentInstall2017-10-07_01-04-23PM.log' for more details.

    As a root user, execute the following script(s):
            1. /u01/app/oracle/product/12.2.0/db1/

    Execute /u01/app/oracle/product/12.2.0/db1/ on the following nodes:

    Successfully Setup Software.

Then execute /u01/app/oracle/product/12.2.0/db1/ as root as asked.
Oracle 12c is now installed.

Post Installation

Disable database options

If you don't have some additional licenses and you want to make sure you don't use it, You can disable/enable database option as follow :

[oracle]$ cd $ORACLE_HOME

# Disable Oracle Data Mining RDBMS
[oracle]$ chopt disable dm

    Writing to /u01/app/oracle/product/11.2.0/db_1/install/disable_dm.log...
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ dm_off
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ ioracle

# Disable Oracle OLAP
[oracle]$ chopt disable olap

    Writing to /u01/app/oracle/product/12.2.0/db_1/install/disable_olap.log...
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ olap_off
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ ioracle

# Disable Oracle Real Application Testing
[oracle]$ chopt disable rat

    Writing to /u01/app/oracle/product/12.2.0/db_1/install/disable_rat.log...
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ rat_off
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ ioracle

# Disable Oracle Partitioning
[oracle]$ chopt disable partitioning

    Writing to /u01/app/oracle/product/12.2.0/db_1/install/disable_partitioning.log...
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ part_off
    %s_unixOSDMakePath% -f /u01/app/oracle/product/12.2.0/db_1/rdbms/lib/ ioracle

Sqlplus prompt

To set SQLPLUS prompt, add to $ORACLE_HOME/sqlplus/admin/glogin.sql or login.sql

define _editor=vi


# Oracle rdbms deinstallation
[oracle]$ cd $ORACLE_HOME/deinstall
[oracle]$ ./deinstall

What next


Oracle Database Quick Installation Guide for Linux x86-64 (
Enabling and Disabling Database Options (
Silent install of Oracle 11g RDBMS (

Enjoyed this article? Please like it or share it.

Add comment

Please connect with one of social login below (or fill up name and email)


Security code