4 Installing Products

This chapter includes the following sections:

4.1 Checking Prerequisites Before Installation

Before installation, Oracle Universal Installer checks the environment to see whether it meets the requirements for successful installation. Early detection of problems with the system setup reduces the chances of encountering problems during installation; for instance, problems with insufficient disk space, missing patches, inappropriate hardware, and so on.

Oracle Universal Installer is required to perform all prerequisite checks defined for the installation before installing any software, whether they are Oracle Universal Installer-specific tests, or tests defined for a specific product. Specific prerequisite checks are defined for each operating system on which Oracle Universal Installer runs. All prerequisite check parameters must be defined in the oraparam.ini file (or another *.ini file that you define). All the results are logged in the install Actions<timestamp>.log file.

You can perform prerequisite checking automatically when you run the Oracle Universal Installer executable during an installation. Simply run Oracle Universal Installer to perform all predefined prerequisite checks.

Inputs to the checker are listed in the prerequisite.xml file. After running the checker, you can find the results, along with the predefined inputs, in the prerequisite_results.xml file. These files are located in the oraInventory/logs directory. You can reuse the prerequisite_results.xml file as an input file for subsequent executions of the checker.

4.2 Installing Oracle Products

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

4.2.1 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:

  • Generic online help provided with every copy of Oracle Universal Installer.

    These topics describe the screens and dialog boxes that all Oracle Universal Installer users see, regardless of the product they are installing.

  • Online help specific to a particular installation (context-sensitive help).

    These topics are created by the product developer and describe the screens and dialog boxes specific to the product you are installing. For example, the help topic for the Installation Types page is often a custom help topic the installation developer creates that describes the specific installation types for the product you are installing.

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

Note:

Only generic help topics are available in the navigator or table of contents. You can only access custom help topics by clicking the Help button on the dialogs or windows they describe.

4.2.2 About the oraparam.ini File

The oraparam.ini file is the initialization file for Oracle Universal Installer. This file includes information that defines the behavior of certain Oracle Universal Installer features. Each product installation possesses a unique oraparam.ini file.

Generally, you should not have to edit the contents of this file, but in certain situations, understanding the contents of this file can help you troubleshoot problems and understand certain aspects of the Oracle Universal Installer product.

For example, for most installations, Oracle 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.

In the staging area, it is located in the same directory as the executable file. For example:

  • For UNIX systems:

    cd/<Product_Shiphome_Location>/install/solaris/runInstaller
    cd/<Product_Shiphome_Location>/install/solaris/OraParam.ini
    
  • For Windows systems:

    cd\<Product_Shiphome_Location>\install\win32\setup.exe
    cd\<Product_Shiphome_Location>\install\win32\OraParam.ini
    

In the staging area, the default OUI_LOCATION is relative to the location of the oraparam.ini file, as follows:

../../stage/

Once installed, the oraparam.ini file is located in the /oui directory.

Table 4-1 describes the parameters in the oraparam.ini file and how to use them.

Table 4-1 Parameters in the oraparam.ini Initialization File

Section/Parameter Description

[ORACLE] Section

BOOTSTRAP_CLASSPATH

List of relative paths of files or directories to be specified in the -Xbootclasspath/a: JVM option to the target class. The separator is the OS-specific classpath separator. The paths are relative to the bootstrap base directory (pre-install) or ORACLE_HOME (post-install). Example:

BOOT_CLASSPATH=oui/modules/emocmclnt.jar:oui/modules/regexp.jar:oui/modules/xmlparserv2.jar

BOOTSTRAP_SIZE

Megabytes of free space required to bootstrap. The default depends on the platform. Example:

BOOTSTRAP_SIZE=52

COPY_THREADS

If the value is non-zero, the launcher passes the Java option -Doracle.installer.copythreads=value to the target class. The default is 0. Example:

COPY_THREADS=4 

DISTRIBUTION

If TRUE (ignoring case), the context is pre-installation, and the underlying shiphome environment is assumed, with the Disk1/ directory structure. If FALSE, the context is post-installation, and the ORACLE_HOME environment and directory structure are assumed.

Default: DISTRIBUTION=FALSE

Example: DISTRIBUTION=TRUE

EXT_CLASSPATH

