How to Upgrade the JDK Used by Oracle WebLogic Server 11g to a Different Version Step by Step.
Hi All,
We have upgraded JDK From jdk1.6.0_45 10.3.6.0 To jdk1.6.0_19 on WebLogic Server 10.3.6.0. Kindly go through the below steps to perform on Web logic.
Step 1: Bring down All the services of weblogic server.
Bring Down All Managed server ,Admin server and Node manager .(Stop opmn services)
Step 2. Take a backup of weblogic server. (Parent directory backup)
nohup tar -cvzf Middleware.gz Middleware &
Step 3. Download Patch 27411678: Oracle JRE 6 Update 191.
Step 4. Unzip the patch on different directory location (temporary location)
Step 5. Go to parent directory of Existing JDK directory on server.
example. jdk160_18
Move exising directory as org.
mv jdk160_18 jdk160_18.org
Step6. Now install the new JDK version in a temporary location and then copy to the original one
./jre-6u191-linux-x64.bin
This installation will create new JDK directory . Now move this new directory to original directory location( Location Where we renamed original jdk)
Step 7. Change the JAVA_HOME path in below file to get this affected as soon as. take backup before changing the file .
INSTALL_HOME- This is nothing but parent directory of web logic server. eg. Middleware
Where you need to change location [ Follow below method to get this done]
1. Nodemanager.
javaHome=/o003/home/oracle/product/jdk1.6.0_45 jdk1.6.0_191
JavaHome=/o003/home/oracle/product/jdk1.6.0_45/jre
NativeVersionEnabled=FALSE --change this parameter as well in same file
2. setDomainEnv.sh
3.
/o003/home/oracle/product/Middleware/wlserver_10.3/common/bin
grep -i JAVA_HOME commEnv.sh
4.
bsu.jar bsu.sh cache_dir patch-client.jar smartupdate.ico
[oracle@arctic bsu]$ grep -i JAVA_HOME bsu.sh
JAVA_HOME="/o003/home/oracle/product/jdk1.6.0_45"
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
[oracle@arctic bsu]$ pwd
/o003/home/oracle/product/Middleware/utils/bsu
[oracle@arctic bsu]$
5.
[oracle@arctic quickstart]$ ls
images libjni.so quickstart.jar quickstart.sh
[oracle@arctic quickstart]$ grep -i JAVA_HOME quickstart.sh
JAVA_HOME="/o003/home/oracle/product/jdk1.6.0_45"
"${JAVA_HOME}/bin/java" ${JAVA_VM} -Djava.library.path="${BEAHOME}/utils/uninstall" -jar "${BEAHOME}/utils/quickstart/quickstart.jar" $*
[oracle@arctic quickstart]$ pwd
/o003/home/oracle/product/Middleware/utils/quickstart
[oracle@arctic quickstart]$
6.
[oracle@arctic uninstall]$ grep -i JAVA_HOME uninstall.sh
JAVA_HOME="/o003/home/oracle/product/jdk1.6.0_45"
"${JAVA_HOME}/bin/java" ${JAVA_VM} -Xmx256m -Djava.library.path="${BEAHOME}/utils/uninstall" -Dhome.dir="${BEAHOME}" -Dinstall.dir="${WL_HOME}" -jar "${BEAHOME}/utils/uninstall/uninstall.jar" $*
[oracle@arctic uninstall]$ pwd
/o003/home/oracle/product/Middleware/utils/uninstall
[oracle@arctic uninstall]$
7.
[oracle@arctic wlserver_10.3]$ ls -a .product.properties
.product.properties
[oracle@arctic wlserver_10.3]$ pwd
/o003/home/oracle/product/Middleware/wlserver_10.3
[oracle@arctic wlserver_10.3]$ grep -i JAVA_HOME .product.properties
JAVA_HOME=/o003/home/oracle/product/jdk1.6.0_45
WLS_JAVA_HOME=/o003/home/oracle/product/jdk1.6.0_45
[oracle@arctic wlserver_10.3]$
$INSTALL_HOME/wlserver_10.3/common/bin/commEnv.sh
$INSTALL_HOME/user_projects/domains/<mydomain>/bin/setDomainEnv.sh
$INSTALL_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties
$INSTALL_HOME/utils/bsu/bsu.sh
$INSTALL_HOME/utils/quickstart/quickstart.sh
$INSTALL_HOME/utils/uninstall/uninstall.sh
$INSTALL_HOME/wlserver_10.3/.product.properties
Also change NativeVersionEnabled=false in nodemanages.properties file.
Step 8. Check the installed JDK Version now.
$INSTALL_HOME/jdk160_18/bin/java -fullversion
Start the processes as normal, they should take
the new JDK version.
oracle@atlanticbin]$cd
/o003/home/oracle/product//Middleware/wlserver_10.3/server/bin/
[oracle@atlanticbin]$./setWLSEnv.sh
[oracle@atlanticbin]$nohupsh
startNodeManager.sh >nodemanager_31July.log &
[oracle@atlantic
bin]/o003/home/oracle/product/Middleware/user_projects/domains/FRHDomain/bin
[oracle@atlanticbin]./setDomainEnv.sh
[oracle@atlanticbin]nohupsh
startWebLogic.sh >startWebLogic31July.log &
[oracle@atlanticbin][oracle@arctic
bin]$ nohupsh startManagedWebLogic.sh WLS_REPORTS > startManagedWebLogic_11Feb.log
&
[oracle@arcticbin]$ cd
/o003/home/oracle/product/Middleware/asinst_1/bin
[oracle@arcticbin]$
./opmnctl status
opmnctl status: opmn is
not running.
[oracle@arcticbin]$
./opmnctlstartall
[oracle@arcticbin]$
./opmnctl status
You can follow above steps in your environment.
Thanks and Regards
Amar Jadhav
Comments
Post a Comment