A Using Response Files for Noninteractive Installation
The following topics describe how to install and configure Oracle products using response files.
Introduction
You can automate the installation and configuration of Oracle software, either fully or partially, by specifying a response file when you start Oracle Universal Installer. Oracle Universal Installer uses the values contained in the response file to provide answers to some or all of Oracle Universal Installer prompts:
-
If you include responses for all of the prompts in the response file and specify the
-silent
option when starting Oracle Universal Installer, then Oracle Universal Installer runs in silent mode. During a silent-mode installation, Oracle Universal Installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it. -
If you include responses for some or all of the prompts in the response file and omit the
-silent
option, then Oracle Universal Installer runs in suppressed mode. During a suppressed-mode installation, Oracle Universal Installer displays only the screens for which you did not specify all required information. You can also use variables in the response file or command-line options to suppress other installer screens, such as the Welcome screen or Summary screen, that do not prompt for information.
The following table describes several reasons why you might want to run Oracle Universal Installer in silent mode or suppressed mode:
Mode | Uses |
---|---|
Silent |
Use silent mode if you want to:
Oracle Universal Installer displays progress information in the terminal that you used to start it, but it does not display any of Oracle Universal Installer screens. |
Suppressed |
Use suppressed mode if you want to complete similar Oracle software installations on more than one system, providing default answers to some, but not all of Oracle Universal Installer prompts. If you do not specify information required for a particular Installer screen in the response file, Oracle Universal Installer displays that screen. It suppresses screens for which you have provided all of the required information. |
Installation Overview
To install and configure Oracle products using Oracle Universal Installer in silent or suppressed mode, follow these steps:
- Create the
oraInst.loc
file. - Prepare a response file.
- Run Oracle Universal Installer in silent or suppressed mode.
These steps are described in the following sections.
Creating the oraInst.loc File
If you plan to install Oracle products using Oracle Universal Installer in silent or suppressed mode, you must manually create the oraInst.loc
file if it does not already exist. This file specifies the location of the Oracle Inventory directory where Oracle Universal Installer creates the inventory of Oracle products installed on the system.
Note:
If Oracle software has been installed previously on the system, the oraInst.loc
file might already exist. If the file does exist, you do not need to create a file.
To create the oraInst.loc
file, follow these steps:
Preparing a Response File
This section describes the methods that you can use to prepare a response file for use during silent-mode or suppressed-mode installations:
Editing a Response File Template
Oracle provides response file templates for each product and installation type, and for each configuration tool. The response files for Oracle Database Gateway, tg.rsp
and netca.rsp
are located in the response
directory on the media.
Note:
If you copied the software to a hard disk, the response files are located in the Disk1/response
directory.
To prepare a response file:
Recording a Response File
This method is most useful for Custom or software-only installations.
You can use Oracle Universal Installer in interactive mode to record a response file that you can edit and then use to complete silent-mode or suppressed-mode installations. When you are recording the response file, you can either complete the installation, or you can exit from Oracle Universal Installer on the Summary page, before it starts to copy the software to the system.
To record a new response file: