Oracle Weblogic Multiple Instances

Multiple instances of the Apache Tomcat can be patched using Discovery and the patching Fixlets.

Discovery Process

  1. Default installation folders:
    • Linux, Solaris, and AIX: /oracle/middleware
    • Windows: C:\Program Files\Oracle\Inventory
  2. Running instances (Non-Windows only):
  3. Configured locations:
    • Custom installations can be specified in the /etc/environment file using the BF_WEBLOGIC_HOME key (Linux, Solaris, AIX).
    • In Windows, environment variables can be set using the BF_WEBLOGIC_HOME key.
    • Multiple paths should be separated by : in Linux/Solaris/AIX and ; in Windows.

The same Discovery task can be used to identify the Weblogic 12c and 14c.

Patching Process

  • All the lower versions are updated to the patch version specified in the task in a single execution.
  • If the installed version is the same or greater, then the patching is skipped.
Note:
  • Services must be stopped before starting the patching process and should be restarted once the patching is complete.
  • Patching Fixlets require manual caching of the patches.
  • Both the Discovery and Patching tasks runs a .jar file, so ensure that the appropriate Java versions are available.
  • For WebLogic, patches are extracted to C:\middleware in Windows and /middleware in Linux due to file length constraints.

Exit codes and their meanings

When performing tasks such as patching or extracting files in Oracle Weblogic, certain exit codes may be returned to indicate the outcome of the operation. These codes help to find the issues during the installation or update process. Below is a list of common exit codes, along with their meanings and suggested actions to resolve the issues.
Table 1. Exit codes and their meanings
Exit code Action
Exit Code 11: Patching of one or more instances failed
  • Run the discovery task again to retrieve the latest versions of the installed Weblogic instances.
  • Ensure that all instances are properly configured and accessible.
Exit Code 12: Archive file not found
  • Verify that the download link is correct and the file is accessible.
  • Ensure the file exists at the specified location.
Exit Code 13: Extraction of the archive failed
  • Check if you have the necessary file extraction permissions
  • Ensure that the extraction path is valid and has sufficient space.
Exit Code 14: Extracted folder missing required files
  • Refer to the vendor documentation for a list of necessary files and folders that should be included in the archive.
  • Review the extracted contents and ensure that all required files are present.

The SPBAT logs are redirected to C:\middleware on Windows and /middleware on Linux and Solaris. For AIX, refer to the opatch_apply.log file located within the extracted folder inside /middleware.