Tuesday, May 20, 2014

Applying WebLogic Server Patches using BSU utility

BSU Stands for Bea Smart Update.  This utility is used to apply the WebLogic Server Patches.

Applying Patch Set Updates (PSUs)

The patch set updates (PSUs) come with a "README.txt" file that explains how to apply the patches. You must follow the the patch instructions before applying the WebLogic patches. The instructions looks similar as below:

Create cache_dir under $MW_HOME/utils/bsu if it doesn't exist. Unzip and Copy the WebLogic Server Patches under the above directory as below:

    $ mkdir -p $MW_HOME/utils/bsu/cache_dir
    $ cd $MW_HOME/utils/bsu/cache_dir
    $ unzip /tmp/p16199510_1036_Generic.zip

This zip file contains the patch jar (ex:ABCD.jar) file and patch catalog xml file. The encoded patch catalog, patch-catalog.xml, contains metadata about a patch and the patch dependencies and conflicts.

Apply the patch

    $ cd $MW_HOME/utils/bsu
    $ ./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=ABCD -prod_dir=$WLS_HOME

If you get conflicts, you may have to remove previous patches, before attempting to apply the patch again.

    $ cd $MW_HOME/utils/bsu
    $ ./bsu.sh -remove -patchlist=XYZ1 -prod_dir=$WLS_HOME

    $ ./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=ABCD -prod_dir=$WLS_HOME

After the patch is successfully applied, you can view the applied patches by using the below command

$ cd /u01/app/oracle/product/fmw/utils/bsu/
$ ./bsu.sh -prod_dir=/u01/app/oracle/product/fmw/wlserver_10.3 -view -status=applied
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Evaluation Database,WebLogic Server/Workshop Code
                   Completion Support
BEAHome:           /u01/app/oracle/product/fmw
ProductHome:       /u01/app/oracle/product/fmw/wlserver_10.3
PatchSystemDir:    /u01/app/oracle/product/fmw/utils/bsu
PatchDir:          /u01/app/oracle/product/fmw/patch_wls1036
Profile:           Default
DownloadDir:       /u01/app/oracle/product/fmw/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun

After applying the patches, Restart the WebLogic Servers including Admin Server.

Applying a Single WebLogic Patch

$ ./bsu.sh -prod_dir=/u01/app/oracle/product/fmw/wlserver_10.3 -patchlist=RFP7  -verbose -install -log=RFP7_bsu.log
Checking for conflicts..
No conflict(s) detected

Starting installation of Patch ID: RFP7
Installing /u01/app/oracle/product/fmw/utils/bsu/cache_dir/RFP7.jar
Extracting /u01/app/oracle/product/fmw/patch_wls1036/patch_jars/BUG16199510_1036.jar
Updating /u01/app/oracle/product/fmw/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/BUG14390070_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG13572968_ons.jar ../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14482558_1036.jar ../../../patch_jars/BUG16358443_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG16250408_1036.jar ../../../patch_jars/BUG16180221_1036.jar ../../../patch_jars/BUG14390065_1036.jar ../../../patch_jars/BUG16582503_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG14261891_1036.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG16104758_1036.jar ../../../patch_jars/BUG16810704_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG14595754_1036.jar ../../../patch_jars/BUG14702608_1036.jar
New manifest value: Class-Path=../../../patch_jars/BUG16199510_1036.jar ../../../patch_jars/BUG14390070_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG13572968_ons.jar ../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14482558_1036.jar ../../../patch_jars/BUG16358443_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG16250408_1036.jar ../../../patch_jars/BUG16180221_1036.jar ../../../patch_jars/BUG14390065_1036.jar ../../../patch_jars/BUG16582503_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG14261891_1036.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG16104758_1036.jar ../../../patch_jars/BUG16810704_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG14595754_1036.jar ../../../patch_jars/BUG14702608_1036.jar
Result: Success

Applying a Multiple WebLogic Patches
You can apply all WebLogic patches at a time by using below command.

$ ./bsu.sh -prod_dir=/u01/app/oracle/product/fmw/wlserver_10.3 -patchlist=TWDG,QKPF,F6G7 -verbose -install -log=patches_bsu.log
Checking for conflicts......
No conflict(s) detected

Starting installation of Patch ID: TWDG
Installing /u01/app/oracle/product/fmw/utils/bsu/cache_dir/TWDG.jar
Extracting /u01/app/oracle/product/fmw/patch_wls1036/patch_jars/BUG14742729_1036.jar
Updating /u01/app/oracle/product/fmw/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
New manifest value: Class-Path=../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
Result: Success

Starting installation of Patch ID: QKPF
Installing /u01/app/oracle/product/fmw/utils/bsu/cache_dir/QKPF.jar
Extracting /u01/app/oracle/product/fmw/patch_wls1036/patch_jars/BUG14390065_1036.jar
Updating /u01/app/oracle/product/fmw/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
New manifest value: Class-Path=../../../patch_jars/BUG14390065_1036.jar ../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
Result: Success

Starting installation of Patch ID: F6G7
Installing /u01/app/oracle/product/fmw/utils/bsu/cache_dir/F6G7.jar
Extracting /u01/app/oracle/product/fmw/patch_wls1036/patch_jars/BUG14261891_1036.jar
Updating /u01/app/oracle/product/fmw/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar
Old manifest value: Class-Path=../../../patch_jars/BUG14390065_1036.jar ../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
New manifest value: Class-Path=../../../patch_jars/BUG14261891_1036.jar ../../../patch_jars/BUG14390065_1036.jar ../../../patch_jars/BUG14742729_1036.jar ../../../patch_jars/BUG14182177_1036.jar ../../../patch_jars/BUG14763317_1036.jar ../../../patch_jars/BUG16362974_1036.jar ../../../patch_jars/BUG16741136_103603.jar ../../../patch_jars/BUG15917028_1036.jar ../../../patch_jars/BUG14809365_1036.jar ../../../patch_jars/BUG14736139_1036.jar ../../../patch_jars/com.bea.core.stax2_2.0.0.0_3-0-3.jar ../../../patch_jars/BUG15865825_1036.jar ../../../patch_jars/BUG16199510_1036.jar
Result: Success


$./bsu.sh -prod_dir=/u01/app/oracle/product/fmw/wlserver_10.3 -view -status=applied
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic JDBC Drivers,WebLogic Server/Thir
                   d Party JDBC Drivers,WebLogic Server/WebLogic Server Clients
                   ,WebLogic Server/WebLogic Web Server Plugins,WebLogic Server
                   /UDDI and Xquery Support,WebLogic Server/Workshop Code Compl
                   etion Support
BEAHome:           /u01/app/oracle/product/fmw
ProductHome:       /u01/app/oracle/product/fmw/wlserver_10.3
PatchSystemDir:    /u01/app/oracle/product/fmw/utils/bsu
PatchDir:          /u01/app/oracle/product/fmw/patch_wls1036
Profile:           Default
DownloadDir:       /u01/app/oracle/product/fmw/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun


Patch ID:          TWDG (14742729)
Patch ID:          QKPF (14390065,13652966)
Patch ID:          F6G7 (14261891)

Note:
After applying the WebLogic Server Patches, Rstart all WebLogic Server Instances in the domain.