Skip Headers

Oracle9i Application Server Installation Guide
Release 2 (9.0.2) for Sun SPARC Solaris

Part Number A90324-01
Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index

Go to previous page Go to next page

6
Silent and Non-Interactive Installation

This chapter guides you through the silent and non-interactive installation of Oracle9i Application Server (Oracle9iAS). The topics include:

6.1 Introduction

Oracle9iAS features two non-interacting methods of installation:

6.1.1 Silent Installation

Silent installation of Oracle9iAS is accomplished by supplying the Oracle Universal Installer with a response file and specifying the -silent flag. The installer uses the variables and values contained in this text file to provide answers to all of the installer user prompts. You include responses for all of the installer prompts in the response file. Silent installation displays no graphical output.

If this is a first time installation of Oracle9iAS, you will also need to manually create three files before starting. These files are used by Oracle Universal Installer during the installation. File creation is described in Section 6.3, "Creating Files for Silent and Non-Interactive Installation".

Following installation of Oracle9iAS, you will need to run the root.sh script. The root.sh script detects settings of environmental variables and allows you to enter the full path of the local bin directory.

Use silent installation of Oracle9iAS when there are similar installations on more than one computer. Additionally, use silent install when performing the Oracle9iAS installation from a remote location using the command line. Silent installation eliminates the need to monitor the Oracle9iAS installation because there is no graphical output and no input by the user.

See Also:

Section 2.5.3.2, "DISPLAY" for more information about remote installation.

6.1.2 Non-Interactive Installation

Non-interactive installation of Oracle9iAS is also accomplished by supplying the Oracle Universal Installer with a response file but without specifying the -silent flag. The installer uses the variables and values contained in this text file to provide answers to some or all of the installer user prompts. There is graphical output and if you have not provided responses to all of the installer prompts, you may need to enter information during the installation.

You will need to run the root.sh script during the installation process. The root.sh script detects settings of environmental variables and allows you to enter the full path of the local bin directory.

6.2 Requirements

For a complete list of installation requirements, refer to Chapter 2, "Getting Started".

6.3 Creating Files for Silent and Non-Interactive Installation

If the oraInst.loc, emtab, and oratab files do not exist on your computer, you need to create them before starting the silent installation of Oracle9iAS. These three files are typically stored in the /var/opt/oracle/ directory. They are used by the Oracle Universal Installer during the silent installation.

The following sections show you how to create the three files.

6.3.1 oraInst.loc file creation

As the root user, create the oraInst.loc file in the /var/opt/oracle/ directory. Make sure the file has read and write permission for the oracle user group. The oracle user group is the group performing the installation. The inventory_loc is the location for inventory files. If inventory_loc is not located in your ORACLE_HOME ensure that the directory where it is located has read and write permission for the oracle user group.

The oraInst.loc file should have the text input as shown:

inst_group=<oracle_user_group>
inventory_loc=ORACLE_HOME

for example if your ORACLE_HOME is /private2/oracle/ias, the content of the file is:

inventory_loc=/private2/oracle/iasinst_group=oracle user group

6.3.2 emtab file creation

Create the emtab file in the /var/opt/oracle/ directory. Make sure the file has read and write permission for the oracle user's group. The emtab file should have the text input as shown:

DEFAULT=$ORACLE_HOME

for example if your ORACLE_HOME is /private2/oracle/ias, the content of the file is:

DEFAULT=/private2/oracle/ias

6.3.3 oratab file creation

Create the oratab file in the /var/opt/oracle/ directory. Make sure the file is empty and has read and write permission for the oracle user's group.

6.4 Selecting a Response File

There are multiple Oracle Universal Installer response files depending on your choice of Oracle9iAS installation. These files are included on the Oracle9iAS, Release 2 (9.0.2) CD-ROM. You must edit the response file to suit your installation, silent or non-interactive.

To use a response file, copy the response file from the Oracle9iAS CD-ROM to your system. For example:

