如何为WebLogic 8.x,9.x,10.x打补丁呢?是很多技术人员关心的话题,weblogic和websphere是中间件的大哥,然而俩者打补丁的方法有些不同。下面是WebLogic如何修补补丁,WebLogic各版本修复补丁的方法大致相同:

Note : Befor applying pathces make sure that back up is taken , for example please take back up of entire domain directory .(提醒:在修复补丁前要做好备份工作)

We have serveral ways to apply patches , maintanence packs to weblogic like editing startup scripts, using Bea Smart Update tool.(打补丁先编辑启动脚本,用 Bea Smart Update tool工具进行更新)

Below are the steps to apply patches by editing startup scritps :

1) Create directory C:\bea\weblogic81or 92 or 103\server\lib\patches

(创建补丁目录)
2) Copy jar files into created directory CR127945_xxxx.jar,CR124988_xxxx.jar
(把jar文件复制到创建的目录中)

3) Modify startWebLogic.cmd to include jar files first in the classpath.
(编辑启动脚本的路径使其加载jar文件)
set
CLASSPATH=%WL_HOME%\server\lib\patches\CR1247945_xxxx.jar;%WL_HOME%\server\l
ib\patches\CR124988_xxxx.jar;%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JA
VA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

4) Restart Admin and managed servers and check the console for new patches applied or not.

(以admin用户权限重启启动)