This chapter describes how to install and configure Oracle products noninteractively using response files. It includes information about the following topics:
Section B.3, "Running Oracle Universal Installer in Silent Mode or Suppressed Mode"
Section B.4, "Running Oracle Network Configuration Assistant in Silent Mode"
Section B.5, "Running Database Configuration Assistant in Noninteractive or Silent Mode"
A silent installation with Oracle Universal Installer is noninteractive, meaning that it takes place without using the Java graphical user interface (GUI). Oracle Universal Installer gets its information from a text file that is specified at the command line by using the -RESPONSEFILE
argument instead of interactive GUI input and output. If the -RESPONSEFILE
flag is given, then the installation is assumed to be a silent mode type.
Note:
Because the design of Oracle Universal Installer causes GUI classes to be loaded (but not displayed), a silent installation still requires an X-Windows connection.A silent installation can also be performed in BATCH
mode, if the process has established an X Windows connection through the SET DISPLAY
command.
This section discusses the following topics:
A response file contains answers to installation questions that otherwise would be provided by the user in an interactive installation session. Each answer is stored as a value for a variable that is identified in the response file. For example, values for ORACLE_HOME
or Install Type
can be set automatically within the response file. Response file templates are generated by the installation developer. The response file template for the installation of the product can be found on the installation DVD under the [DATABASE.RESPONSE]
directory. You should be able to find one for your choice of install type (for example, ENTERPRISE.RSP
for an Enterprise Edition server installation, or CUSTOM.RSP
for a custom installation).
Silent installations can be useful to install an Oracle product multiple times on multiple computers, or if you prefer not to use the GUI because of performance reasons over a slow remote X Windows connection. If the options that you select while installing on each computer are always the same, then you save the time of reviewing each installation screen and selecting the various installation options.
Silent installations can also ensure that multiple users in your organization use the same installation options when they install Oracle products. You can therefore more easily support those users because you already know what components and options have been installed on each computer.
Before you perform a silent installation, you should review the settings in the response file template that is provided with the Oracle product.
If the product installation includes a response file template, then you can find it on the shipped media in the device
:[DISK1.RESPONSE]
directory. For a list of response files, refer to Section B.1.3.1, "List of Response File Names". Mandatory items have the following comment just before the definition:
# OPENVMS_VALUE_REQUIRED
Three values must be provided:
FROM_LOCATION
ORACLE_HOME
ORACLE_HOME_NAME
FROM_LOCATION
is the complete path of the source of the products to be installed (in other words, to the PRODUCTS.XML
file in the STAGE
subdirectory of the DATABASE
, CLIENT
, COMPANION
, or CLUSTERWARE
main directory of the DVD) from the shipped media. If contents of shipped media were copied to a local device, then specify that path. ORACLE_HOME
is the directory into which the Oracle software will be installed. The account from which Oracle Universal Installer is run must have appropriate privileges to create a root-level directory if the directory that was specified for ORACLE_HOME
does not already exist.
Note:
FROM_LOCATION
must be in UNIX-style syntax.
ORACLE_HOME
must be on an ODS-5 disk
To modify the response file:
Make a copy of the response file for the product, and open it in a text editor.
Search for the three items that are listed in the preceding paragraph (or for the string OPENVMS_VALUE_REQUIRED
), and provide values for those items.
Modify other fields as applicable (refer to comments within the response file that you are modifying).
The following table lists the response file names and their descriptions:
You can install Oracle software noninteractively by specifying a response file when you start Oracle Universal Installer. The 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 Oracle Universal Installer prompts in the response file, then you can run a completely noninteractive installation.
To install and configure Oracle products noninteractively, complete the following steps:
These steps are described in the following sections.
If you plan to install Oracle products noninteractively, then 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 that are installed on the system.
Note:
If Oracle software has been installed previously on the system, then theORAINST.LOC
file may already exist. If the file does exist, then you do not need to create a new file.To create the ORAINST.LOC
file, perform the following steps:
Set default directory to the Oracle oraInventory
directory.The ORAINST.LOC
file resides in a subdirectory under the SYS$LOGIN
$ SET DEFAULT logindisk:[logindir.nodename]
Use a text editor to create the ORAINST.LOC
file, containing the following lines:
inventory_loc=oraInventory_location inst_group=group_id
In this example, oraInventory_location
is the location of the Oracle Inventory directory which is on an ODS-5 volume, and group_id
is the group ID of the Oracle Database account.
Set the file protection on the ORAINST.LOC
file as follows:
$ SET FILE/PROT=(O:RWED,S:RWED,:rwe,w:re):oraInst.loc
Oracle provides response file templates for each product and installation type and for each configuration tool. These files are located in the [
DATABASE.RESPONSE]
directory on the installation media.
Table B-1 lists the response files that are provided with Oracle Database 10g.
Response File | Description |
---|---|
Enterprise Edition installation of Oracle Database |
|
Custom installation of Oracle Database |
|
Database Configuration Assistant |
|
Oracle Net Services Configuration Assistant |
To prepare a response file:
Copy the response file from the response file directory to a directory on the system:
$ COPY dvd_device:[DB.RESPONSE]response_file dest_path
In this example, src_path
is the installation media mount point directory or the db
directory on the DVD. If you have copied the software to a hard drive, then you can edit the file in the RESPONSE
directory if you prefer.
Open the response file in a text editor:
$ EDIT [dest_path]response_file
Edit the file by following the directions in Section B.1.3, "Modifying a Response File".
Note:
Oracle Universal Installer or the configuration assistant fails if you do not correctly configure the response file. Refer to Section G.6, "Silent Response File Error Handling" for more information about troubleshooting a failed noninteractive installation.To run Oracle Universal Installer in silent mode or suppressed mode, use the following steps:
Complete the preinstallation tasks listed in Chapter 2, "Preinstallation Tasks".
Log in to the Oracle Database account (typically, oracle
).
If you are performing a suppressed-mode installation, set the DISPLAY
.
To start Oracle Universal Installer in silent mode or suppressed mode, enter a command similar to the following command:
$ @[directory_path]RUNINSTALLER [-SILENT] -RESPONSEFILE filename
Note:
Do not specify a relative path to the response file. If you specify a relative path, then Oracle Universal Installer fails.In the example:
directory_path
is the DATABASE
, CLIENT
, COMPANION
, or CLUSTERWARE
directory in the hard drive copy of the DVD
-SILENT
indicates that you want to run Oracle Universal Installer in silent mode.
filename
is the full path and file name of the installation response file that you configured.
You can run Oracle Network Configuration Assistant in silent mode to configure and start an Oracle Net Services listener on the system, to configure naming methods, and to configure Oracle Net Services service names. To run the Oracle Network Configuration Assistant in silent mode, you must copy and edit a response file template. Oracle provides a response file template named NETCA.RESP
in the [DATABASE.RESPONSE]
directory on the DVD.
To run Oracle Network Configuration Assistant in silent mode, perform the following steps:
Copy the NETCA.RSP
response file template from the response file directory to a directory on the system.
$ COPY [DATABASE.RESPONSE]NETCA.RSP local_directory
Open the response file in a text editor. For example:
$ $ EDIT [local_directory]NETCA.RSP
Edit the file by following the instructions in the file.
Note:
Oracle Network Configuration Assistant stops if you do not correctly configure the response file.Log in to the Oracle Database account (typically oracle
) and set your Oracle environment by running ORAUSER.COM
in the top-level Oracle home directory.
Enter a command similar to the following to run the Oracle Network Configuration Assistant in silent mode:
$ @ORA_ROOT:[BIN]NETCA -SILENT -RESPONSEFILE=[local_dir]NETCA.RSP
In this example:
/silent
option indicates that you want to run the Oracle Network Configuration Assistant in silent mode.
local_dir
is the full path of the directory where you copied the NETCA.RSP
response file template.
You can run Database Configuration Assistant in noninteractive or silent mode to configure and start Oracle Database on the system. To run Database Configuration Assistant in noninteractive or silent mode, you must copy and edit a response file template. Oracle provides a response file template named DBCA.RESP
in the [.db.response]
directory on the DVD.
Silent mode or noninteractive mode requires an appropriate response file. The following sections discuss how to use and run Database Configuration Assistant in silent mode or noninteractive mode:
Section B.5.1, "Using Database Configuration Assistant in Noninteractive Mode"
Section B.5.2, "Using Database Configuration Assistant in Silent Mode"
Section B.5.3, "Running Database Configuration Assistant in Noninteractive or Silent Mode"
In noninteractive mode, Database Configuration Assistant uses values that you specify in the response file or as command line options to create a database. As Database Configuration Assistant configures and starts the database, it displays a screen that contains status messages and a progress bar. The screen that it displays is the same screen that is displayed when you create a preconfigured database during an Enterprise Edition installation.
To run Database Configuration Assistant in noninteractive mode, you must use a graphical display and set the DISPLAY
.
In silent mode, Database Configuration Assistant uses values that you specify in the response file or as command-line options to create a database. Database Configuration Assistant does not display any screens or information while it creates the database. It logs all messages (including information, errors, and warnings) in a log file.
From the command line, enter the following command to see all of Database Configuration Assistant options that are available when you use the silent mode:
$ DBCA -help
To run Database Configuration Assistant in noninteractive or silent mode, use the following steps:
Note:
Because Database Configuration Assistant design causes GUI classes to be loaded (even in silent mode), a silent installation requires an X-Windows connection.Copy the DBCA.RSP
response file template from the response file directory to a directory on the system:
$ COPY device:[DB.RESPONSE]DBCA.RSP dest_path
In this example, src_path
is the installation media directory or the db
directory on the DVD. If you have copied the software to a hard drive, then you can edit the file in the [.DB.RESPONSE]
directory if you prefer.
Open the response file in a text editor as follows:
$ EDIT NETCA.RSP
Edit the file by following the instructions in the file.
Note:
Database Configuration Assistant stops if you do not correctly configure the response file.As an alternative to editing the response file template, you can also create a database by specifying all required information as command-line options when you run Database Configuration Assistant. For information about the supported options, enter the following command:
$ DBCA -HELP
Because of the DCL limit of eight command-line parameters on HP OpenVMS, it is not possible to specify all the required parameters to create a database directly at the command line. Therefore, as a workaround, Database Configuration Assistant command-line arguments may be placed in a file called SYS$SCRATCH:DBCA.ARGS
. The dbca.com
script looks for this file, and if present, passes the specified arguments to Database Configuration Assistant Java application. The DBCA.COM
command procedure ignores all arguments that are specified at the command line except: -SILENT
, -RESPONSEFILE
response_file
, and -HELP
. To avoid inadvertently applying the same arguments to the next invocation of Database Configuration Assistant when DBCA.ARGS
exits, if an arguments file was used, then it is renamed to SYS$SCRATCH:DBCA.ARGS_OLD
.
Log in to the Oracle Database account (typically oracle
) and set the ORACLE_HOME
logical name to specify the correct Oracle home directory.
If you intend to run Database Configuration Assistant in noninteractive mode, then set the DISPLAY
.
Enter a command similar to the following to run Database Configuration Assistant in noninteractive or silent mode with a response file:
$ DBCA -SILENT -RESPONSEFILE response_file
In the example:
-silent
indicates that you want to run Database Configuration Assistant in silent mode.
response_file
is the full path to the copy of DBCA.RSP
response file template that will be used.
The following sections contain examples that illustrate the use of silent mode.
Database Configuration Assistant Silent Mode Example 1: Creating a Clone Database
To create a clone database, enter the following in SYS$SCRATCH:DBCA.ARGS
:
-silent -createDatabase -templateName Transaction_Processing.dbc -gdbname ora10 -sid ora10 -datafileJarLocation /disk$disk1/oracle10g/ora10/assistants/dbca/templates -datafileDestination /disk$disk1/oracle10g/ora10/oradata -responseFile NO_VALUE -characterset WE8ISO8859P1
Note:
File specifications in an argument file may be in either HP OpenVMS syntax or in UNIX syntax.Then, ensure that the ORACLE_HOME
environment is set up by running:
$ @disk:[oracle-home-path]ORAUSER
For example:
$ @DISK$DISK1:[ORACLE10G.ORA10]ORAUSER
Next, set the DISPLAY
and start Database Configuration Assistant. Log files are present in the same location as with an interactive install. In this example:
DISK$DISK1:[ORACLE10G.ORA10.ADMIN.ORA10.CREATE]
In addition, check the ORA_ROOT:[ASSISTANTS.DBCA.LOGS]
directory.
Database Configuration Assistant Silent Mode Example 2: Creating a Seed Template
To create a seed template, enter the following in SYS$SCRATCH:DBCA.ARGS
:
-silent -createCloneTemplate -sourceDB ora10 -sysDBAUserName sys -sysDBAPassword change_on_install -templateName copy_of_ora10 -datafileJarLocation /disk$disk1/oracle10g/ora10/assistants/dbca/templates
Then, ensure that the oracle environment is set up by running the ORAUSER
script, set the DISPLAY
and start Database Configuration Assistant. Log files for creating a seed template are located in the ORA_ROOT:[ASSISTANTS.DBCA.LOGS]
directory.