Skip Headers

Oracle® Database Client Installation Guide
10g Release 1 (10.1) for UNIX Systems: AIX-Based Systems, hp HP-UX PA-RISC (64-bit), hp Tru64 UNIX, Linux x86, and Solaris Operating System (SPARC)
Part No. B12087-01
  Go To Table Of Contents
Contents
Go To Index
Index

Previous Next  

B Non-interactive Installation and Configuration

This chapter describes how to install and configure Oracle products non-interactively using response files. It includes information on the following topics:

Introduction

You can install Oracle software non-interactively 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 Installer prompts in the response file, then you can run a completely non-interactive installation without seeing the Installer windows.

To install and configure Oracle products non-interactively, complete the following steps:

  1. Create the oraInst.loc file.

  2. Prepare a response file.

  3. Run the Installer non-interactively.

These steps are described in the following sections.

Create the oraInst.loc File

If you plan to install Oracle products non-interactively, 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, the oraInst.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, perform the following steps:

  1. Switch user to root:

    $ su - root
    
    
  2. On HP-UX, Solaris, and Tru64 UNIX, create the /var/opt/oracle directory if it does not exist:

    # mkdir /var/opt/oracle
    
    
  3. Change directory as follows, depending on your operating system:

    • AIX and Linux:

      # cd /etc
      
      
    • HP-UX, Solaris, and Tru64 UNIX:

      # cd /var/opt/oracle
      
      
  4. 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.

  5. 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
    

Prepare Response Files

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 client/response directory on the DVD-ROM.


Note:

If you copied the software to a hard disk, the response files are located in the Disk1/response directory.

Table B-1 lists the response files provided with Oracle Client.

Table B-1 Response Files

Response File Description
instantClient.rsp Instant Client installation of Oracle Client
clientadmin.rsp Administrator installation of Oracle Client
clientruntime.rsp Runtime installation of Oracle Client
clientcustom.rsp Custom installation of Oracle Client

To prepare a response file:

  1. 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 client 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.

  2. Open the response file in a text editor:

    $ vi /local_dir/response_file.rsp
    
    
  3. 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 Response File Error Handling" for more information on troubleshooting a failed non-interactive installation.

Run the Installer Non-interactively

To run the Oracle Universal Installer non-interactively, 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 previous example: