weblogic补丁升级指导V10.docx
《weblogic补丁升级指导V10.docx》由会员分享,可在线阅读,更多相关《weblogic补丁升级指导V10.docx(6页珍藏版)》请在冰豆网上搜索。
![weblogic补丁升级指导V10.docx](https://file1.bdocx.com/fileroot1/2022-12/18/ff1855c4-a6da-4142-9a8b-a1e6cbfc735b/ff1855c4-a6da-4142-9a8b-a1e6cbfc735b1.gif)
weblogic补丁升级指导V10
WeblogicServer补丁升级指导
2013-04-28
胡亮
目录
目录2
一、补丁说明2
二、补丁下载4
三、补丁安装注意事项4
四、补丁安装方法4
第一种(重要):
bsu安装4
第二种:
oracle自带SmartUpdate7
第三种:
jar包加载安装8
一、补丁说明
补丁大致分为四种,如下为oracle官方描述:
参考:
OPatchcanbeusedforthefollowingtypesofpatches:
Apatchsetexception(alsoknownasaPSE,one-off,orinterimpatch)
Thisisusuallyasinglefixforasingleproblem.One-offsinSTproducts(GC,DB/ASControletc)arepackagedandappliedviaOPatch.One-offsarebugfixesgiventocustomersincriticalneedandarenotcumulative,regressedorversioned.Youcanusethe opatchlsinventory commandtoseewhichone-offpatchesareinstalledonyoursystem.
Apatchbundle(alsoknownasanMLRpatch)
Thistypeofpatchiscreatedbyputtingseveralfixesintoasinglepatch.Thisisusuallydoneifseveralfixesareneededandthevariousinterimpatchesapplytothesamemodulesandcausethepriorpatchtoberemovedifappliedindividuallyastheycannotcoexist.PatchbundlesarealsoappliedusingOPatchandmetadatainformationaboutthemarealsokeptinasetofXMLfilesintheinventoryandmanipulatedbyOPatch.
SecurityPatches(alsoknownasCriticalPatchUpdatesorCPUs)
Securitypatchesaredifferentfromotherpatchtypesinthattheyonlyfixasingleorsmallnumberofproblems,andthattheyshouldbeappliedassoonaspossible–whenasecuritypatchisreleasedextraattentionisbroughttotheexistenceofthesecurityproblem.CPUsareperiodicsecuritybundlesreleasedbyOracleandareverymuchlikeinterimpatchesandwillbeappliedjustlikeaninterimpatchusingOPatch.Justlikeinterimpatches,CPUsarenotversioned.
PatchSetUpdates(PSUs)
PatchSetUpdatesarereleasedonaquarterlybasis,followingthesamescheduleastheCriticalPatchUpdates(CPUs).ThesecomeouttheclosestTuesdaytothe15thofthemonthsofJanuary,April,JulyandOctober.PatchSetUpdatecontentisintendedtoaddressthetopfiftycriticalbugsaffectingthebroadcustomerbase.
二、补丁下载
1.访问、登录oracle知识库:
2.如果已知补丁号,或者weblogic版本号,可顺序选择,下载oracle补丁
三、补丁安装注意事项
1.确定补丁类型,不同补丁类型有不同安装方法
2.确定weblogic版本,以及它已经安装的补丁集
3.一定要查看oracle给出的README补丁说明文件(补丁压缩包中会附带)
4.补丁安装前做好WLS_HOME备份
5.停掉在此weblogic版本下的所有java进程。
四、补丁安装方法
第一种(重要):
bsu安装
这种安装方式,适用于绝大多数的weblogic补丁安装。
建议:
安装CPU、PSU、patchbundle使用此种方法安装。
安装步骤:
1.对WLS_HOME全备份、并停掉此WLS_HOME下的所有java进程。
2.查看此weblogic的版本
通过如下命令,进行查看:
$.$WL_HOME/server/bin/setWLSEnv.sh
$javaweblogic.version
Windows示例如下:
3.查看此weblogic所安装的补丁集。
通过如下命令,进行查看:
cd$WL_HOME/utils/bsu
./bsu.sh-prod_dir=-patch_download_dir=-status=applied-verbose-view
Forexample:
./bsu.sh-prod_dir=/opt/bea/weblogic92-status=applied-verbose-view
Windows示例如下:
4.安装补丁
执行如下命令,进行安装:
cd{MW_HOME}/utils/bsudirectory.
./bsu.sh-install-patch_download_dir={MW_HOME}/utils/bsu/cache_dir-patchlist={PATCH_ID}-prod_dir={MW_HOME}/{WL_HOME}
Windows示例如下:
5.然后参考步骤3,在次检查此版本补丁是否被正确安装,如下
6.如果需要卸载,则可采取如下操作:
执行如下命令,进行安装:
cd{MW_HOME}/utils/bsudirectory.
./bsu.sh-remove-patchlist={PATCH_ID}-prod_dir={MW_HOME}/{WL_HOME}
Windows示例如下:
7.重启所有的weblogicserver。
第二种:
oracle自带SmartUpdate
这种安装方式,适用于可以连接oracle服务器的自动检测安装。
因为weblogic一般安装在生产环境,并且外网检测速度较慢,不推荐使用。
使用方法如下:
cd{MW_HOME}/utils/bsudirectory.
Java–jarpatch-client.jar
需要GUI模式,出现如下界面,起初会连接oracle服务器,并显示你已下载的补丁和安装的补丁。
智能卸载、安装即可。
第三种:
jar包加载安装
这种安装方式,适用于fixbugoracle出具的CR开头的补丁。
因为此方法在weblogic8、9版本比较实用,故对于bug补丁的安装,建议采用此种方式。
安装步骤,如下:
1.下载CR开头的bug补丁,解压出jar文件。
2.停掉所有weblogicserver;在Weblogic10/common/bin/commEnv.sh脚本中,找到WEBLOGIC_CLASSPATH一行
3.在WEBLOGIC_CLASSPATH变量的[]中添加补丁jar包。
WEBLOGIC_CLASSPATH=/路径/CR370915_1030GA.jar:
$。
。
。
。
。
。
。
。
。
。
。
。
。
。
。
。
4.重启weblogicserver