Home » Oracle » Weblogic » How to check patches applied in weblogic |10.3.6 and 12c

How to check patches applied in weblogic |10.3.6 and 12c

Here in this post, we will see how to check patches applied in weblogic in 10.3.6 version, 12c (12.1.1  and 12.1.2 and later ).

How to check patches applied in weblogic in the 10.3.6 version and up to 12.1.1

  • Weblogic Smart Update utility (bsu)  is used to apply patches in the 10.3.6 and 12.1.1 versions of weblogic.
  • Weblogic Smart Update utility (bsu) lies in $MW_HOME/utils/bsu/
  • BSU Utility stands for BEA Smart Update utility

Now how to check patches applied in weblogic in 10.3.6

For Unix

cd $MW_HOME/utils/bsu/
bsu.sh -prod_dir=$MW_HOME\wlserver_10.3 -status=applied -verbose -view

For Windows

bsu.cmd -prod_dir=$MW_HOME\wlserver_10.3 -status=applied -verbose -view

Another simple way to determine the application of WebLogic Server PSU.

For Unix

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

For Windows

$WL_HOME/server/bin/setWLSEnv.cmd
java weblogic.version

In the following example output, 10.3.6.0.190416 is the installed WebLogic Server PSU.

WebLogic Server 10.3.6.0.190416 PSU Patch for BUG29204678

java weblogic.version -verbose can give more output

If you receive the below error while checking with the BSU utility

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2521)
at java.lang.Class.getMethod0(Class.java:2764)

The following steps can be used

Increase the heap size to allow more memory and prevent an eventual “java.lang.OutOfMemoryError: GC overhead limit exceeded” error:

Go to $WL_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="-Xms1024m -Xmx1024m"

Ensure MEM_ARGS are used in the bsu script for the patch-client.jar to resolve “java.lang.OutOfMemoryError: Java heap space” error:

Look for the line:
"$JAVA_HOME/bin/java" -jar patch-client.jar $*

Change to the following to ensure the MEM_ARGS are passed:
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*

How to check patches applied in weblogic in Weblogic 12.1.2 and later

BSU Utility is deprecated in 12.1.2. We use opatch to patch the weblogic installation

See also  Oracle virtual Private database(VPD)

On Unix:

cd $MW_HOME/OPatch
./opatch lsinventory
or
./opatch lspatches

On Windows:

Please make sure to open cmd with Administrative options

cd %MW_HOME%/OPatch
opatch lsinventory

Apart from checking from these commands given above, the weblogic version and patches applied can be found in the admin console startup log also. So you just need to start the Administrative server and check its log to see the version

Hope you like the post and that it helps you check patches applied


Related Articles

Weblogic Administration Console
How to start/stop Node manager and Managed server in Weblogic
Weblogic Interview questions
Oracle Weblogic server
Middleware Home and WebLogic Server Home Directories
https://www.oracle.com/in/middleware/technologies/weblogic.html


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top