Oracle® Database Installation Guide
10g Release 1 (10.1.0.3) for Linux x86-64 Part No. B14399-01 |
|
![]() Previous |
![]() Next |
This chapter describes how to install and configure Oracle products using response files. It includes information about the following topics:
You can automate the installation and configuration of Oracle software, either fully or partially, by specifying a response file when you start the Oracle Universal Installer. The Installer uses the values contained in the response file to provide answers to some or all of the Installer prompts:
If you include responses for all of the prompts in the response file and specify the -silent
option when starting the Installer, then the Installer 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.
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 suppressed mode. During a suppressed-mode installation, the 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 the Installer in silent mode or suppressed mode:
Mode | Uses |
---|---|
Silent | Use silent mode if you want to:
The Installer displays progress information in the terminal that you used to start it, but it does not display any of the 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 the Installer prompts.
If you do not specify information required for a particular Installer screen in the response file, the Installer displays that screen. It suppresses screens for which you have provided all of the required information. |
Before you create a database that uses ASM, you must run the root.sh
script. For this reason, you cannot create a database using ASM as the storage option for database files during a silent-mode installation. Instead, you can complete a software-only installation using silent-mode, then run the NetCA and DBCA configuration assistants in silent mode after you have completed the software-only installation and you have run the root.sh
script.
Note: This limitation applies only to databases that use ASM as the storage option for database files. You can create a database that uses the file system or raw devices storage option during a silent-mode installation. |
To install and configure Oracle products using the Installer in silent or suppressed mode, follow these steps:
Note: You must complete all required pre-installation tasks on a system before running the Installer in silent or suppressed mode. |
Create the oraInst.loc
file.
Prepare a response file.
Run the Installer in silent or suppressed mode.
If you completed a software-only installation, run NetCA and DBCA in silent or non-interactive mode if required.
These steps are described in the following sections.
If you plan to install Oracle products using the 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 the Installer creates the inventory of Oracle products installed on the system.
Note: If Oracle software has been installed previously on the system, theoraInst.loc file might already exist. If the file does exist, you do not need to create a new file.
|
To create the oraInst.loc
file, follow these steps:
Switch user to root
:
$ su - root
Change directory as follows:
# cd /etc
Use a text editor to create the oraInst.loc
file, containing the following lines:
inventory_loc=ORACLE_BASE/oraInventory
inst_group=
In this example, ORACLE_BASE
is the path of the Oracle base directory, for example, /01/app/oracle
.
Enter the following commands to set the appropriate owner, group, and permissions on the oraInst.loc
file:
# chown oracle:oinstall oraInst.loc # chmod 664 oraInst.loc
There are two methods that you can use to prepare a response file for use during silent-mode or suppressed-mode installations:
Edit a response file template
This method is most useful for the Enterprise Edition or Standard Edition installation types.
Record a response file using the Installer
This method is most useful for Custom or software-only installations.
The following subsections describe each method.
Editing a Response File Template
Oracle provides response file templates for each product and installation type, and for each configuration tool. These files are located in the response
directory on the CD-ROM or the db
/response
directory on the DVD-ROM.
Note: If you copied the software to a hard disk, the response files are located in theDisk1/response directory.
|
Table B-1 lists the response files provided with Oracle Database.
Table B-1 Response Files
To prepare a response file:
Copy the response file from the response file directory to a directory on your system:
$ cp /directory_path
/response/response_file.rsp local_directory
In this example, directory_path
is the CD-ROM mount point directory or the db
directory on the DVD-ROM. If you have copied the software to a hard drive, you can edit the file in the response
directory if you prefer.
Open the response file in a text editor:
$ vi /local_dir
/response_file.rsp
Edit the file, following the instructions in the file.
Note: The Installer or configuration assistant fails if you do not correctly configure the response file. See "Silent-Mode Response File Error Handling" for more information about troubleshooting a failed silent-mode installation. |
Change the permissions on the file to 700:
$ chmod 700 /local_dir/response_file.rsp
Caution: A fully specified response file for an Oracle Database installation contains the passwords for database administrative accounts and for a user that is a member of the OSDBA group (required for automated backups). Make sure that only the Oracle software owner user can view or modify response files or consider deleting them after the installation succeeds. |
Recording a Response File
You can use the 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 the Installer on the Summary page, before it starts to copy the software to the system.
To record a new response file:
Complete the pre-installation tasks listed in Chapter 2.
When you run the Installer to record a response file, it checks the system to verify that it meets the requirements to install the software. For this reason, Oracle recommends that you complete all of the required pre-installation tasks and record the response file while completing an installation.
If you have not installed Oracle software on this system previously, create the oraInst.loc
file, as described in the previous section.
Make sure that the Oracle software owner user (typically oracle
) has permissions to create or write to the Oracle home path that you will specify when you run the Installer.
To record a response file, enter a command similar to the following to start the Installer:
Note: Do not specify a relative path to the response file. If you specify a relative path, the Oracle Universal Installer fails. |
$ /directory_path/runInstaller -record -destinationFile filename
In the previous example:
directory_path
is either the CD-ROM mount point directory, the path of the db
directory on the DVD-ROM, or the path of the Disk1
directory on the hard drive
The -record
parameter specifies that you want to record the responses that you enter in a response file
filename
is the full path and file name of the response file that you want to record
On each Installer screen, specify the required information.
When the Installer displays the Summary screen, do one of the following:
Click Install to create the response file, then continue with the installation.
Click Cancel, then Yes to create the response file but exit from the Installer without installing the software.
The response file is saved in the location that you specified using the -destinationFile
option.
If you did not complete the installation, delete the Oracle home directory that the Installer created using the path you specified on the Specify File Locations screen.
Before using the recorded response file on another system, use any text editor to edit the file and make any required changes.
Use the comments in the file as a guide when editing it.
To run the Oracle Universal Installer in silent or suppressed mode, follow these steps:
Complete the pre-installation tasks listed in Chapter 2.
Log in as the Oracle software owner user (typically oracle
).
If you are completing a suppressed-mode installation, set the DISPLAY environment variable.
Note: You do not have to set the DISPLAY environment variable if you are completing a silent-mode installation. |
To start the Installer in silent or suppressed mode, enter a command similar to the following:
Note: Do not specify a relative path to the response file. If you specify a relative path, the Oracle Universal Installer fails. |
$ /directory_path/runInstaller [-silent] -responseFile filename
In the these examples:
directory_path
is either the CD-ROM mount point directory, the path of the db
directory on the DVD-ROM, or the path of the Disk1
directory on the hard drive
The -silent
option indicates that you want to run the Installer in silent mode
filename
is the full path and filename of the installation response file that you configured
Note: For more information about other options for therunInstaller command, enter the following command:
$ /directory_path/runInstaller -help
|
When the installation completes, log in as the root
user and run the root.sh
script:
$ su
# /oracle_home_path/root.sh
You can run NetCA in silent mode to configure and start an Oracle Net listener on your system, configure naming methods, and configure Oracle Net service names. To run NetCA in silent mode, you must copy and edit a response file template. Oracle provides a response file template named netca.resp
in the response
directory on the CD-ROM or in the db
/response
directory on the DVD-ROM.
Note: If you copied the software to a hard disk, the response file template is located in theDisk1/response directory.
|
To run NetCA in silent mode, follow these steps:
Copy the netca.rsp
response file template from the response file directory to a directory on your system:
$ cp /directory_path/response/netca.rsp local_directory
In this example, directory_path
is the CD-ROM mount point directory or the db
directory on the DVD-ROM. If you have copied the software to a hard drive, you can edit the file in the response
directory if you prefer.
Open the response file in a text editor:
$ vi /local_dir/netca.rsp
Edit the file, following the instructions in the file.
Note: NetCA fails if you do not correctly configure the response file. |
Log in as the Oracle software owner user (typically oracle
) and set the ORACLE_HOME environment variable to specify the correct Oracle home directory.
Enter a command similar to the following to run NetCA in silent mode:
$ $ORACLE_HOME/bin/netca /silent /responsefile=/local_dir/netca.rsp
In this example:
The /silent
option indicates that you want to run NetCA in silent mode
local_dir
is the full path of the directory where you copied the netca.rsp
response file template
You can run DBCA in non-interactive or silent mode to configure and start an Oracle Database on your system. To run DBCA in non-interactive or silent mode, you must copy and edit a response file template. Oracle provides a response file template named dbca.resp
in the response
directory on the CD-ROM or in the db
/response
directory on the DVD-ROM.
Note: If you copied the software to a hard disk, the response file template is located in theDisk1/response directory.
|
Using DBCA in Non-interactive Mode
In non-interactive mode, DBCA uses values that you specify, in the response file or as command line options, to create a database. As it configures and starts the database, it displays a window that contains status messages and a progress bar. The window that it displays is the same window that is displayed when you choose to create a preconfigured database during an Enterprise Edition or Standard Edition installation.
To run DBCA in non-interactive mode, you must use a graphical display and set the DISPLAY environment variable.
Using DBCA in Silent Mode
In silent mode, DBCA uses values that you specify, in the response file or as command line options, to create a database. DBCA does not display any screens or information while it creates the database.
Running DBCA in Non-interactive or Silent Mode
To run DBCA in non-interactive or silent mode, follow these steps:
Note: 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 DBCA. For information about the list of options supported, enter the following command:$ $ORACLE_HOME/bin/dbca -help |
Copy the dbca.rsp
response file template from the response file directory to a directory on your system:
$ cp /directory_path/response/dbca.rsp local_directory
In this example, directory_path
is the CD-ROM mount point directory or the db
directory on the DVD-ROM. If you have copied the software to a hard drive, you can edit the file in the response
directory if you prefer.
Open the response file in a text editor:
$ vi /local_dir/dbca.rsp
Edit the file, following the instructions in the file.
Note: DBCA fails if you do not correctly configure the response file. |
Log in as the Oracle software owner user (typically oracle
) and set the ORACLE_HOME environment variable to specify the correct Oracle home directory.
If you intend running DBCA in non-interactive mode, set the DISPLAY environment variable.
Enter a command similar to the following to run DBCA in non-interactive or silent mode with a response file:
$ $ORACLE_HOME/bin/dbca {-progressOnly | -silent} [-cloneTemplate] \ [-datafileDestination /datafilepath] -responseFile /local_dir/dbca.rsp
In this example:
The -silent
option indicates that you want to run DBCA in silent mode
The -progressOnly
option indicates that you want to run DBCA in non-interactive mode
The -cloneTemplate
option is required if you want to create one of the following preconfigured databases:
General Purpose
Transaction Processing
Data Warehouse
-datafileDestination
specifies the parent directory where you want to create the database files. If you do not specify this option, the parent directory for database files is the $ORACLE_BASE/oradata
directory if the ORACLE_BASE environment variable is set, or the $ORACLE_HOME/oradata
directory if ORACLE_BASE is not set.
local_dir
is the full path of the directory where you copied the dbca.rsp
response file template