How to Apply Patches to an Offline System

download How to Apply Patches to an Offline System

of 2

Transcript of How to Apply Patches to an Offline System

  • 7/30/2019 How to Apply Patches to an Offline System

    1/2

    How to Apply Patches to an Offline System [ID 876004.1] Modified08-APR-2010 Type HOWTO Status PUBLISHED

    In this Document Goal

    Solution References

    Applies to:

    Oracle Weblogic Server - Version: 9.0 to 10.3.2Information in this document applies to any platform.

    Goal

    This document explains how to apply patches to a system which has no Internet access (for example,

    behind a firewall).

    Solution

    There are two ways to apply patches to a system without Internet access:

    1. Using SmartUpdate in offline mode===========================You can apply the patch using SmartUpdate with the following steps:

    1. Download the patch using SmartUpdate on another machine with Internet access. The machinewith Internet access must have the same version of WebLogic Server running, but it does NOThave to be on the same OS or machine type. For example, if your offline target system is runningWLS 10.3.0, your online machine must also have a WLS 10.3.0 installation, but the offline systemcould be on Solaris and the online system on Windows.

    2. Copy the files (for example E5W8.jar and WGQJ.jar) and patch-catalog.xml from your machinewith Internet access to the offline machine. For example, say you have a test environmentrunning on a Windows box. Your production environment is running on UNIX. You might copy the

    jar files from %BEA_HOME%\utils\bsu\cache-dir to $BEA_HOME/utils/bsu/cache-dir.

    When a machine connects to Smart Update, the catalog of patches is always updatedautomatically. Thus, when a patch is being copied to an offline machine, the patch-catalog.xml filemust also be copied over.

    3. Run SmartUpdate in offline mode and apply patches and patch sets. This can be done using theSmartUpdate command-line interface (seehttp://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489).

    4. This is the syntax for the command to install a patch:.

    /bsu.sh -prod_dir= -patchlist= -verbose -install

    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#GOALhttps://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#FIXhttps://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#REFhttp://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#FIXhttps://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#REFhttp://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=HOWTO&id=876004.1#GOAL
  • 7/30/2019 How to Apply Patches to an Offline System

    2/2

    For example,

    ./bsu.sh -prod_dir=/opt/bea/weblogic92 -patchlist=E5W8 -verbose -install

    ./bsu.sh -prod_dir=/opt/bea/weblogic92 -patchlist=WGQJ -verbose -install

    2. Applying the patch to the classpath manually============================You can apply the patch to the offline system manually by extracting the actual patch and adding it to theclasspath on the offline system:

    1. Extract the actual patch jar file. If you downloaded the patch using SmartUpdate, it will be in theform .jar (for example: E5W8.jar). Inside this jar file is the actual patch jar file, whichwill be of the form CR326566_92mp3.jar. Extract the latter file for the following steps.

    2. Add the extracted jar file as the first element of the classpath of the Admin server as well as themanaged servers in the domain.

    3. If you are starting servers using the WebLogic startup script, update the classpath in the startupscript like this:

    set CLASSPATH=\jars\CR326566_92mp3.jar;%CLASSPATH% (Windows)CLASSPATH=/jars/CR326566_92mp3.jar:$CLASSPATH (UNIX)

    where PATCH_DIR is the directory on your local machine where you extracted/saved the patchfile.

    4. Similarly, if you are starting servers using Node Manager, add the patch jar to the beginning ofthe Class Path argument in the Server Start tab for the server(s).

    References

    http://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489

    http://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489http://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489