# Weblogic Environment
export MW_HOME=/u01/app/oracle/product/fmw11g
export WLS_HOME=$MW_HOME/wlserver_10.3
export WL_HOME=$WLS_HOME
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64
export PATH=$JAVA_HOME/bin:$PATH
Applying Patch Set Updates (PSUs)The patch set updates (PSUs) come with a "README.txt" file that explains how to apply the patches. You should always follow the patch note, but the basic format is typically as follows.Unzip the patch into the correct location.
[oracle@XXXXXXX tmp]$ unzip p26519424_1036_Generic.zip -d $MW_HOME/utils/bsu/cache_dir
Archive: p26519424_1036_Generic.zip
extracting: /u01/app/oracle/product/fmw11g/utils/bsu/cache_dir/FMJJ.jar
inflating: /u01/app/oracle/product/fmw11g/utils/bsu/cache_dir/patch-catalog_25504.xml
inflating: /u01/app/oracle/product/fmw11g/utils/bsu/cache_dir/README.txt
[oracle@xxxx ]$ ls -l $MW_HOME/utils/bsu/cache_dir
total 165800
-rw-r--r--. 1 oracle oinstall 90860993 Sep 12 15:15 FMJJ.jar
-rw-r--r--. 1 oracle oinstall 78902955 Sep 5 02:08 patch-catalog_25504.xml
-rw-rw-r--. 1 oracle oinstall 8741 Oct 12 04:39 README.txt
[oracle@XXXXXXX cache_dir]$Apply the patch.
$ cd $MW_HOME/utils/bsu
$ [oracle@XXXXXXX bsu]$ ./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=$WLS_HOME -log=/tmp/weblogic_patching.log
Exception in thread "Main Thread" java.lang.OutOfMemoryError
Solution : Edit the bsu.cmd and increase the JVM to something like below.
-Xms1024m –Xmx2048m
[oracle@XXXXXXX bsu]$ ./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=$WLS_HOME -log=/tmp/weblogic_patching.log
Checking for conflicts...
No conflict(s) detected
Installing Patch ID: FMJJ
..
Result: Success
If you get conflicts, you may have to remove previous patches, before attempting to apply the patch again.
[oracle@xxxxxxxxx bsu]$ ./bsu.sh -install -patch_download_dir=$MW_HOME/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=$WLS_HOME -log=/tmp/weblogic_patching.log
Checking for conflicts........
Conflict(s) detected - resolve conflict condition and execute patch installation again
Conflict condition details follow:
Patch FMJJ is mutually exclusive and cannot coexist with patch(es): B25A
[oracle@FCISCOSTBAPP1 bsu]$
Checking for conflicts......
No conflict(s) detected
Removing Patch ID: B25A.
Result: Success
[oracle@xxxxxxxxx bsu]# ./bsu.sh -install -patch_download_dir=/u01/app/oracle/Middleware/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=/u01/app/oracle/Middleware/wlserver_10.3/ -log=/tmp/weblogic_patching.log
Checking for conflicts......
No conflict(s) detected
Installing Patch ID: FMJJ..
Result: Success
After the patch is successfully applied, restart all WebLogic servers.
Check the version.
[oracle@xxxxxx bsu]$ . $WLS_HOME/server/bin/setWLSEnv.sh
CLASSPATH=/u01/app/oracle/product/fmw11g/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/product/fmw11g/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jdk1.8.0_45/lib/tools.jar:/u01/app/oracle/product/fmw11g/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/product/fmw11g/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/product/fmw11g/modules/features/weblogic.server.modules_10.3.6.0.jar:/u01/app/oracle/product/fmw11g/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/product/fmw11g/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/u01/app/oracle/product/fmw11g/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/u01/app/oracle/product/fmw11g/wlserver_10.3/server/bin:/u01/app/oracle/product/fmw11g/modules/org.apache.ant_1.7.1/bin:/u01/app/oracle/jdk1.8.0_45/jre/bin:/u01/app/oracle/jdk1.8.0_45/bin:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/bin:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.41.x86_64/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin
Your environment has been set.
[oracle@xxxxx bsu]$ java weblogic.version
WebLogic Server 10.3.6.0.171017 PSU Patch for BUG26519424 TUE SEP 12 18:34:42 IST 2017
WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
Use 'weblogic.version -verbose' to get subsystem information
Use 'weblogic.utils.Versions' to get version information for all modules
[oracle@xxxxxx bsu]$