Patch Installation in Weblogic Server

Steps:

  1. Download the patch from My Oracle Support (MOS). For more details, please refer to Master Note: How to Locate and Download Patches for WebLogic Server Using My Oracle Support Note 1302053.1.
  2. Extract the contents from the zip file: you will have a jar file and patch-catalog.xml. A readme file may also be included.
  3. Copy the files (for example, E5W8.jar and WGQJ.jar) and the patch-catalog.xml from the zip file to the target machine. You do not need the readme file. Copy the files to the appropriate cache_dir directory for the target system: for example, on Windows,

%MIDDLEWARE_HOME%\utils\bsu\cache_dir, or on UNIX, $MIDDLEWARE_HOME/utils/bsu/cache_dir.

NOTE: Always copy the patch-catalog.xml file from the downloaded patch. Each time you apply a patch, you will need the updated patch-catalog.xml file.

  1. Run Smart Update and apply the patches and/or patch sets to the target system. This can be done using the Smart Update GUI or the command-line interface (see http://download.oracle.com/docs/cd/E14759_01/doc.32/e14143/commands.htm#i1074489).

Note:

  1. Do not delete any patch files in cache dir, and never rename any patch_catalog files.
  • This is the syntax for the command to view the downloaded patches as below:
./bsu.sh -prod_dir=<weblogic_home> -patch_download_dir=<download dir of patch> -status=downloaded -view -verbose

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

./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

 

This is the syntax for the command to check if the patch is installed:

./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

 

Important: After any patches are applied or removed, make sure the following procedure is followed.  This clears out the server cache directories to insure the servers are using the new library and not an older cached library.
1. Shutdown all servers (admin and managed).
2. Delete the following server cache directories:
cache
stage (if exists)
tmp
3. Restart all servers (admin and managed).

Examples:

Insatallation:

bsu -prod_dir=c:\Oracle\Middleware\wlserver_10.3 -patchlist=IRZ2 -verbose –install

View:

bsu -view -status=downloaded -prod_dir=C:\Oracle\Middleware\wlserver_10.3

-patch_download_dir=C:\patchdir

 

bsu -view -prod_dir=C:\Oracle\Middleware\wlserver_10.3 -status=downloaded –verbose

Maintainence Snapshot:

bsu -view -prod_dir=C:\Oracle\Middleware\wlserver_10.3 -status=downloaded –verbose

Report of Applied Patches (The following command generates a report of patches applied to an MW_HOME, where the first character of the patch IDs is “6”)

bsu -view -prod_dir=C:\Oracle\Middleware\wlserver_10.3 -status=downloaded -verbose

 

 

 

Leave a Reply

Your email address will not be published.