Introduction
From time to time, we need to install patches on our WebLogic Server (WLS). Oracle provides the Smart Update utility (bsu.sh) to install and remove these patches.
Below are examples of installing, removing, and listing these patches on our WLS in our E-Business Suite 12.2 environment running on a Linux server
Install a WebLogic Server Patch
Step 1: Download the patch from My Oracle Support and upload to the WebLogic Server host
Step 2: Copy patch to the cache_dir and uncompress
As the applmgr user
unix> cp p12345678_R12_GENERIC.zip $FMW_HOME/utils/bsu/cache_dir
unix> cd $FMW_HOME/utils/bsu/cache_dir
unix> unzip -o p12345678_R12_GENERIC.zip
Step 3: Set environmental variables
As the applmgr user
unix> export ORACLE_HOME=$FMW_Home/wlserver_10.3
unix> export PATH=$ORACLE_HOME/OPatch:$PATH
Step 4: Install the patch
As the applmgr user
unix> cd $FMW_HOME/utils/bsu
unix> ./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=ABCD \
-prod_dir=$FMW_HOME/wlserver_10.3 -log=/tmp/ABCD.log -log_priority=trace
Remove a WebLogic Server Patch
Step 1: Set environmental variables
As the applmgr user
unix> export ORACLE_HOME=$FMW_Home/wlserver_10.3
unix> export PATH=$ORACLE_HOME/OPatch:$PATH
Step 2: Remove the patch
As the applmgr user
unix> cd $FMW_HOME/utils/bsu
unix> ./bsu.sh -remove -patchlist=ABCD -prod_dir=$FMW_Home/wlserver_10.3
List Applied Patches
Step 1: Set environmental variables
As the applmgr user
unix> export ORACLE_HOME=$FMW_Home/wlserver_10.3
unix> export PATH=$ORACLE_HOME/OPatch:$PATH
Step 2: Remove the patch
As the applmgr user
unix> cd $FMW_HOME/utils/bsu
unix> ./bsu.sh -prod_dir=$FMW_HOME/wlserver_10.3 -status=applied -verbose -view
Credits
- This tutorial is independently created and is not official Oracle Corporation documentation.
- The content of this tutorial has been enriched by leveraging the insights and documentation available from Oracle Corporation. We extend our thanks to Oracle for their dedication to knowledge sharing. For official Oracle resources and additional information, please refer to www.oracle.com.