Skip Headers

Oracle Universal Installer Concepts Guide
Release 2.2

Part Number A96697-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

1
Using the Oracle Universal Installer

Oracle Universal Installer is a Java application that can handle complex requirements. Oracle Universal Installer performs component-based installations and enables different levels of integrated bundle, suite, and Web-based installations, as well as complex logic in a single package. The installation engine is easily portable across all Java-enabled platforms, and platform-specific issues can be encapsulated from the overall installation process.

The Oracle Universal Installer provides the following capabilities for addressing software management and distribution:

New Features for Release 2.2

Oracle Universal Installer Release 2.2 offers the following new features:

System Requirements

The Oracle Universal Installer system requirements are listed below:


Java Runtime Environment (JRE)

Automatically installed with the Oracle Universal Installer. Check the release notes or installation guide of the products you are installing for the exact version that is required.


Memory Requirements:

Installing Oracle Products

The following sections describe how to start the Oracle Universal Installer and install an Oracle product. Specifically, this section describes:

Installing from a Single CD-ROM

While installing Oracle Products contained in a single CD-ROM on the Windows NT platform, start the Oracle Universal Installer by running the Oracle Universal Installer executable, SETUP.EXE.

While installing Oracle Products residing in a single CD on UNIX platforms, run the script called runInstaller from the top directory of the CD-ROM by typing the following on the command line:

runInstaller

Installing from Multiple CD-ROMs

In the case of installing products that span multiple CDs for both UNIX and Windows platforms, temporary copies of OUI and JRE are placed in the TEMP or TMP directory so that these applications can be launched when you change CD-ROMs.

If you are having trouble installing a product from multiple CD-ROMs, try using the following procedure to unmount the first CD-ROM and mount the second CD-ROM. If you still have problems, refer to the documentation links at the end of this topic.

You may also need to launch the runInstaller script in the background by using the ampersand character:

./runInstaller &

By launching runInstaller in the background, you can change your current directory after you launch the Oracle Universal Installer so that you can eject the CD. You may want to create a shell script that launches the Oracle Universal Installer in the background and then exits. If you choose to create a shell script, remember to also pass all parameters that passed to the shell script along to runInstaller in case you want to pass a response file name to run a silent installation.

In most cases, the following procedure will help you with any problems you experience while switching to a second CD-ROM while you are installing an Oracle software. If you inadvertently run the installer while the current working directory is in the CD-ROM, follow these steps to mount the next CD-ROM:

  1. Change directory to the root directory of your system and log in as the root user by using the following commands:
    $ cd /
    $ su root
  2. Unmount and remove the CD-ROM from the CD-ROM drive using the following command:
    # umount cdrom_mount_point_directory
    
    
  3. Insert and mount the next CD-ROM into the CD-ROM drive by using the following command:
    # mount options device_name cdrom_mount_point_directory
    
    
  4. Enter the correct mount point in the Installation dialog box.
  5. Click OK to continue.

If after attempting this procedure you are still having problems, refer to the section on installing from multiple CD-ROMS in the Oracle9i Installation Guide, which is available from the Oracle Documentation Center.

To locate documentation in the Oracle Documentation Center, enter the following URL in your Internet browser:

http://docs.oracle.com/

Specifically, use the following URL to display platform-specific information about mounting multiple CD-ROMS on a variety of UNIX systems:

http://docs.oracle.com/HTML_Storage/a90346/inst.htm#1089389

Installing Using a Response File

Many Oracle software products provide tools and procedures for running Oracle Universal Installer from the command line, without displaying the Universal Installer screens or responding to questions during the installation.

These kind of installations are called silent installations. Instead of prompting you to select a series of installation options, Universal Installer installs the software using a predefined set of options. These options are stored in an Oracle Universal Installer response file.

Consider the following information about Universal Installer response files:

The following sections describe how to specify a response file when you start Oracle Universal Installer.


Note:

If you attempt to perform a silent installation on a UNIX computer where no Oracle products have been installed, you will receive an error message. Before you can perform a silent installation no such a computer, you must first run the script oraInstRoot.sh, which is saved in the /tmp directory. You must run this script with root privileges.


Specifying a Response File on Windows Systems

To start Oracle Universal Installer and specify the response file on Windows NT, enter the following command at the command line in the directory where the Universal Installer is installed:

setup.exe -responseFile <filename> <optional_parameters>

Specifying a Response File on UNIX Systems

On UNIX systems, enter the following at the command line in the directory where the Universal Installer is installed:

