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 10.3.6 version and up to 12.1.1
- Weblogic Smart Update utility (bsu) is used to apply patches in 10.3.6 and 12.1.1 version 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 below error while checking with 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)
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 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
On Unix:
cd $MW_HOME/OPatch ./opatch lsinventory
On Windows:
cd %MW_HOME%/OPatch opatch lsinventory
Apart from checking from these command given above, weblogic version and patches applied can be found from 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 it helps you in checking 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 Reply