List of relative paths of files or directories to be prepended to the classpath of the target class. The separator is the OS-specific classpath separator. The paths are relative to the bootstrap base directory (pre-install) or ORACLE_HOME (post-install).

Enables product-specific bootstrap component artifacts to be included on the classpath of the target class. This parameter replaces EXT_JLIB. Example:

EXT_CLASSPATH=oui/modules/xyz.jar

HOTSPOT_JAVA_OPTIONS

Hotspot-specific JVM options, passed by the launcher to the JVM that executes the target class. This new parameter replaces JRE_MEMORY_OPTIONS. Example:

HOTSPOT_JAVA_OPTIONS=-mx512m -XX:MaxPermSize=256m

IBM_JAVA_OPTIONS

Options specific to the IBM JVM, passed by the launcher to the JVM that executes the target class. This parameter replaces JRE_MEMORY_OPTIONS. Example:

IBM_JAVA_OPTIONS=-Xbootclasspath/a:../stage/ext/jlib/osdt_core.jar 

INSTALL_CLASS

Name of the class whose main method is invoked by the launcher. This value is superceded in some situations; for example, if the -attachHome option is specified, the launcher ignores INSTALL_CLASS.

Default: oracle.sysman.oii.oiic.OiicInstaller

Example: INSTALL_CLASS=oracle.sysman.oio.oioc.OiocOneClickInstaller

INSTALL_ONECLICK_CLASS

Name of the oneclick class, which is typically the target class if the -oneclick option is specified.

Default: oracle.sysman.oio.oioc.OiocOneClickInstaller.

JAVA_OPTIONS

Options passed by the launcher to the JVM that executes the target class. These options must be vendor independent. This parameter replaces JRE_MEMORY_OPTIONS. Example:

JAVA_OPTIONS=-mx512m

JAVA_VERSION

Minimum Java version required for executing the target class, expressed as a 2-node version.

Example: JAVA_VERSION=1.6

JROCKIT_JAVA_OPTIONS

JRockit-specific JVM options, passed by the launcher to the JVM that executes the target class. This parameter replaces JRE_MEMORY_OPTIONS.

Example: JROCKIT_JAVA_OPTIONS=-mx512m -Xverify:none

NLS_ENABLED

The launcher passes the Java option -Doracle.installer.nlsEnabled=boolean-value to the target class.

Default: TRUE

Example: NLS_ENABLED=TRUE

PLATFORM_PREREQS

If TRUE (ignoring case), the launcher executes the platform-specific prerequisite checks defined in oraparam.ini.

Default: FALSE

Example: PLATFORM_PREREQS=TRUE

SOURCE

Pre-install context: Relative path of the product-specific stage directory. The path is relative to the startup directory and is converted to an absolute path by the launcher. The launcher passes the argument -sourceLoc absolute-path to the target class.

Example: SOURCE=../../stage

USEJDKONLY

If TRUE (ignoring case), use only a JDK for launching, both in the pre-install and post-install contexts.

Default: FALSE

USEJREONLY

If TRUE (ignoring case), use only a JRE for launching, both in the pre-install and post-install contexts.

Default: FALSE

VM_TYPES

Comma-separated list of JVM types supported for launching. Legal types are JRockit, HotSpot, IBM. The launcher derives the actual type from the java.vm.name Java property.

Default: empty, meaning that any type is accepted

Example: VM_TYPES=JRockit,HotSpot.

 

[Certified Versions] Section

This section specifies the OS versions that are supported for installation of the product. Each value is a comma-separated list.

AIX

Example: AIX=5100,5200,5300,6100-05

Linux

OS version and vendor required for installation. Now includes IBM's Linux.

Example: Linux=redhat-3,redhat-4

HPUX

Example: HPUX=B.11.11,B.11.23

Solaris

OS versions supported for installation on Solaris, both SPARC and x86 platforms.

Example: Solaris=5.10,5.11

Windows

Example: Windows=5.1

 

[Generic Prereqs] Section

There are three kinds of prerequisites sections:

  1. [Generic Prereqs] defines platform-independent prerequisites. There is only one such section.

  2. Sections named [Solaris-5.10-required] and similar define required platform-specific prerequisites. Each supported OS platform may have its own section.

  3. Sections named [Solaris-5.10-optional] and similar define optional prerequisites for each platform.