runInstaller -responseFile <filename> <optional_parameters>


Note:

You must specify the complete responseFile path.



Note:

Using the -nowelcome option with the -silent option is unnecessary since the Welcome screen does not appear when you use the -silent option.


Optional Parameters When Specifying a Response File

Optional parameters you may use with the -responseFile flag are:

Use the -nowelcome flag along with the -responseFile flag to suppress the Welcome dialog that appears during installation.

Use the -silent flag along with the -responseFile flag to run the Universal Installer in complete silent mode. Note that the Welcome dialog is suppressed automatically.

Note that when the -silent flag is specified to the Universal Installer and if there are no values specified to a particular variable in a dialog, then the installer will abort. The success or failure of the installation, when this flag is specified, is generated in a file called silentInstall.log. This file will be generated in the /tmp directory in Solaris and the directory specified by the variable TEMP in Win32 platforms.

Using a Response File on Character Mode Consoles

When character mode consoles are used, Oracle recommends that you use the silent install, which is available with 8.1.5 and 8.1.6. Most (if not all) UNIX systems have the X packages by default. No additional installation is required.

In 8.1.5 and 8.1.6 versions of the Oracle Universal Installer, the Database Configuration Assistant and Net8 Configuration Assistant require that the X software runs. They all instantiate some GUI classes, but no GUI needs to be displayed if you running in silent mode. An installation can be run from a console (non-X-Window system or a telnet/dial up session) as long as the target system has X started.

Setting Response File Variables From the Command Line

Starting with Oracle Universal Installer 2.1, you can specify the value of certain variables when you start Universal Installer from the command line.

Specifically, you can specify session and component variables from the command line. For specific information about the format and organization of Universal Installer response files, see "Modifying a Response File" on page 3-2.

When you specify the value of a variable on the command line, that value overrides the value of the variable if it is defined in the response file.

Specifying the Value of a Session Variable

To specify the value of a session variable on a UNIX system, use the following command syntax:

./runInstaller session_<variable_name>=<value>

For example, to prevent the Universal Welcome page from displaying:

./runInstaller session_SHOW_WELCOME_PAGE=false

To specify the value of a session variable on a Windows system, use the following command syntax:

setup.exe session_<variable_name>=<value>

For example, to prevent the Universal Welcome page from displaying:

setup.exe session_SHOW_WELCOME_PAGE=false
Specifying the Value of a Component Variable

To specify the value of a component variable on a UNIX system, use the following command syntax:

./runInstaller <component_name>_<component_version>_<variable_name>=<value>

For example, to modify the value of a the variable VAR1 in version 1.1 of a component called COMP2:

./runInstaller COMP2_1.1_VAR1="test"

To specify the value of a component variable on a Windows system, use the following command syntax:

setup.exe <component_name>_<component_version>_<variable_name>=<value>

For example, to modify the value of a the variable VAR1 in version 1.1 of a component called COMP2:

setup.exe COMP2_1.1_VAR1="test"

Getting Help While Installing Oracle Products

At any time while installing your product, click Help for information about the screens specific to your installation.

Oracle Universal Installer provides two kinds of online help:

After you display an online help topic, choose Navigator from the Tools menu to display the Navigator pane. From the navigator pane, you can browse a table the contents, select other topics, or search for a particular word or phrase in the Oracle Universal Installer online help.

Special Instructions for UNIX Users

The following sections describe special instructions that apply when you are installing certain products on a UNIX system.

Failed to Connect to Server Error

If you get an Xlib error or a "Failed to connect to Server" error when you are running Oracle Universal Installer on a Sun Solaris system, you need to define the following environment variables.

On the host computer where you are running Oracle Universal Installer, define the following variable:

%setenv DISPLAY <machine name>:0.0 

Replace <machine name> with the name of the computer that will display Universal Installer.

On the computer that will display Universal Installer, enter the following command. This command allows other computers to display information on the computer's monitor:

%xhost + 

Re-run the runInstaller script after you have set the DISPLAY environment variable.

Providing a UNIX Installer Location with Root Privileges

Various installation operations on the UNIX platform must be performed with root privileges. For example, you must have root privileges to be able to create the Oracle Universal Installer inventory.

If you do not have root privileges, you will be prompted to run a shell script from another terminal window before proceeding with the installation.

