How To Apply weblogic PSU Patch

 

How To Apply weblogic PSU Patch

Env Details:

OS= Windows Server 2012 R12 64bit

#Middleware Home

MW_HOME= D:\Oracle\Middleware

Step 1.  

In this example we will be installing WLS PSU 10.3.6.0.211019(p33172858_1036_Generic.zip)

So download the patch from support.oracle.com

P.S. Following are the generic steps for installing a WLS Psu patch. But its always recommended to go through the readme file first and act accordingly.

Step 2.

Shutdown weblogic services in following order.

1.       Stop opmn process

2.       Stop WLS_REPORTS services

3.       Stop WLS_FORMS services

4.       Stop Weblogic Admin server

 

Step 3.

Remove any previously applied WebLogic Server Patch Set Update and associated overlay patches

In this example, we didn’t have any previously applied wls PSU installed.

To get information about list of patches installed run following command.

Cd D:\Oracle\Middleware\utils\bsu

D:\Oracle\Middleware\utils\bsu>bsu.cmd -report

Patch Report

============

  Report Info

    Report Options

      bea_home.................. ### OPTION NOT SET

      product_mask.............. ### OPTION NOT SET

      release_mask.............. ### OPTION NOT SET

      profile_mask.............. ### OPTION NOT SET

      patch_id_mask............. ### OPTION NOT SET

    Report Messages

  BEA Home.................. D:\Oracle\Middleware

 

  Product Description

  Product Name.............. WebLogic Server

  Product Version........... 10.3.6.0

  Installed Components...... Core Application Server, Administration Console, Co

nfiguration Wizard and Upgrade Framework, Web 2.0 HTTP Pub-Sub Server, WebLogic

SCA, WebLogic JDBC Drivers, Third Party JDBC Drivers, WebLogic Server Clients, W

ebLogic Web Server Plugins, UDDI and Xquery Support, Evaluation Database, Worksh

op Code Completion Support

  Product Install Directory. D:\Oracle\Middleware\wlserver_10.3

  Java Home................. null

  Jave Vendor............... Sun

  Java Version.............. 1.6.0_29

  Patch Directory........... D:\Oracle\Middleware\patch_wls1036

 

  Product Description

  Product Name.............. Oracle Coherence

  Product Version........... 3.7.1.1

  Installed Components...... Coherence Product Files

  Product Install Directory. D:\Oracle\Middleware\coherence_3.7

  Java Home................. null

  Jave Vendor............... null

  Java Version.............. null

  Patch Directory........... D:\Oracle\Middleware\patch_ocp371

 

We faced error while generating above report. Error was like "java.lang.OutOfMemoryError: Java heap space" 

 

Solution :

This solution is for Windows 64bit OS.

Go to $MW_HOME/utils/bsu

Prepare to edit the bsu.sh (for UNIX) or bsu.cmd (for Windows)

Find the MEM_ARGS setting, e.g., the default as MEM_ARGS="-Xms256m -Xmx512m"

Increase these values to a higher setting, e.g., MEM_ARGS="-Xms4096m –Xmx4096m"

 

 

Step 4.

Apply WLS BSU (Smart Update) fix for quicker patch application. This step can be skipped if the fix is already applied.

Apply patch Patch 12426828 SMARTUPDATE 3.3 INSTALLER PLACEHOLDER 

Check readme file for patch apply instructions.

To check bsu version

%MW_HOME%\utils\bsu\bsu.cmd -version (for Windows)
$MW_HOME/utils/bsu/bsu.sh -version (for Unix/Linux)

 

Step 5.

Create Cache_dir

Create Directory cache_dir inside $MW_HOME/utils/bsu

Copy The Downloaded Patch To $MW_HOME/utils/bsu/cache_dir 

And unzip it inside cache_Dir directory.

 

 

Step 6. 

Set The Environment Using setWLSEnv.sh 

cd D:\Oracle\Middleware\wlserver_10.3\server\bin

setWLSEnv.cmd

 

Step 7. 

Run The Patch Install Command Using bsu.cmd

Syntax:- - Execute bsu.cmd -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}

bsu.cmd -install -patch_download_dir=D:\Oracle\Middleware\utils\bsu\cache_dir -patchlist=21Y4 -prod_dir=D:\Oracle\Middleware\wlserver_10.3 -install -log=patch_apply.log -log_priority=trace

 

This entire process takes sometime to complete.

 

Step 8.

Verifying the Patch

cd $MW_HOME/utils/bsu

 bsu.cmd -report -bea_home=D:\Oracle\Middleware -output_file=bsureprot.log

 

Also, this can be verified from weblogic console.

Domain Structure -> Servers->Click on Adminserver ->Monitoring ->General

This page will show you weblogic version.

 

Step 9.

Start all weblogic services

1.       Start  Weblogic Admin server

2.       Start WLS_FORMS services

3.       Start WLS_REPORTS services

4.       Start OPMN services


If you need to remove patchset:-

bsu.cmd -remove -patchlist=21Y4 -prod_dir=D:\Oracle\Middleware\wlserver_10.3