The following properties may appear in any of these sections. Some properties are evaluated only in some sections, or on specific platforms, as noted.

BUNDLE

HP-UX only.

CPU

Minimum CPU speed required for installation, in megahertz (MHz).

Example: CPU=500

FILESET

HP-UX only.

GLIBC

Minimum version of glibc required for installation. Linux only.

Example: GLIBC=2.3.2-95

GMAKE

Comma-separated list of acceptable gmake versions required for installation. IBM Linux only.

Example: GMAKE=3.81

JAVA_USE_64BIT

Comma-separated list of OUI platform names. These are platforms where a single JVM executable supports both 32-bit and 64-bit modes, and the product requires the 64-bit mode. If the currently-identified OUI platform is in this list, it is not supported.

Evaluated only in the [Generic Prereqs] section.

Example: JAVA_USE_64BIT=Solaris,Intel_Solaris32

KERNEL

The OS kernel version required for installation. Linux only.

Example: KERNEL=2.4.21

MIN_DISPLAY_COLORS

Minimum required color depth of the display device. Evaluated only in the [Generic Prereqs] section, if the installation is not silent.

Example: MIN_DISPLAY_COLORS=256

PACKAGES

Comma-separated list of OS packages, all of which are required for installation. UNIX only.

Example: PACKAGES=SUNWPython,SUNWTcl

PATCH

Comma-separated list of OS patches, all of which are required for installation. UNIX only.

Example: PATCHES=139555-08,125275-01

PERL

Comma-separated list of Perl versions, any one of which is required for installation. IBM Linux only.

Example: PERL=5.6.1,5.004

PROCESSOR

Comma-separated list of processors, any one of which is acceptable for installation. UNIX only.

Example: PROCESSOR=sun4v

SERVICE_PACK

Service pack(s) required for installation. If the value is a comma-separated list, then any match is acceptable. If there is a single value, then it is the minimum required service pack. Windows only.

Example: SERVICE_PACK=3

SWAP_SPACE

Minimum swap space required for installation, in megabytes (MB). Evaluated only in the [Generic Prereqs] section.

Example: SWAP_SPACE=512

TEMP_SPACE

Minimum free space in the bootstrap base directory required for installation, in megabytes (MB).

Example: TEMP_SPACE=300

The following message-related properties are mentioned (and commented out) in some installed oraparam.ini files. These properties do not support localization.

CERTIFIED_VERSION_LOCATION

The location of the file containing the list of OS versions certified for this installer.

CERTIFIED_VERSION_WARN

If TRUE, emit a message that names the file specified by CERTIFIED_VERSION_LOCATION.

LOG_PATCHES_TO_CONSOLE

If TRUE, print the list of required patches to the console.


BUNDLE_FAILURE_MESSAGE
CERTIFIED_VERSION_FAILURE_MESSAGE
CPU_FAILURE_MESSAGE
MIN_DISPLAY_COLORS_FAILURE_MESSAGE
FILESET_FAILURE_MESSAGE
GLIBC_FAILURE_MESSAGE
KERNEL_FAILURE_MESSAGE
PACKAGES_FAILURE_MESSAGE
PATCHES_FAILURE_MESSAGE
PROCESSOR_FAILURE_MESSAGE
SERVICE_PACK_FAILURE_MESSAGE
SWAP_SPACE_FAILURE_MESSAGE
TEMP_SPACE_FAILURE_MESSAGE

4.2.3 Modes of Installation

You can use Oracle Universal Installer to install Oracle products in any of the three following modes:

  • Interactive: Use Oracle Universal Installer's interactive mode to use the graphical user interface to walk through the installation, providing information in the installation dialogs when prompted. This method is most useful when installing a small number of products in different setups on a small number of hosts.

  • Suppressed: Use Oracle Universal Installer's suppressed mode to supply the necessary information by using a combination of a response file or command line entries with certain interactive dialogs. You can choose which dialogs to suppress by supplying the information at the command line when you invoke Oracle Universal Installer. This method is most useful when an installation has a common set of parameters that can be captured in a response file, in addition to custom information that must be input by hand.

  • Silent: Use Oracle Universal Installer's silent installation mode to bypass the graphical user interface and supply the necessary information in a response file. This method is most useful when installing the same product multiple times on multiple hosts. By using a response file, you can automate the installation of a product for which you know the installation parameters. For more information, see Chapter 3, "Creating and Customizing a Response File," for detailed information on using response files and installing in silent mode.

    Note:

    You can use the -noConsole option on the Windows platform to suppress the display of messages in the console.