prompt> cd mount_point/Disk1/stage/Response/
prompt> cp oracle.iappserver.iapptop.j2ee.rsp private/ora9ias/Response/

The Oracle9iAS, Release 2 (9.0.2) CD-ROM contains the following response files:

6.5 Editing the Response File

Using any text editor, edit the response file to include information specific for your system. The response file text identifies information that you must provide.

You must specify values for variables in your response file. Each variable listed in the response file is associated with a comment. The comment identifies the variable type. For example:

The values that are given as <Value Required> must be specified for silent installation.

Remove the comment from the variable values in the response file you will use before starting the Oracle9iAS installation.

6.6 Specifying a Response File

To make the installer use the response file at install time, follow the same steps to launch the installer, but specify the location of the response file that you wish to use as a parameter when starting the installer:

prompt> ./runInstaller -responseFileabsolute_path_and_filename

To perform a completely silent installation session, use the -silent parameter:

prompt> ./runInstaller -silent -responseFile absolute_path_and_filename

The success or failure of the non-interactive installation is logged in installActions.log and for silent installation in silentInstall.log. The log files are created in the oraInventory directory during installation.

See Also:


Note:

The installer will fail if you attempt a silent session without appropriately configuring a response file.


6.7 Running the Root.sh Script

During silent and non-interactive installation you must run the root.sh script either before or after installation of Oracle9iAS.

6.7.1 Root.sh and Silent Installation

During silent installation of Oracle9iAS, you will not be prompted to run the root.sh script. You must run the root.sh script after silent installation.

Use the following steps to run the root.sh script.

  1. Log on as the root user.

  2. Run the root.sh script in the Oracle home directory.

    prompt> Oracle_Home/root.sh
    
  3. Exit root user.

6.7.1.1 Oracle HTTP Server

During silent installation, Oracle Universal Installer will attempt to start Oracle HTTP Server. However, Oracle HTTP Server will not start until the root.sh script is run. Ignore any error messages generated due to the inability to start Oracle HTTP Server.

After running the root.sh script, re-start Oracle HTTP Server using the following commands:

ORACLE_HOME/opmn/bin opmnctl stopall
ORACLE_HOME/opmn/bin opmnctl startall

6.7.1.2 Using Oracle HTTP Server On a Different Port

If you want to use Oracle HTTP Server on a port number that is less than 1024, you must complete the following steps:

  1. Do not run the root.sh script.

  2. Execute the following script as the root user:

    ORACLE_HOME/Apache/Apache/bin/root_sh_append.sh
    

The root_sh_append.sh script sets the necessary permission for the Oracle HTTP Server to be run on a port less than1024.

6.7.2 Root.sh and Non-Interactive Installation

During non-interactive installation of Oracle9iAS, the installer prompts you to run the root.sh script.

Use the following steps to run the root.sh script.

  1. Log on as the root user.

  2. Run the root.sh script in the Oracle home directory.

    prompt> Oracle_Home/root.sh
    
  3. Exit root user.

For non-interactive installation, once you see "Finished running generic part of the root.sh script" and "Now product-specific root actions will be performed," exit root user and return to the Install screen.

The root.sh script detects:

6.8 Error Handling

Values for variables that are of the wrong context, format, or type are treated as if no value were specified. Variables that are outside any section are ignored.

If you attempt a silent or non-interactive installation with an incorrect or incomplete response file, or the installer encounters an error, such as insufficient disk space, the installation will fail.

If you attempt a non-interactive installation without specifying a response file, the installation will fail.

The results of either your silent or non-interactive installation are recorded in the installation session log file.

See Also:

Section 2.6.3, "oraInventory Directory"

6.9 Deinstallation

If your silent or non-interactive installation fails, you must completely deinstall any files remaining from your Oracle9iAS installation attempt.

See Also:

Chapter 8, "Deinstallation and Reinstallation"


Go to previous page Go to next page
Oracle
Copyright © 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Table Of Contents
Contents
Go To Index
Index