Applying January 2023 WebLogic Stack Patch Bundle (SPB)

Puneeth Prakash
1 min readJan 18, 2023

--

NOTE: Refer to the README document of SPB for detailed patch installation instructions.

In this example, I have listed a few sample commands to apply Jan 2023 WLS SPB to WLS 12.2.1.4 installed on Oracle Linux.

Step 1 :

Stop all WebLogic processes before patch installation. Download SPB and take a complete backup of DOMAIN_HOME, ORACLE_HOME, and CENTRAL INVENTORY.

Download SPB from “Critical Patch Update (CPU) Patch Advisor for Oracle Fusion Middleware — Updated for January 2023 (Doc ID 2806740.2)”
https://blogs.oracle.com/blogbypuneeth/post/oracle-weblogic-server-critical-patch-update---january-2023

Commands : (Take backup)

cd /refresh/home/Downloads

mkdir Jan23SPB

cp p34974729_122140_Generic.zip Jan23SPB

cd Jan23SPB

export ORACLE_HOME=/refresh/home/Oracle/Middleware/Oracle_Home
export JAVA_HOME=/refresh/home/jdk/latest
export DOMAIN_HOME=$ORACLE_HOME/user_projects/domains/base_domain
export SPB_HOME=/refresh/home/Downloads/Jan23SPB

tar -cf oraInventory_Jan23_PreSPB_backup.tar /refresh/home/oraInventory/*

tar -cf Oracle_Home_Jan23_PreSPB_backup.tar $ORACLE_HOME

unzip $SPB_HOME/p34974729_122140_Generic.zip

Step 2:

Download and Install the latest JDK :

Commands : (Set a symbolic link to new JDK installation)

Old → ln -s ./jdk1.8_271 latest
New → ln -nfs ./jdk1.8_361 latest

Step 3:

SPB can be installed using SPBAT or OPatch tool

Step 3.1:

Apply SPB using SPBAT :

Commands :

cd $SPB_HOME/WLS_SPB_12.2.1.4.*/tools/spbat/generic/SPBAT

./spbat.sh -phase apply -oracle_home $ORACLE_HOME

$ORACLE_HOME/OPatch/opatch version

$ORACLE_HOME/OPatch/opatch lspatches

OR

Step 3.2:

Apply SPB using OPatch tool :

Step 3.2.1:
Manually upgrade OPatch tool :

Commands :

$ORACLE_HOME/OPatch/opatch version

unzip $SPB_HOME/WLS_SPB_12.2.1.4.*/tools/opatch/generic/*_Generic.zip -d /tmp/opatch
$JAVA_HOME/bin/java -jar /tmp/opatch/6880880/opatch_generic.jar -silent oracle_home=$ORACLE_HOME

$ORACLE_HOME/OPatch/opatch version

Step 3.2.2:
Apply SPB :

Commands :

cd $SPB_HOME/WLS_SPB_12.2.1.4.*/binary_patches

$ORACLE_HOME/OPatch/opatch napply -oh $ORACLE_HOME -phBaseFile linux64_patchlist.txt

$ORACLE_HOME/OPatch/opatch lspatches

--

--

Puneeth Prakash
Puneeth Prakash

Written by Puneeth Prakash

I work as a Subject Matter Expert in FMW at Oracle. This blogging space is to share my learning experiences. Views expressed here are solely my own.

Responses (1)