Total Pageviews

Monday, October 17, 2016

steps to upgrade JKD version at weblogic





Below is an outline of the steps that can be followed to upgrade the JDK and the Weblogic servers within a WebLogic domain.
1.      On the admin and any remote managed servers, install the new JDK (1.6.0_29+) in a directory that does not have the JDK version number in its name (e.g. /opt/oracle/jdk)
a.      Update existing JAVA_HOME definition. If it does not exist, create it.
b.      Copy cacerts from the old JDK to the new one (under jdk/jre/lib/security)
c.      (Optional) Apply JCE

2.      Stop managed and admin servers in the domain

3.      On the admin and any remote managed servers, back up the MW_HOME directories

4.      Copy the following files from the Admin Server to any remote managed servers
·        <domain_name>/config/config.xml
·        <domain_name>/security/SerializedSystemIni.dat

5.      (JDK 1.7 only) Copy the following files from $MW_HOME/modules to $JDK_ROOT/jre/lib/endorsed
·        javax.annotation_1.0.0.0_1-0.jar
·        javax.xml.bind_2.1.1.jar
·        javax.xml.ws_2.1.1.jar

6.      On the admin and any remote managed servers, update the following scripts with $JAVA_HOME or the new JDK location (from step 1 above)
·        $MW_HOME/user_projects/domains/domain/bin/setDomainEnv.sh
·        $MW_HOME/utils/bsu/bsu.sh
·        $MW_HOME/utils/quickstart/quickstart.sh
·        $MW_HOME/utils/uninstall/uninstall.sh
·        $MW_HOME/wlserver_10.3/common/bin/commEnv.sh
·        $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh
·        $MW_HOME/wlserver_10.3/server/bin/startNodeManager.sh

7.      On the admin and any remote managed servers, update the following files with the new JDK location (from step 1 above)
·        $MW_HOME/user_projects/domains/domain/init-info/domain-info.xml
·        $MW_HOME/user_projects/domains/domain/init-info/startscript.xml
·        $MW_HOME/user_projects/domains/domain/init-info/tokenValue.properties
·        $MW_HOME/user_projects/domains/domain/servers/<server>/data/nodemanager/startup.properties
·        $MW_HOME/wlserver_10.3/.product.properties
·        $MW_HOME/wlserver_10.3/common/nodemanager/nodemanager.properties

8.      On the admin and any remote managed servers below version 10.3.6.0, upgrade WebLogic to 10.3.6.0
a.      java -Xms1024 -jar wls1036_upgrade_generic.jar

9.      On the admin and any remote managed servers, upgrade WebLogic to 10.3.6.0.160719 (PATCH_ID - UIAL)
a.      unzip p23094342_1036_Generic.zip to {MW_HOME}/utils/bsu/cache_dir or any local directory (Note: You must make sure that the target directory for unzip has required write and executable permissions for "user" with which the component being patched is installed.)
b.      Navigate to the {MW_HOME}/utils/bsu directory
c.      Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist= UIAL -prod_dir={MW_HOME}/{WL_HOME} -log=weblogic_upgrade.log

10.   Compare backed up and current MW_HOME directories

11.   Start admin and managed servers. Review the startup logs to ensure that the new JDK is being used

12.   Uninstall old JDK or rename its root directory

13.   Restart admin and managed servers and ensure that they start correctly and are not trying to use the old JDK

14.   Test the system

No comments:

Post a Comment