In Oracle Weblogic, we often gets security patches and other patches related to product. As Oracle Weblogic Admins it required to apply patches regularly, in this post will see how to apply patches from bsu utility in command prompt.
Preparing to Install Oracle Weblogic Server Patch set :
- set the WLS_Home ( eg :. . $WL_HOME/server/bin/setWLSEnv.sh)
- Execute the bsu.sh
bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir
-patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
12UV -prod_dir=/u01/oracle/fmw/wlserver_10.3 –verbose
Note : These are general instruction for patches, but it’s advised to read the readme file that comes with patch to make sure if it needs any additional steps for particular patch.
Preparing to Install Oracle Weblogic Server Patch set :
- Patches can be applied on a per-domain basis or
installation –wide basis, its better to apply the patch
to installation wide.
- user the same user which was used to install the
weblogic to login to the servers.
- Stop all running instances of weblogic on the
domain hosted on the server.Installing the Oracle Weblogic Serer Patch Set :
- Down load the required patch set from the oracle support.
- copy the patchset to{MW_HOME}/utils/bsu/cache_dir or any local directory on the server and make sure its permissions are correct to execute the patch.
- set the WLS_Home ( eg :. . $WL_HOME/server/bin/setWLSEnv.sh)
- Execute the bsu.sh
bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir
-patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
u01/oracle/fmw/utils/bsu> ./bsu.sh -install -patch_
download_dir
=/u01/oracle/fmw/utils/bsu/cache_dir/ -patchlist=12UV -prod_dir=/u01/oracle/fmw/wlserver_10.3 –verbose
Post-Install verification :
- Restart all the weblogic servers
- The following command is a simple way to
. $WL_HOME/server/bin/setWLSEnv.shdetermine the application of WebLogic Server PSU.
$ java weblogic.version
Uninstalling the Patch :
Stop all the weblogic servers on the machine
- Execute bsu.sh -remove -patchlist={PATCH_ID} -p
od_dir={MW_HOME}/{WL_HOME}
- Restart all Weblogic servers.Note : These are general instruction for patches, but it’s advised to read the readme file that comes with patch to make sure if it needs any additional steps for particular patch.