1. Backup the following files
ADMIN SERVER DOMAIN FOLDER:
$WLSDOMAIN/<<DOMAIN NAME>>/bin/setDomainEnv.sh
(WHERE THE ORIGINAL OR MASTER COPY OF ADMIN SERVER DOMAIN FOLDER IS LOCATED) - typicall shared storage.
MANAGED SERVER DOMAIN FOLDER:
$MWHOME/admin/<<DOMAIN NAME>>/mserver/<<DOMAIN NAME>>/bin/setDomainEnv.sh
(On all nodes viz node1,2,3 & 4)
$WLSHOME/common/bin/commEnv.sh
(On all nodes viz node1,2,3 & 4)
2. Edit setDomainEnv.sh
file
The setDomainEnv script is
located in the bin subdirectory of the domain’s root directory.
$WLSDOMAIN/<<DOMAIN NAME>>/bin/setDomainEnv.sh
(from any one node)
$MWHOME/admin/<<DOMAIN NAME>>/mserver/<<DOMAIN NAME>>/bin/setDomainEnv.sh
(On all nodes viz node1,2,3 & 4)
The first code snippet shows
the initial existing settings in bold for older version of JDK:
SUN_JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_24"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}"
= "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_24"
export JAVA_HOME
fi
fi
The second code snippet shows
the changes, in bold, made to switch to newer version:
SUN_JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_39"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}"
= "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_39"
export JAVA_HOME
fi
fi
3. The following two code
snippets show the switching of the default JDK from Older to newer version of
JDK in commEnv.sh.
$WLSHOME/common/bin/commEnv.sh
(On all nodes viz node1,2,3 & 4)
The first code snippet shows
the initial existing settings of older version of JDK:
# Reset JAVA_HOME, JAVA_VENDOR
and PRODUCTION_MODE unless JAVA_HOME
# and JAVA_VENDOR are
pre-defined.
if [ -z "${JAVA_HOME}"
-o -z "${JAVA_VENDOR}" ]; then
# Set up JAVA HOME
JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_24"
# Set up JAVA VENDOR,
possible values are
#Oracle, HP, IBM, Sun ...
JAVA_VENDOR=Sun
# PRODUCTION_MODE,
default to the development mode
PRODUCTION_MODE=""
fi
The second code snippet shows
the changes, in bold, made to switch to newer version:
# Reset JAVA_HOME, JAVA_VENDOR
and PRODUCTION_MODE unless JAVA_HOME
# and JAVA_VENDOR are
pre-defined.
if [ -z "${JAVA_HOME}"
-o -z "${JAVA_VENDOR}" ]; then
# Set up JAVA HOME
JAVA_HOME="/reuters/oracle/product/soa/11g/fmw/jdk1.6.0_39"
# Set up JAVA VENDOR,
possible values are
#Oracle, HP, IBM, Sun ...
JAVA_VENDOR=Sun
# PRODUCTION_MODE,
default to the development mode
PRODUCTION_MODE=""
fi
4. CHANGE THE JAVA_HOME VALUE TO LATEST ONE IN .PROFILE FILE
5. LOGIN TO PUTTY WITH A NEW SESSION AND VALIDATE IF THE JDK VERSION IS LATEST or not by running java -version command.
cheers
This is amazing blog,It is very helpful for developer
ReplyDeleteOracle SOA Online Training
My steps to upgrade jdk would be:-
ReplyDeletehttps://dipankarhazrabanerjee.wordpress.com/2018/11/28/upgrading-jdk-in-your-oracle-fusion-middleware-environment11g-12c/
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download Now
ReplyDelete>>>>> Download Full
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download LINK
>>>>> Download Now
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download Full
>>>>> Download LINK
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download Now
ReplyDelete>>>>> Download Full
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download LINK
>>>>> Download Now
My Work: Changing Weblogic Configuration To Use Newer Version Of Jdk >>>>> Download Full
>>>>> Download LINK hy