Tracking applied Patches in WebLogic Server outfile

Posted by Dirk Nachbar on Wednesday, May 09, 2018
With a small trick you can track your applied patches in your Oracle Software Home on your Oracle WebLogic Server in the outfile.

Simply add -Dweblogic.log.DisplayPatchInfo=true to your already existing setUserOverrides.sh or create a new setUserOverrides.sh in your $DOMAIN_HOME/bin directory.

 # Display applied patches in WebLogic Server outfile
JAVA_OPTIONS="$JAVA_OPTIONS -Dweblogic.log.DisplayPatchInfo=true "

After that just restart your WebLogic Server and you will find in the outfile of your WebLogic Server following entries:

 # Snippet from outfile
<May 9, 2018 9:15:30 AM CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.3.0 Thu Aug 17 13:39:49 PDT 2017 1882952
OPatch Patches:
27342434;21933966;Thu Apr 26 16:14:03 CEST 2018;WLS PATCH SET UPDATE 12.2.1.3.180417
26355633;21447583;Thu Aug 31 14:26:20 CEST 2017;One-off
26287183;21447582;Thu Aug 31 14:26:10 CEST 2017;One-off
26261906;21344506;Thu Aug 31 14:25:53 CEST 2017;One-off
26051289;21455037;Thu Aug 31 14:25:48 CEST 2017;One-off>

The provided data in the outfile is in following format:

  1. Patch Number
  2. Unique Patch ID
  3. On which date and time the Patch was applied
  4. Patch description
To crosscheck just run an opatch lsinventory in order to validate the provided data in your outfile:

 cd $ORACLE_HOME/OPatch
./opatch lsinventory | grep applied

Patch  27342434     : applied on Thu Apr 26 16:14:03 CEST 2018
Patch  26355633     : applied on Thu Aug 31 14:26:20 CEST 2017
Patch  26287183     : applied on Thu Aug 31 14:26:10 CEST 2017
Patch  26261906     : applied on Thu Aug 31 14:25:53 CEST 2017
Patch  26051289     : applied on Thu Aug 31 14:25:48 CEST 2017

As you can see, the provided patch data in the outfile of your WebLogic Server is exactly the same as in the opatch utility.