Wednesday, May 10, 2023

Patching-WebLogic-Server

 

Applying patches to WebLogic Server 12c is done using the OPatch utility. Make sure any processes running under this WebLogic installation are stopped before applying a patch.

Download the latest version of OPatch and the WebLogic updates from Oracle Support and put them into the "/u01/software" directory with the other software. For example.

  • OPatch : p6880880_132000_Generic.zip *** See Note Below
  • Updates : p22331568_122100_Generic.zip

 At the time of writing, the latest version of OPatch (OUI NextGen 13.2) is older than the version of OPatch that ships with WebLogic Server 12.2.1.

Assuming a newer version of OPatch were available you would unzip the OPatch utility and add it to your path.

cd /u01/software
unzip p6880880_132000_Generic.zip
export PATH=/u01/software/OPatch:$PATH

Since there isn't a newer version available at the time of writing, we will use the existing one.

export PATH=$MW_HOME/OPatch:$PATH

Unzip the patch and change to the resulting directory, then apply the patch.

unzip -d PATCH_TOP p22331568_122100_Generic.zip
cd PATCH_TOP/22331568
export ORACLE_HOME=$MW_HOME
opatch apply

Answer any prompts and take appropriate action when required.

When the patch is complete, check the WebLogic version using the following command. Depending on the scale of the patch, the version may not have changed.

. $WLS_HOME/server/bin/setWLSEnv.sh
java weblogic.version

No comments:

Post a Comment