How to List the applied Patches in Weblogic

To List the applied patches in weblogic, you can do the following.

For Versions Prior 10.3

  1. Go to your MW_HOME/utils/bsu directory
  2. Run the following command
./bsu.sh -report
Note* If you get any error like "unable to access patch-client.jar" - Execute the setWLSEnv.sh from WL_HOME/server/bin script and retry

For weblogic 12c and above

  1. Goto MW_HOME/OPatch/ directory
  2. Run the following command
./opatch lspatches

Sample Output

List the applied patches in weblogic

If you are not aware of what is your MW_HOME and what is your WL_HOME.

Use this trick.

Look for the weblogic.jar file in your filesystem

mwinventory:OPatch aksarav$ find /apps -name "weblogic.jar"
/apps/oracle-weblogic/wls12213/wlserver/server/lib/weblogic.jar

 

You will get the file location like preceding snip, Lets decode it.

/apps/oracle-weblogic/wls12213/wlserver/server/lib/weblogic.jar

WL_HOME = Parent directory of server/lib/weblogic.jar  

therefore /apps/oracle-weblogic/wls12213/wlserver/ is WL_HOME

MW_HOME = Parent directory of WL_HOME 

therefore /apps/oracle-weblogic/wls12213 is my MW_HOME

References:

Opatch and its Options: https://docs.oracle.com/cd/B16240_01/doc/em.102/e15294/options.htm

BSU command line interface: https://docs.oracle.com/cd/E14759_01/doc.32/e14143/commands.htm

Hope it helps.

Cheers,

A K S A R A V