You can install and configure Oracle Grid Infrastructure software using response files.
When you start the installer, you can use a response file to automate the installation and configuration of Oracle software, either fully or partially. The installer uses the values contained in the response file to provide answers to some or all installation prompts.
Typically, the installer runs in interactive mode, which means that it prompts you to provide information in graphical user interface (GUI) screens. When you use response files to provide this information, you run the installer from a command prompt using either of the following modes:
Silent mode
If you include responses for all of the prompts in the response file and specify the -silent option when starting the installer, then it runs in silent mode. During a silent mode installation, the installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it.
Response file mode
If you include responses for some or all of the prompts in the response file and omit the -silent
option, then the installer runs in response file mode. During a response file mode installation, the installer displays all the screens, screens for which you specify information in the response file, and also screens for which you did not specify the required information in the response file.
You define the settings for a silent or response file installation by entering values for the variables listed in the response file. For example, to specify the Oracle home name, supply the appropriate value for the ORACLE_HOME
variable:
ORACLE_HOME="OraCrs11g_home1"
Another way of specifying the response file variable settings is to pass them as command line arguments when you run the installer. For example:
-silent "ORACLE_HOME=OraCrs11g_home1" ...
Ensure that you enclose the variable and its setting in double-quotes.
See Also:
Oracle Universal Installer and OPatch User's Guide for Windows and UNIX for more information about response filesThere are several reasons for running the installer in silent mode or response file mode.
Table B-1 Reasons for Using Silent Mode or Response File Mode
Mode | Reasons to Use |
---|---|
Silent |
Use silent mode for the following installations:
OUI displays progress information on the terminal that you used to start it, but it does not display any of the installer screens. |
Response file |
Use response file mode to complete similar Oracle software installations on more than one system, providing default answers to some, but not all the installer prompts. If you do not specify information required for a particular OUI screen in the response file, then the installer displays that screen. OUI suppresses screens for which you have provided all of the required information. |
There are two methods you can use to prepare response files for silent mode or response file mode installations.
Oracle provides response file templates for each product and installation type and for each configuration tool. You can copy and modify a response file template.
You can use the installer in interactive mode to record response files, which you can then edit and use to complete silent mode or response file mode installations.
This method is useful for Advanced or software-only installations. You can save all the installation steps into a response file during installation by clicking Save Response File on the Summary page. You can use the generated response file for a silent installation later.
When you record the response file, you can either complete the installation, or you can exit from the installer on the Summary page, before the installer starts to copy the software to the local disk.
If you use record mode during a response file mode installation, then the installer records the variable values that were specified in the original source response file into the new response file.
Note:
You cannot save passwords while recording the response file.Use these steps to create a password response file for use with the configuration assistants.
filename.properties
.Example B-1 Sample Password Response File for Oracle Grid Infrastructure
This example provides a template for a password response file to use with Oracle Grid Infrastructure.
Oracle Grid Infrastructure requires passwords for Oracle Automatic Storage Management Configuration Assistant (ASMCA), and for Intelligent Platform Management Interface Configuration Assistant (IPMICA) if you have a baseboard management controller (BMC) card and you want to enable this feature. Also, if you specified an Oracle Home user for the Oracle Grid Infrastructure installation, you must specify the password as the Windows Service user password.
oracle.assistants.asm|S_ASMPASSWORD=password oracle.assistants.asm|S_ASMMONITORPASSWORD=password oracle.crs|S_BMCPASSWORD=password oracle.crs|S_WINSERVICEUSERPASSWORD=password
If you do not have a BMC card, or you do not want to enable Intelligent Platform Management Interface (IPMI), then leave the S_BMCPASSWORD input field blank.
To use a response file during installation, you start OUI from the command line, specifying the response file you created.
setup.exe
, provides several options. For information about the full set of these options, run the setup.exe
command with the -help
option, for example:
C:\..\bin> setup.exe -help
The help information appears in your session window after a short period of time.
You can run Oracle Net Configuration Assistant (NETCA) in silent mode to configure and start an Oracle Net listener on the system, configure naming methods, and configure Oracle Net service names.
Oracle provides a response file template named netca.rsp
in the response
subdirectory of:
The Oracle_home\database\inventory\response
directory after a software-only installation
The database\response
directory on the installation media or staging area
To run NETCA in silent mode, you must copy and edit a response file template.
You can create and run a response file configuration after installing Oracle software.
configToolAllCommands
.configToolAllCommands
script.The configuration assistants are started with a script called configToolAllCommands
.
When you perform an installation using silent mode or response file mode, you provide information about your servers in a response file that you otherwise provide manually using a graphical user interface. However, the response file does not contain passwords for user accounts that configuration assistants require after software installation is complete. To run the configuration assistants after the installation completes in silent mode, you must run the configToolAllCommands
script and provide the passwords used by the assistants in a password file.
You can run the configToolAllCommands
script in silent mode by using a password response file. The script uses the passwords in the file to run the configuration tools in succession to complete the software configuration. If you keep the password file to use when cloning installations, then Oracle strongly recommends that you store the password file in a secure ___location.
You can also use the password file to restart a failed installation. If you stop an installation to fix an error, then you can rerun the configuration assistants using configToolAllCommands
and a password response file.
The configToolAllCommands
password response file has the following options:
internal_component_name is the name of the component that the configuration assistant configures.
variable_name is the name of the configuration file variable.
value is the desired value to use for configuration.
The command syntax is as follows:
internal_component_name|variable_name=value
For example, to set the password for the SYS user of Oracle ASM:
oracle.assistants.asm|S_ASMPASSWORD=myPassWord
You can run the postinstallation configuration assistants with the configToolAllCommands
script.
Example B-2 Password response file for Oracle Grid Infrastructure Installation
Oracle Grid Infrastructure requires passwords for Oracle Automatic Storage Management Configuration Assistant (ASMCA), and for Intelligent Platform Management Interface Configuration Assistant (IPMICA) if you have a baseboard management controller (BMC) card and you want to enable this feature. Also, if you specified an Oracle Home user for the Oracle Grid Infrastructure installation, you must specify the password as the Windows Service user password. Provide the following response file:
oracle.assistants.asm|S_ASMPASSWORD=password oracle.assistants.asm|S_ASMMONITORPASSWORD=password oracle.crs|S_BMCPASSWORD=password oracle.crs|S_WINSERVICEUSERPASSWORD=password
If you do not have a BMC card, or you do not want to enable Intelligent Platform Management Interface (IPMI), then leave the S_BMCPASSWORD
input field blank.
Note:
If you are upgrading Oracle ASM 11g Release 1 or earlier releases, then you only need to provide the input field fororacle.assistants.asm|S_ASMMONITORPASSWORD
.Example B-3 Password response file for Oracle Real Application Clusters
Oracle Database configuration requires the SYS, SYSTEM, and DBSNMP passwords for use with Database Configuration Assistant (DBCA). The S_ASMSNMPPASSWORD
response is necessary only if the database is using Oracle ASM for storage. Similarly, the S_PDBADMINPASSWORD
password is necessary only if you create a multitenant container database (CDB) with one or more pluggable databases (PDBs). Also, if you selected to configure Oracle Enterprise Manager Cloud Control, then you must provide the password for the Oracle software installation owner for S_EMADMINPASSWORD
, similar to the following example, where the phrase password represents the password string:
oracle.assistants.server|S_SYSPASSWORD=password oracle.assistants.server|S_SYSTEMPASSWORD=password oracle.assistants.server|S_DBSNMPPASSWORD=password oracle.assistants.server|S_PDBADMINPASSWORD=password oracle.assistants.server|S_EMADMINPASSWORD=password oracle.assistants.server|S_ASMSNMPPASSWORD=password oracle.assistants.server|S_WINSERVICEUSERPASSWORD=password
If you do not want to enable Oracle Enterprise Manager for Oracle ASM, then leave those password fields blank.