How to Apply WebLogic Server (WLS) Patches Using Smart Update [Video] [ID 876004.1] |
||
|
||
|
修改时间 24-FEB-2012 类型 HOWTO 状态 PUBLISHED |
|
In this Document
Goal
Solution
1. Using Smart Update
2. Applying the patch to the classpath manually
References
Applies to:
Oracle Weblogic Server - Version: 9.0 and later [Release: and later ]
Information in this document applies to any platform.
Goal
This document explains how to apply patches to a system using Smart Update.
Solution
There are two ways to apply patches to a system:
1. Using Smart Update
You can apply the patch using Smart Update with the following steps:
NOTE: Always copy the patch-catalog_xxx.xml file from the downloaded patch to the cache_dir along with the patch itself. Do NOT rename this file. If you see an "unrecognized patch ID" error, please refer to Note 1186923.1 for details on how to resolve it.
a. Smart Update in graphical (GUI) mode
The following viewlet provides an example of using Smart Update in GUI mode:
Video - Applying a Patch Using Smart Update in GUI Mode (1:15)
b. Command-line interface
./bsu.sh -prod_dir=<weblogic_home> -patch_download_dir=<download dir of patch> -status=downloaded -view -verbose
For example:
./bsu.sh -prod_dir=/opt/bea/weblogic92 -patch_download_dir=/opt/bea/utils/bsu/cache_dir -status=downloaded -view -verbose
./bsu.sh -prod_dir=<weblogic_home> -patchlist=<patchID> -verbose -install
For example:
./bsu.sh -prod_dir=/opt/bea/weblogic92 -patchlist=E5W8 -verbose -install
./bsu.sh -prod_dir=/opt/bea/weblogic92 -patchlist=WGQJ -verbose -install
./bsu.sh -prod_dir=<weblogic_home> -patch_download_dir=<download dir of patch> -status=applied -verbose -view
For example:
./bsu.sh -prod_dir=/opt/bea/weblogic92 -status=applied -verbose -view
2. Applying the patch to the classpath manually
You can apply the patch to the system manually by extracting the actual patch and adding it to the classpath on the system:
set CLASSPATH=<PATCH_DIR>\jars\CR326566_92mp3.jar;%CLASSPATH% (Windows)
CLASSPATH=<PATCH_DIR>/jars/CR326566_92mp3.jar:$CLASSPATH (UNIX)
where PATCH_DIR is the directory on the machine where you extracted/saved the patch file.
NOTE: Applying the patch to the classpath manually (approach 2) is recommended only for releases prior to WLS 9.1. Smart Update should be used when it is available as it provides patch conflict and dependency checking.