To successfully run this script:

  1. Leave the Oracle Universal Installer window open and open another terminal window.
  2. In the new terminal window, use the substitute user command to log in with root privileges:
    su -root
    
    
  3. Change directory to the Oracle Home into which you are currently installing your Oracle software product.
  4. Run the shell script identified in the Oracle Universal Installer prompt.
  5. When the script is finished and you are returned to the command prompt, exit from the new terminal window and return to Oracle Universal Installer to continue the installation.


    Note:

    Do not exit the installation in order to run the shell script. Exiting the install removes this script.

    You are prompted to run the script only the first time you install.


Providing a UNIX Group Name

If you are installing a product on a UNIX system, the Installer will also prompt you to provide the name of the group which should own the base directory.

You must choose a UNIX group name which will have permissions to update, install, and deinstall Oracle software. Members of this group must have write permissions to the base directory chosen.

Only users who belong to this group are able to install or deinstall software on this machine.

Oracle Universal Installer Concepts

The following sections describe:

About the Oracle Universal Installer Inventory

The Oracle Universal Installer inventory is the location for the Oracle Universal Installer's bookkeeping. The inventory stores information about:

Starting with Oracle Universal Installer 2.1, the information in the Oracle Universal Installer inventory is stored in Extensible Markup Language (XML) format. The XML format allows for easier diagnosis of problems and faster loading of data. Any secure information is not stored directly in the inventory. As a result, during deinstallation of some products, you or your customer may be prompted for required secure information, such as passwords.

By default, the Universal Installer inventory is located in a series of directories at /Program Files/Oracle/Inventory on Windows computers and in the <Oracle Home>/Inventory directory on UNIX computers.

To identify the exact location of the inventory on your system, see the following sections.

Locating the Inventory on Windows systems

On the Windows platform, the Oracle Universal Installer first queries the registry to see if the following Oracle Home setting present:

HKEY_LOCAL_MACHINE

Software
 Oracle

 INST_LOC

If this value is found, it will be used as the inventory location. If the value is not found, the following sequence occurs:

  1. The Oracle Universal Installer requests the location of the Program Files directory.

    The Program Files folder is a system-defined directory usually on the C drive.

  2. The directory structure is created in the form:
    \<Program Files>
    
    
    \Oracle  
    
    
    \bin
    \inventory
     \locks
     \logs
    \oui
    
    
  3. The registry is updated with this inventory location.

Locating the Inventory on UNIX

At startup, the Oracle Universal Installer first looks for the following file: var/opt/oracle/oraInst.loc

If this value is found, it will be used as the inventory location. If the value is not found, the inventory path is created as follows:

ORACLE_BASE\oraInventory

If the ORACLE_BASE environment variable is not defined, the inventory is created at the same level as the first Oracle home. For example, if your first Oracle home is at /private/ORACLEHome1, then, the inventory is at /private/oraInventory.

If the Oracle Universal Installer is unable to create an inventory directory at these locations, it prompts you with a locations dialog.

Clicking the Save As button pops up a File browse dialog to accept a file name. The inventory as seen in the inventory tree will be logged into this file as text.

About the ORAPARAM.INI File

The ORAPARAM.INI file is the Oracle Universal Installer initialization file. This file includes information that defines the behavior of certain Universal Installer features. The installation developer provides a unique ORAPARAM.INI file for each product installation.

The ORAPARAM.INI file can help you troubleshoot problems and understand certain aspects of the Oracle Universal Installer product.

For example, for most installations, Universal Installer provides a default value on the File Locations page that points to the location of the product's installation kit or stage. This default value is stored in the ORAPARAM.INI file. The ORAPARAM.INI file also identifies the location of the Java Runtime Environment (JRE) required for the installation.

The ORAPARAM.INI file is located in the same directory as the command you use to start Oracle Universal Installer.

For detailed information about the contents of the ORAPARAM.INI file, see "Understanding the Contents of the ORAPARAM.INI File" on page B-4.

About Oracle Universal Installer Log Files

When you install or deinstall products using Oracle Universal Installer, important information about each install is saved not only in the Universal Installer inventory, but also in a series of log files. These log files can be used to troubleshoot installation problems. These files are also crucial for deinstalling and configuring the various software components you install on your Windows or UNIX computer.

For more information about the log files generated by Oracle Universal Installer, see the Oracle Universal Installer online help. For more information about using the Universal Installer online help, see "Getting Help While Installing Oracle Products" on page 1-8.

Running the Oracle Universal Installer After It is Installed

The Oracle Universal Installer is installed on your system during the installation of your Oracle products:

A new version of the Oracle Universal Installer replaces its older version.

The Oracle Universal Installer is placed under "Independent Products" in the Inventory panel as a "non-Oracle Home" product because it maintains an inventory across all Oracle Homes.