4.2.4 Invocation Tools and Examples

OUI can be launched using several tools, depending on the context (pre-install or post-install) and OS platform:

Native self-extractor (native SFX)

  • For installation only.

  • Contains a bundled JRE or JDK, as required by the product to be installed.

  • Inherently platform-specific.

  • Available for a subset of the supported platforms.

Examples:

setup_wls_win32.exe
setup_wls_win64.exe
wls_linux64.bin

Sample invocations (Windows 64):

  • OUI Release 12.1 and later:

    setup_wls_win64.exe -mode=console -debug -logLevel finest
    
  • OUI Release 11.2 and earlier:

    unzip wls.zip
    cd wls/Disk1
    setup.exe -debug -logLevel finest -jreLoc "%JAVA_HOME%"
    

Sample invocations (Linux 64):

  • OUI Release 12.1 and later:

    wls_linux64.bin -debug -logLevel finest
    
  • OUI Release 11.2 and earlier:

    unzip wls.zip
    cd wls/Disk1
    ./launch -jreLoc $JAVA_HOME -debug -logLevel finest
    

Generic self-extractor (generic SFX)

  • For installation only.

  • Requires a previously installed JVM.

  • Usable on any supported platform.

Sample invocations:

  • OUI Release 12.1 and later (any platform):

    java -jar wls_generic.jar -debug -logLevel finest
    
  • OUI Release 12.1 and later (to start a 64-bit installation with a JVM that supports both 32- and 64-bits):

    java -d64 -jar wls_generic.jar -debug -logLevel finest
    
  • OUI Release 11.2 and earlier (UNIX):

    unzip wls.zip
    cd wls/Disk1
    ./launch -jreLoc $JAVA_HOME -debug -logLevel finest
    
  • OUI Release 11.2 and earlier (Windows):

    unzip wls.zip
    cd wls\Disk1
    setup.exe -debug -logLevel finest -jreLoc "%JAVA_HOME%" 
    

Shiphome script or executable

  • For installation only.

  • Requires a previously installed JVM, specified using the -jreLoc option.

  • Usable on any supported platform.

Sample invocations (Windows):

  • OUI Release 12.1 and later

    cd Disk1
    install.exe -jreLoc c:\opt\jdk1.6.0_14 -debug
    
  • OUI Release 11.2 and earlier:

    cd Disk1
    setup.exe -jreLoc c:\opt\jdk1.6.0_14 -debug
    

Sample invocations (UNIX):

  • OUI Release 12.1 and later

    cd Disk1
    ./install.sh -jreLoc $JAVA_HOME -debug 
    
  • OUI Release 11.2 and earlier:

    cd Disk1
    ./launch -jreLoc $JAVA_HOME -debug
    

Installed ORACLE_HOME scripts or executable

  • For post-installation only, from an installed ORACLE_HOME.

  • Requires an installed JVM, specified explicitly using the -jreLoc option.

  • Usable on any supported platform.

Sample invocations (Windows):

  • OUI Release 12.1 and later

    cd %ORACLE_HOME%\oui\bin
    deinstall.cmd -debug
    
  • OUI Release 11.2 and earlier:

    cd %ORACLE_HOME%\oracle_common\oui\bin
    setup.exe -deinstall -debug
    

Sample invocations (UNIX):

  • OUI Release 12.1 and later

    $ORACLE_HOME/oui/bin/deinstall.sh -debug 
    
  • OUI Release 11.2 and earlier:

    $ORACLE_HOME/oracle_common/oui/bin/runInstaller.sh -deinstall -debug
    

4.2.5 Installation Media

For each of these three installation modes, you can install from three different media:

Notes:

  • On Windows systems, when you start the installer from a shared drive, you need to map the shared drive and then invoke the installer from the shared drive.

  • When you invoke the installation process, you should invoke it from the directory where this command is present, or you must specify the complete path.

4.2.5.1 Installing from a Single CD-ROM

While installing Oracle products contained on a single CD-ROM, start Oracle Universal Installer by running the executable file, setup.exe (Windows) or runInstaller.sh (UNIX), located in:

