Preinstallation Tasks for OPatch

Complete the following tasks before you use OPatch for the first time on your system:

  1. Verifying the Oracle Universal Installer Inventory

  2. Creating a Backup of Your Current Converged Application Server Installation

  3. Checking Your Environment Variables

For more information about the prerequisite checks for OPatch, see Oracle Universal Installer and OPatch User's Guide.

For the latest information about the OPatch utility, the JRE versions, or the Java commands Linux, or to check for updates and get the latest versions, go to My Oracle Support at:

https://support.oracle.com/

Verifying the Oracle Universal Installer Inventory

To apply patches successfully, OPatch needs access to a valid version of Oracle Universal Installer, a valid Oracle Inventory directory (oraInventory), and a valid version of oPatch. Validate the versions on your system by using the following command:

opatch lsinventory

This command displays your system's OPatch and Oracle Universal Installer versions and directories, and lists the patches currently installed in Oracle_home. This is the directory that serves as the repository for common files that are used by Oracle Communications products installed on the same machine, such as Converged Application Server and WebLogic Server. For example, the following shows a sample of the information displayed at the beginning of the output:

Oracle Interim Patch Installer version 13.9.4.2.6
Copyright (c) 2021, Oracle Corporation. All rights reserved.

Oracle Home          : Oracle_home
Central Inventory    : /export/oraInventory
   from              : Oracle_home/oraInst.loc
OPatch version       : 13.9.4.2.6
OUI Version          : 13.9.4.0.0
Log file location    : Oracle_home/cfgtoollogs/opatch/opatch2015-12-16_11-16-55AM_1.log

For more information, see "OPatch Utility Reference".

Note:

If the lsinventory command errors out, do not proceed further with the patch attempt.

Contact Oracle Technical Support to validate and verify the inventory setup.

Creating a Backup of Your Current Converged Application Server Installation

Before you start any patch operation, back up the contents of the Oracle_home directory. You can back up the contents of Oracle_home by using your preferred method, such as ZIP, TAR, cp -r, or cpio.

Checking Your Environment Variables

The patch installation process uses the OPatch and ZIP software. Ensure that your system can find and use the software by setting the following environment variables:

  • Set your PATH environment variable to include the path to your Oracle_home/OPatch directory and to your ZIP software.

  • Set your ORACLE_HOME environment variable to your Oracle_home directory.

To confirm that your system can find the OPatch and ZIP software, enter the following at a command prompt:

which opatch
which unzip

Note:

If your system cannot find the path to the software, double-check that your environment variables are set correctly.