To run the Oracle Universal Installer:

When the Oracle Universal Installer is first run/installed, it checks for the JRE path (the location where it is run from), using the location specified in the oraparam.ini file. If the JRE does not exist here, the Oracle Universal Installer looks for a local JRE.

Determining the Default Oracle Home

By default, when you start Universal Installer, the software searches your system to determine the default Oracle Home where Oracle software should be installed.

The list of Oracle homes on Windows platforms consists of the following:

The list of Oracle homes on UNIX consists of the following:

If none of these homes exists on a machine, a default home is calculated based on the disk volume with the largest amount of free space.

Using the Oracle Universal Installer Exit Codes

If you are starting and stopping Universal Installer programmatically (for example, by invoking Universal Installer using a response file), you may need to consider the exit codes generated by Universal Installer and perform a particular action depending on the code Universal Installer returns.

The Oracle Universal Installer returns one of the following exit codes:

Code Description

0

All installations were successful

1

All installation were successful but some optional configuration tools failed

-1

At least one installation failed

Note that:

  1. This feature will not work if the Oracle Universal Installer is running in "bootstrap" mode. In this case setup.exe/runInstaller will just launch the JRE process and return immediately without waiting for the exit code. The Oracle Universal Installer will be running in "bootstrap" mode if the following line exists in the file "oraparam.ini":
    BOOTSTRAP=TRUE
  2. If you exit without installing any products (for example if you exit from the "Welcome" screen), the exit code will be -1.

Deinstalling Products

The following sections describe how to remove products you have installed with the Oracle Universal Installer.

Removing Oracle Products With the Oracle Universal Installer

A deinstallation can be performed before making your selection of products to install or after a successful install.

To remove Oracle products, perform the following steps:

  1. Start the Oracle Universal Installer from a CD-ROM or
    • For Windows platforms, launch the Oracle Universal Installer from the Start menu. Choose Start > Installation Products > Oracle Universal Installer.
    • For UNIX platforms, run the script called runInstaller from the directory it was installed in, which is by default at the same level with the first Oracle Home called "oui" created on that machine.
      runInstaller
      
      
      
      
  2. Click Deinstall Products on the "Welcome" screen.

    The Inventory panel appears.

  3. Check the product(s) you want to remove from the Inventory panel and click Remove.
  4. The Remove Confirmation Dialog appears, asking if you want to remove the products and their dependee components. Click Yes.

The Oracle Universal Installer warns you of any product dependencies that might cause problems if particular products are removed, and prompts you to confirm the de-installation.

Pay special attention to the full list of products being deinstalled before proceeding. The Oracle Universal Installer computes this list based on the dependencies of each component.


Note:

You can also remove products by using the Installed Products button on the Oracle Universal Installer as long as this action is performed before making your selection of products to install.


Deinstalling Top Level Products that Have Dependees

A top level component is the most important component of an installation. It is the installable product you see at the first install screen. You can only install one top level component per install session.

The following examples use top level components that have dependees of different types offered by Oracle Universal Installer.

Test 1: Test Components Having the "required" Type of Dependees

Setup

Create 2 top level components (A, B), each having the same "required" dependee (C).

Install

I1a. Choosing A results in the install of A and C.

I1b. Later, choosing B results in only B being installed (its dependee C was previously installed).

Deinstall

D1a. Choosing A results in deinstall of A only. C is not deinstalled since it is also a "required" dependee of B, and thus is still needed.

D1b. Choosing A and C results in deinstalling A, B, and C. B is also deinstalled since its "required" dependee C is being deinstalled and it cannot be left installed without it.

D1c. Choosing C results in deinstalling A, B, and C. A and B are also deinstalled since their "required" dependee C is being deinstalled and they cannot be left installed without it.

Test 2: Test Components Having "1,more" Type of Dependees

Setup

Create 2 top level components (A, B), each having the SAME two '1,more' type dependees (C,D).

Install Test 2

I2.a. Choosing A and both dependees (C,D) results in the install of A,C,D.

I2.b. Later, choosing B (without C,D) results in the install of only B.

Deinstall Test 2

D2.a1. Choosing A results in deinstall of only A.

D2.a2. Choosing A and ONE dependee C (under A) results in deinstall of all (A,B,C,D). Note the deinstall of B and D occurs.

D2.a3. Choosing only ONE dependee C (under A) results in deinstall of all (A,B,C,D). Note the deinstall of A, B and D occurs.