../install/<platform>

Where <platform> represents Win32, Win64, Oracle Solaris, Linux, and so on.

To define the invocation:

java -jar <distribution>_generic.jar

To define the invocation for self-extraction:

./<distribution>.bin

For UNIX systems, run the script by typing ./launch at the command line.

Note:

Oracle Universal Installer for Win64 functions like Oracle Universal Installer for Win32. However, the startup directory on the CD is "win64" instead of "win32." Launching Oracle Universal Installer from the Win32 directory launches Oracle Universal Installer in 32-bit mode, used for installing 32-bit software. Use win64 for installing 64-bit software.

When you install both 32-bit and 64-bit Oracle Universal Installer on a 64-bit machine, two different inventories are created and maintained. However, you cannot install 64-bit software in a 32-bit home, and vice versa.

4.2.5.2 Installing from Multiple CD-ROMs

If you are creating a multiple-CD installation on UNIX, you might need to launch runInstaller in the background using the following command:

./launch &

By launching runInstaller in the background, you can change your current directory after you launch Oracle Universal Installer, enabling you to eject the CD. (It may also help to launch runInstaller as a foreground process from a different directory.)

You may want to create a shell script that launches Oracle Universal Installer in the background and then exits. If you choose to create a shell script, remember to also pass all parameters that you passed to the shell script to runInstaller in the event that you want to install silently using a response file.

TEMP/TMP Directory

On both UNIX and Windows installations, temporary copies of Oracle Universal Installer and JRE are placed in the TEMP or TMP directory in a subdirectory named /OraInstall<timestamp> so that these applications can be launched when you change CD-ROMs. Note that temporary files are created for single-CD installations as well. On both UNIX and Windows, Oracle Universal Installer looks for %TEMP% then %TMP%. If neither is set, Oracle Universal Installer defaults to /tmp on UNIX and c:\temp on Windows.

Note:

.The TEMP/TMP directory should not be a cluster file system or a shared location.

Unmounting a CD

On UNIX, if you have 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.

In most cases, the following procedure helps with any problems you experience while switching to a second CD-ROM while installing 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 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 drive with the following command:

    # umount cdrom_mount_point_directory
    
  3. Insert and mount the next CD-ROM into the 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.

4.2.5.3 Installing from a Staged HTTP Location

With Oracle Universal Installer, you can install products from the Web. You can publish your staging area from a Web server and then in the Oracle Universal Installer's Source location, specify the HTTP location for the products.xml file.

For example, you can enter:

http://www.oracle.com/product/ouiinstall/stage/products.xml

The Oracle Universal Installer recognizes a Web staging area just like a local, network, or CD-ROM stage.

System administrators of large customers who may want to deploy Oracle software to more than one target can use a combination of the Web installation and response file features:

  1. Copy the staging area to a shared file system and make it accessible on the Intranet or a Web server.

  2. Include predetermined response files on the same location. (Different groups of users might rely on different response files.)

  3. Clients run Oracle Universal Installer locally and use the local response file that is mailed or downloaded so they can perform a silent installation.

The Web installation capability relies on some guidelines that must be followed at installation development time. Check the installation guide for your product to see if the installation of your product is certified for Web installation.

To test if your stage is Web-enabled, you can try the following procedure:

  1. Copy the stage to your Web server.

  2. Start the Oracle Universal Installer locally and point to the location of the products.xml file. For example:

    http://smpweb.us.oracle.com/product/ouiinstall/stage/products.xml
    

4.2.6 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 receive an Xlib error or a Failed to connect to Server error when you are running Oracle Universal Installer on the Solaris operating system:

  1. Define the following environment variable on the host computer where you are running Oracle Universal Installer:

    %setenv DISPLAY <machine name>:0.0
    

    Where <machine name> is the name of the computer that will display Oracle Universal Installer.

  2. On the computer that will display Oracle Universal Installer, enter the following command, which enables other computers to display information on the computer's monitor:

    %xhost +
    
  3. Rerun the runInstaller script after you have set the DISPLAY environment variable.

Note:

You can run Oracle Universal Installer without specifying the DISPLAY variable by running in silent mode using a response file.

Providing a UNIX Installater Location with Root Privileges

