Upgrade to Weblogic 10.3.6
Upgrade to weblogic 10.3.6 is a Prereq for inplace upgrade weblogic 12c. Java compiler upgrade is also a mandatory requirement.
The patching procedure is as follows :
- Upgrade to weblogic 10.3.6 on OEL 6/7 is done by applying the patch 13529623
- It is best to stage the patch on a local mountpoing on the node
- Patch takes a backup of the existing domain config. however, as fallback option a snapshot is advisable prior to beginning the patching effort.
- Patch is execut by the command
java -jar wls1036_upgrade_generic.jar
- The patch screens are quite intuitive and prompts for backups wherever necessary.
- The patch will need the administrator to supply the domain home and a few other details. It should all complete quite quickly. (depending on the options chosen)
- The Oracles used case note https://docs.oracle.com/cd/E24902_01/doc.91/e18840/upgrade_1036.htm#EOHWL194 explains the process in great detail.
Java upgrade for weblogic
It is best to have the JAVA_HOME setup as a soft link directory before installing weblogic. The location of the JAVA_HOME is referenced in several files in the weblogic tech stack. If we have the JAVA_HOME setup as a symbolic link, there will be no need to update references to the JAVA_HOME in case there is future need to upgrade java to a higher release. It will be sufficient to drop and recreate the symbolic link to the new version.
Using symbolic links
oracle$:cd /mnt/oracle/products/
oracle$:/mnt/oracle/products$ cp -rp /csa/oracle_csa/infra/oracle/java/jdk/jdk-7/linux-x64/jdk_1.7.0_80 ./jdk_1.7.0_80
oracle$:/mnt/oracle/products$ ln -s ./jdk_1.7.0_80 java
oracle$:/mnt/oracle/products$ ls -rlt java
lrwxrwxrwx 1 oracle$: oinstall 14 Feb 15 14:04 java -> ./jdk_1.7.0_80
VERIFICATION STEPS
oracle$:/mnt/oracle/products$ cd java/bin
oracle$:/mnt/oracle/products/java/bin$ ./java -fullversion
java full version "1.7.0_80-b15"
UPDATE CONFIG FILES TO USE THE LATEST JAVA
Identify the references to /usr/java and change the config by using the following script:
oracle$:/mnt/oracle/products/wls/10.3$ grep -il "/usr/java" *|grep -iv log |grep -iv out > list
execute the follosing script to change all references to old java compile to the new compiler
oracle$:/mnt/oracle/products/wls/10.3$ cat change_java.sh
####!/usr/bin/ksh
set -x
for i in `cat list`
do
cp $i $i"_jdk_path_po"
sed -i 's/\/usr\/java\/jdk1.6.0_31/\/mnt\/oracle\/products\/java/g' $i
done