There are two different ways to apply patch in weblogic server ( Prior to Weblogic Server 12.1.2 versions )
From Weblogic Server 10.3.4 onwards Oracle has started releasing PSU ( Patch Set Updates ), and Opatch Utility to use from WLS 12.1.2 onwards to apply PSU, I will publish my next post on same shortly
1. [ Old One ] Download patch ( .jar files ) from oracle support site and add jar files directly to your server classpath.
2. Use BSU utility provided with Weblogic
First one is very simple, just extract jar files and updated classpath in your common environment script which is calling in each startup script or you can update classpath in each server stratup script.
Updating patch with BSU utility is also a simple one. Extract patch zip file once you have downloaded from oracle support and run bsu command as below to apply patch.
1. Extract patch zip file under $ORACLE_HOME/utils/bsu/cache_dir/
Note - ORACLE_HOME is same as BEA_HOME
2.Run below command
Syntax :
$./bsu.sh -prod_dir=<WEBLOGIC_HOME> -patchlist=<patchid> -verbose -install -log=<any_file_name>.
/bsu.sh -prod_dir=/opt/Oracle/Middleware/wlserver_10.3 -patchlist=KYXZ -verbose -install -log=error.log
Where -
a. /opt/Oracle/Middleware/wlserver_10.3 is your weblogic home directory
b. KYXZ ( KYXZ.jar ) is the patch jar file which you have extracted from patch zip file
In similar way, to install multiple patched together, just apply them separate by a comma as below
/bsu.sh -prod_dir=/opt/Oracle/Middleware/wlserver_10.3 -patchlist=KYXZ,P6UT -verbose -install -log=error.log
3. To verify run below command
./bsu.sh -prod_dir=/opt/Oracle/Middleware/wlserver_10.3 -view -status=applied
or
./bsu.sh -report
you can grep your patch no to verify as well as below
./bsu.sh -prod_dir=/opt/Oracle/Middleware/wlserver_10.3 -view -status=applied | grep -i KYXZ
Note- Before applying patch, make sure to shutdown your weblogic server completely and to take backup.
To remove a patch use below command
./bsu -remove -patchlist=KYXY -prod_dir=/opt/Oracle/Middleware/wlserver_10.3 -verbose
No comments:
Post a Comment