You must have root privileges to perform various installation operations on the UNIX platform. For example, you must have root privileges to be able to create the Oracle Universal Installer inventory.

If you are installing Oracle Universal Installer for the first time, you are prompted to run a shell script from another terminal window before proceeding with the installation. Oracle Universal Installer prompts you to run root.sh after installation completes only if the script is required to be run as root before configuration assistants are run. Otherwise, you are prompted to run root.sh as root later.

Note:

When running Oracle Universal Installer in silent mode, if root.sh is required prior to configuration assistants, Oracle Universal Installer skips configuration assistants during the installation. You must run root.sh as root and then run the skipped configuration assistants after the silent installation is complete.

To successfully run the required shell 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 ./root.sh.

  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 to run the shell script. Exiting the installation 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 also prompts you to provide the name of the group that owns the base directory.

You must choose a UNIX group name that has permissions to update, install, and remove 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 remove software on this host.

4.3 Deinstalling Oracle Products

A deinstall can be performed by invoking the following scripts:

  • For Windows systems:

    NGHome\oui\bin\deinstall.cmd
    
  • For UNIX systems:

    NGHome/oui/bin/deinstall.sh
    

4.4 Running Oracle Universal Installer After Installation

The following sections describe the different ways that Oracle Universal Installer can be used after installation. Specifically, this section describes:

4.4.1 Starting Oracle Universal Installer

OUI is installed in the Oracle home and is available for both Windows and UNIX under:

<Oracle home>/oui/bin

For all platforms, the executable installation file is located in the following directory:

<oui_location>/bin

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

To start Oracle Universal Installer:

  • On Windows platforms, select Start, Programs, Oracle Installation Products, Oracle Universal Installer.

  • On UNIX, execute the ./launch script from the directory where it is installed.

    For example: if the Oracle home is /u01/app/oracle/, OUI will be located at OH/oui/u01/app/oracle/oui.

A runInstaller.sh script is also available, so that you can launch Oracle Universal Installer directly from a different directory.

When Oracle Universal Installer is first installed and run, it checks for the JRE path (the location from which it runs), using the location specified in the oraparam.ini file's JRE_LOCATION parameter. If Oracle Universal Installer cannot find the JRE specified, an error is returned.

4.4.2 Command Line Arguments

Following is the output from the runInstaller -help command, which gives you the full list of command line options and their descriptions, as well as command line variables usage:

<command> [ <option> | <option> <value> | <CommandLineVariable>=<value> ]

Table 4-2 shows the available <command> values. Table 4-3 shows the available <option> values.

Table 4-2 OUI Command Values

Command Description

java -jar <jarfile>

Generic installer.

<product>.bin

Native installer (UNIX).

<product>.exe

Native installer (Windows).

<Oracle Home>/oui/bin/<command>.sh

Post-install utilities (UNIX).

<Oracle Home>\oui\bin\<command>.cmd

Post-install utilities (Windows).


Table 4-3 OUI Option Values

Option Description

-silent

Use silent mode. The inputs are taken from the response file or from the command line as a list of <CommandLineVariable>=<value> pairs.

-install

Perform an installation. This is the default operation.

-noconsole

Do not allocate a console, and suppress the display of messages to the console.

Windows only.

-debug

Output debug information.

-nowait

Do not wait for the user to press Enter on the console after the operation (for example, install) is complete.

Windows only.

-ignoreSysPrereqs

Checks system prerequisites but ignores the results..

-paramFile <path>

Location of the oraparam.ini file.

-help

Display a help message showing all available commands and options.

-printtime

Log debug information about elapsed time.

-logLevel <level>

Omit log messages whose priority level is less than <level>. Valid levels are: severe, warning, info, config, fine, finer, finest.

-invPtrLoc <path of oraInst.loc>

Use the specified inventory pointer file instead of the default. The inventory pointer file contains:

   inventory_loc=<location of central inventory>
   inst_group=<UNIX group name>

UNIX only.

-executeSysPrereqs

Checks the basic prerequisites for OUI itself (called system prerequisites, as opposed to prerequisites for the product being installed). After these checks are performed, the installer exits without installing the product..

-printdiskusage

Log debug information about disk usage.

-force

Allow silent mode installation into a non-empty directory.

-responseFile <path>

