8i | 9i | 10g | 11g | 12c | 13c | 18c | Misc | PL/SQL | SQL | RAC | WebLogic | Linux

Home » Articles » Misc » Here

Oracle Universal Installer (OUI) Silent Installations

The Oracle Universal Installer (OUI) is a GUI tool requiring user input to define the type of installation to be performed. Alternatively, a response file can be used to provide all the required information for the installation, so no additional user input is required. There are two ways of creating a response file.

The process of running silent installations is similar to using Kickstart for Linux installations. This article explains how to record a response file using the OUI.

The example in this article is for Oracle 11gR2, but method of using response files is the same in later versions, including Oracle 12c.

Prior to Oracle 11g, to create a response file you would start the OUI with the following command and perform an installation as normal. The "-record" parameter tells the installer to write to the response file and the "-destinationFile" parameter defines the name and location of the response file.

./runInstaller -record -destinationFile /tmp/10gR2.rsp

From 11g onward the "-record" option is no longer supported. Instead, the final OUI screen before starting the installation always gives you the option of saving a response file.

Save Response File

The response files are quite large, containing a large number of parameters and comments. The following files are examples of response files from different Oracle Database versions.

A silent installation is initiated using the following command. The "-silent" parameter indicates that this is a silent installation and the "-responseFile" parameter defines the name and location of the response file.

# Normal.
./runInstaller -silent -responseFile /tmp/12cR2.rsp

# Ignore Prerequisites.
./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile /tmp/12cR2.rsp

Some useful "runInstaller" flags include the following. The full list is available here.

-silent            : Run in silent mode.
-responsefile      : Specified the location of the response file. 
-ignoreSysPrereqs  : Ignore the system prerequisite checks.
-ignorePrereq      : Ignore the general prerequisite checks.
-waitforcompletion : Stop the installer spawning as a separate process, so scripts happen in sequence.
-invPtrLoc         : Used to specify the location of the oraInst.loc file, which in turn specifies the inventory details.
-force             : Installation continues when a non-empty directory is used for the ORACLE_HOME.
-showProgress      : Displays line of "." to show something is happeing.

An alternative to amending a response file is to use the default response file from the media and alter the parameters inline. Here is an example of a 12cR1 installation using the default response file.

# 12cR1 and below.

./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent \
    -responseFile /tmp/database/response/db_install.rsp \
    oracle.install.option=INSTALL_DB_SWONLY \
    ORACLE_HOSTNAME=ol7-112.localdomain \
    UNIX_GROUP_NAME=oinstall \
    INVENTORY_LOCATION=/u01/app/oraInventory \
    SELECTED_LANGUAGES=en,en_GB \
    ORACLE_HOME=/u01/app/oracle/product/11.2.0.4/db_1 \
    ORACLE_BASE=/u01/app/oracle \
    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 OS group name parameters were renamed in 12cR2 to include a prefix of "OS" and the OSRACDBA parameter is now mandatory, as shown below.

# 12cR2.

./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent \
    -responseFile /tmp/database/response/db_install.rsp \
    oracle.install.option=INSTALL_DB_SWONLY \
    ORACLE_HOSTNAME=ol7-112.localdomain \
    UNIX_GROUP_NAME=oinstall \
    INVENTORY_LOCATION=/u01/app/oraInventory \
    SELECTED_LANGUAGES=en,en_GB \
    ORACLE_HOME=/u01/app/oracle/product/12.2.0.1/db_1 \
    ORACLE_BASE=/u01/app/oracle \
    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

The "-ignoreSysPrereqs" and "-showProgress" parameters tell the installer to ignore any failed prerequisite checks and to show the installation process. The latter is very useful when scripting installations.

A silent installation using the 11gR2.rsp file results in the following output.

$ ./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile /tmp/11gR2.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 92129 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3967 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-07-18_08-00-51AM. Please wait ...
$ [WARNING] [INS-13014] Target environment do not meet some optional requirements.
   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2016-07-18_08-00-51AM.log
   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2016-07-18_08-00-51AM.log.
   Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2016-07-18_08-00-51AM.log

Prepare in progress.
..................................................   9% Done.

Prepare successful.

Copy files in progress.
..................................................   14% Done.
..................................................   20% Done.
..................................................   26% Done.
..................................................   31% Done.
..................................................   36% Done.
..................................................   41% Done.
..................................................   46% Done.
..................................................   51% Done.
..................................................   56% Done.
..................................................   63% Done.
..................................................   68% Done.
..................................................   73% Done.
..................................................   78% Done.
..................................................   83% Done.
..............................
Copy files successful.

Link binaries in progress.
..........
Link binaries successful.

Setup files in progress.
..................................................   88% Done.
..................................................   94% Done.

Setup files successful.
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2016-07-18_08-00-51AM.log' for more details.

Execute Root Scripts in progress.

As a root user, execute the following script(s):
        1. /u01/app/oraInventory/orainstRoot.sh
        2. /u01/app/oracle/product/11.2.0.4/db_1/root.sh


..................................................   100% Done.

Execute Root Scripts successful.
Successfully Setup Software.

$

Once the root scripts are run as instructed, the installation is complete.

For more information see:

Hope this helps. Regards Tim...

Back to the Top.