1、weblogic补丁升级指导V10Weblogic Server 补丁升级指导2013-04-28胡 亮目录目录 2一、补丁说明 2二、补丁下载 4三、补丁安装注意事项 4四、补丁安装方法 4第一种(重要):bsu安装 4第二种:oracle自带Smart Update 7第三种:jar包加载安装 8一、补丁说明 补丁大致分为四种,如下为oracle官方描述:参考:OPatch can be used for the following types of patches:A patch set exception (also known as a PSE, one-off, or interi
2、m patch)This is usually a single fix for a single problem. One-offs in ST products (GC, DB/AS Control etc) are packaged and applied via OPatch. One-offs are bug fixes given to customers in critical need and are not cumulative, regressed or versioned. You can use theopatchlsinventorycommand to see wh
3、ich one-off patches are installed on your system.A patch bundle (also known as an MLR patch)This type of patch is created by putting several fixes into a single patch. This is usually done if several fixes are needed and the various interim patches apply to the same modules and cause the prior patch
4、 to be removed if applied individually as they can not coexist. Patch bundles are also applied using OPatch and metadata information about them are also kept in a set of XML files in the inventory and manipulated by OPatch.Security Patches (also known as Critical Patch Updates or CPUs)Security patch
5、es are different from other patch types in that they only fix a single or small number of problems, and that they should be applied as soon as possible when a security patch is released extra attention is brought to the existence of the security problem. CPUs are periodic security bundles released b
6、y Oracle and are very much like interim patches and will be applied just like an interim patch using OPatch. Just like interim patches, CPUs are not versioned.Patch Set Updates (PSUs)Patch Set Updates are released on a quarterly basis, following the same schedule as the Critical Patch Updates (CPUs)
7、. These come out the closest Tuesday to the 15th of the months of January, April, July and October. Patch Set Update content is intended to address the top fifty critical bugs affecting the broad customer base.二、补丁下载1. 访问、登录oracle知识库:2. 如果已知补丁号,或者weblogic版本号,可顺序选择,下载oracle补丁三、补丁安装注意事项1. 确定补丁类型,不同补丁类
8、型有不同安装方法2. 确定weblogic版本,以及它已经安装的补丁集3. 一定要查看oracle给出的README补丁说明文件(补丁压缩包中会附带)4. 补丁安装前做好WLS_HOME备份5. 停掉在此weblogic版本下的所有java 进程。四、补丁安装方法第一种(重要):bsu安装这种安装方式,适用于绝大多数的weblogic补丁安装。建议:安装CPU、PSU、patch bundle使用此种方法安装。 安装步骤:1. 对WLS_HOME全备份、并停掉此WLS_HOME下的所有java进程。2. 查看此weblogic的版本通过如下命令,进行查看: $ . $WL_HOME/serve
9、r/bin/setWLSEnv.sh $ javaweblogic.versionWindows示例如下:3. 查看此weblogic所安装的补丁集。通过如下命令,进行查看:cd$WL_HOME/utils/bsu./bsu.sh -prod_dir= -patch_download_dir= -status=applied -verbose -viewFor example:./bsu.sh -prod_dir=/opt/bea/weblogic92 -status=applied -verbose -viewWindows示例如下:4. 安装补丁执行如下命令,进行安装:cdMW_HOME/
10、utils/bsu directory./bsu.sh -install -patch_download_dir=MW_HOME/utils/bsu/cache_dir -patchlist=PATCH_ID -prod_dir=MW_HOME/WL_HOMEWindows示例如下:5. 然后参考步骤3,在次检查此版本补丁是否被正确安装,如下6. 如果需要卸载,则可采取如下操作:执行如下命令,进行安装:cdMW_HOME/utils/bsu directory./bsu.sh -remove -patchlist=PATCH_ID -prod_dir=MW_HOME/WL_HOMEWindow
11、s示例如下:7. 重启所有的weblogic server。第二种:oracle自带Smart Update 这种安装方式,适用于可以连接oracle服务器的自动检测安装。因为weblogic一般安装在生产环境,并且外网检测速度较慢,不推荐使用。 使用方法如下:cdMW_HOME/utils/bsu directory.Java jar patch-client.jar 需要GUI模式,出现如下界面,起初会连接oracle服务器,并显示你已下载的补丁和安装的补丁。智能卸载、安装即可。第三种:jar包加载安装 这种安装方式,适用于fixbug oracle出具的CR开头的补丁。因为此方法在weblogic8、9版本比较实用,故对于bug补丁的安装,建议采用此种方式。安装步骤,如下:1. 下载CR开头的bug补丁,解压出jar文件。2. 停掉所有weblogic server;在Weblogic10/common/bin/commEnv.sh脚本中,找到WEBLOGIC_CLASSPATH一行3. 在WEBLOGIC_CLASSPATH变量的中添加补丁jar包。WEBLOGIC_CLASSPATH=/路径/CR370915_1030GA.jar:$ 。4. 重启weblogic server
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1