1.停止weblogic相关进程
2.获取需更新的JDK包,并解压至/wls/wls81/bea/
3. 修改启动weblogic的JAVA_HOME变量
[wls81@cnsz031527 PrdCSFWLDom380]$ cat servers.env|grepJAVA_HOME
VAR_JAVA_HOME:::JAVA_HOME=/wls/wls81/bea/jrockit-j2sdk1.4.2_08 --修改成新的JDK路径即可
4.重新启动weblogic
5. 验证
如下所示:
Alternatives
There are twodifferent approaches that can be used to achieve the required goal. Both willbe described briefly:
A) Installing anew JDK home, and using symbolic link to "rename" the existing andnew JDK directories.
Following thisapproach, the JDK location originally used during the installation will notchange and hence it has the minimal drawback that it might keep a versionedname as for example "$INSTALL_HOME/jdk_".
In any of thecases, this approach is simpler and less error prone than Approach B)
B) Installing a new JDK home directory and replacing the JAVA_HOMEenvironmental variable in *** all *** the scripts referring to it.
This is the preferred approach if you want to do a partial upgrade (affectingto specific domains only, or not affecting to nodemanager), but its difficultyis around on how to know which files do refer to a JDK location.
The initial list of files to change will be :
*$INSTALL_HOME/wlserver_10.3/common/bin/commEnv.sh
* $INSTALL_HOME/user_projects/domains//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
even that a moreexhaustive way to determine them, will be to run the following command:
find . -type f-name "*.sh" -ex