Location of the response file containing input for OUI.

-printmemory

Log debug information about memory usage.


4.4.3 Using Oracle Universal Installer Exit Codes

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

Oracle Universal Installer returns one of the following exit codes:

Code Description
0 All installations were successful.
1 All installations were successful, but some optional configuration tools failed.
2 Local installations were successful, but some remote operations failed.
3 All installations were successful, but some recommended configuration tools failed.
6 The installation was successful after you proceeded by disregarding a few prerequisite checks or warnings.
-1 At least one installation failed.
-2 The installation failed. One or more validation of variables failed.
-3 The attempted installation encountered a prerequisite failure. Some of the optional prerequisites have not been met. See the logs for details.

You can ignore this code if the prerequisite is optional.

-4 The installation was stopped.

Note that:

  • This feature does not work if Oracle Universal Installer is running in "bootstrap" mode. In this case, the installation process launches the JRE process and returns immediately without waiting for the exit code. Oracle Universal Installer runs in "bootstrap" mode if the following line exists in the oraparam.ini file:

    BOOTSTRAP=TRUE
    
  • If you exit without installing any products (for example, if you exit from the "Welcome" screen), the exit code is -1.

4.4.4 Cloning Considerations

You can copy an existing Oracle home, then configure it for its new environment. This process is called cloning. The cloning process uses the NG OUI cloning functionality. This operation is driven by a set of scripts and add-ons that are included in the respective Oracle software. The cloning process has two phases:

Note:

Patching and deinstallation on a cloned Oracle home act the same as a regularly installed Oracle home. You can directly patch a cloned installation.

See Chapter 5, "Cloning Oracle Software," for details to clone an Oracle home.

4.5 About Oracle Universal Installer Log Files

When you install or deinstall products using Oracle Universal Installer, important information about each installation is saved not only in the inventory, but also in a series of log files located in the following directory:

$ORACLE_HOME/cfgtoollogs

You can use these log files to troubleshoot installation problems. These files are also crucial for removing and configuring the various software components you install on your Windows or UNIX system. Oracle Universal Installer displays the name and location of the current session's log file on the Install page. Each installation or configuration utility provides a separate folder containing the installActions<timestamp>.log files inside the $ORACLE_HOME/cfgtoollogs folder.

Many exceptions can possibly occur and consequently appear in a log file, depending on the product, as shown in the following example:

globalVarQueries2.1.0.4.1  getGlobalVariable[[.variable = oracle.assistants.server.launchNETCA]] 
[2009-09-07T01:17:46.646+00:00] [OUI] [NOTIFICATION] [] [OUI] [tid: 21] 
[ecid: 0000IEI4dFFDScApJ^^Ayf1Ad5uS00000C,0] 
[[Query Exception: VariableNotFoundException 
Query Exception Class: class oracle.sysman.oii.oiil.OiilQueryException]]

You can ignore the exception traces in the logs if the installation has subsequently continued.

Action logs are written on a per-session basis. The installer action log is created each time a new install session is started. What each action does and whether it occurred during installation or deinstallation is logged for every action in the installer action log. Each session is saved in the installActionstime_stamp.log file, where time_stamp is of the form:

yyyy-mm-dd_hh-mm-ss[AM|PM].log 

The .err and .out files also use the time stamp in their file names, making it easier to keep track of these files for each session.

Product Removal Logs vs. Action Logs

Note that the logs used to remove products are different from the installActions<timestamp>.log file generated during the installation process. The installActions<timestamp>.log is easier to read and can be used to view the operations performed during installation.

Exceptions

Many exceptions can possibly occur and consequently appear in a log file, depending on the product, as shown in the following example:

globalVarQueries2.1.0.4.1  getGlobalVariable[[.variable = oracle.assistants.server.launchNETCA]] 
[2009-09-07T01:17:46.646+00:00] [OUI] [NOTIFICATION] [] [OUI] [tid: 21] 
[ecid: 0000IEI4dFFDScApJ^^Ayf1Ad5uS00000C,0] 
[[Query Exception: VariableNotFoundException 
Query Exception Class: class oracle.sysman.oii.oiil.OiilQueryException]]

You do not need to take any action if the text that follows the exception message appears to ignore the exception.

yyyy-mm-dd_hh-mm-ss[AM|PM]