D2.a4. Choosing only one dependee D (under A) results in deinstall of all (A,B,C,D). Note the deinstall of A, B and C occurs.

D2.a5. Choosing both dependee C and D (under A) results in deinstall of all (A,B,C,D). Note the deinstall of A and B occurs.

D2.b1. Choosing B results in deinstall of only B.

D2.b2. Choosing B and one dependee C (under B) results in deinstall of all (A,B,C,D). Note the deinstall of A and D occurs.

D2.b3. Choosing only one dependee C (under B) results in deinstall of all (A,B,C,D). Note the deinstall of A, B and D occurs.

D2.b4. Choosing only one dependee D (under B) results in deinstall of all (A,B,C,D). Note the deinstall of A, B and C occurs.

D2.b5. Choosing both dependee C and D (under B) results in deinstall of all (A,B,C,D). Note the deinstall of A and B occurs.

Forcing a Deinstall of a Component with a Different Internal Name

You cannot programmatically force the deinstallation of a certain component from a certain component; however, the Oracle Universal Installer's dependency engine should take care of the deinstallation should deinstall the component and replace it with the new component.

The rule is as follows:

If:

Then:

Upgrading A from v1 to v2 will perform the following:

Note: Make sure the new version is marked to replace the old version. For example, the old version should be in the replace range of the new version.


Note:

Make sure the new version is marked to replace the old version. In the .prp, you can specify the version range to be replaced. For example, the old version should be in the replace range of the new version.


Silent Deinstallation

With Universal Installer you can not only perform silent installations, as described in "Installing Using a Response File" on page 1-4, but you can also perform silent deinstallations. A silent deinstallation allows you to remove Oracle applications from your system without using the Universal Installer graphical user interface.

You can choose to display no dialog boxes or prompts to the user, or you can selectively avoid displaying certain dialog boxes that are normally used during a deinstallation.

Immediately Displaying the Inventory Dialog Box

Use the following command on a Windows computer to immediately display the Inventory dialog box, which allows the user to select items for deinstallation without navigating the Universal Installer startup screen:

setup.exe -deinstall

On a UNIX computer, use the following command to produce the same result:

runInstaller -deinstall

Hiding the Inventory Dialog Box

If you would like to hide the inventory dialog box from the user during a deinstallation, you can specify the items to be deinstalled in the DEINSTALL_LIST parameter of the response file. For more information about response files, see "Installing Using a Response File" on page 1-4.

For information about the DEINSTALL_LIST parameter, see Chapter 3, "Customizing and Creating Response Files".

As with other response file parameters, you can also specify the DEINSTALL_LIST parameter on the Universal Installer command line. For example, on a Windows computer, enter:

runInstaller -deinstall DEINSTALL_LIST={"component1","1.0.1.2"}

For more information about using the command to specify response file parameters, see Chapter , "Setting Response File Variables From the Command Line".

Hiding the Deinstallation Confirmation and Progress Dialog Boxes

Use the following commands to hide the deinstallation confirmation and progress dialog boxes during a silent deinstallation on a Windows computer:

setup.exe -deinstall session_SHOW_DEINSTALL_PROGRESS=false
   session_SHOW_DESINSTALL_CONFIRMATION=false

Use the following commands to hide the deinstallation confirmation and progress dialog boxes during a silent deinstallation on a UNIX computer:

runInstaller -deinstall session_SHOW_DEINSTALL_PROGRESS=false
   session_SHOW_DESINSTALL_CONFIRMATION=false

Internationalization and Installation Translations Support

The following sections describe how Oracle Universal Installer supports multiple languages and internationalization.

Installer/Installation Dialogs Language

The Oracle Universal Installer runs in the language of the operating system. The Oracle Universal Installer uses the language that Java detects, the system locale value, and sets that to the default language. The Installer dialogs will be displayed in this language if available. If specific Installer dialogs are not translated in the language of the operating system, those dialogs will be shown in English.

Oracle Universal Installer supports the following languages:

Product Language Selections

If multiple languages are defined for the products installed, the Universal Installer allows language selection via the Custom install type only. The languages selections are for the top level component being installed. A top level component is the product selected on the Products Selection dialog, a single one per installation session. If any sub-components (lower level) do not have files defined for the language the user selects, English only will be installed. The English files are always installed for all components, regardless of user selection or operating system language.

If a component is already installed, but with a different language set, that component will be reinstalled.

At install time, the Oracle Universal Installer looks at the language list of each file/file group to determine which need to be copied.


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

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

Master Index

Feedback