补丁更新方法:
- unzip p26519424_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.
- Navigate to the {MW_HOME}/utils/bsu directory.
- Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
- Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
补丁卸载方法:
- Stop all WebLogic Servers
- Navigate to the {MW_HOME}/utils/bsu directory.
- Execute bsu.sh -remove -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
检查补丁是否更新:
补丁更新前:
WebLogic 版本: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
补丁更新后:
WebLogic Server 10.3.6.0.171017 PSU Patch for BUG26519424 TUE SEP 12 18:34:42 IST 2017
WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050
weblogic10.3.6.0版本未打任何补丁的更新方式:
示例:
[root@sbkytj bsu]# cd /usr/bea/utils/bsu
[root@sbkytj bsu]# mkdir cache_dir
[root@sbkytj bsu]# cd cache_dir/
[root@sbkytj cache_dir]# unzip p26519424_1036_Generic.zip
Archive: p26519424_1036_Generic.zip
extracting: FMJJ.jar
inflating: patch-catalog_25504.xml
inflating: README.txt
[root@sbkytj bsu]# vi bsu.sh
#!/bin/sh
JAVA_HOME="/usr/bea/jdk1.6.0_20"
MEM_ARGS="-Xms4096m -Xmx4096m" ====此处修改jvm内存大小从256,512改为4096
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
此处JVM内存建议配置到4096,太小则会出现下面的错误导致无法更新。
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
[root@sbkytj bsu]# ./bsu.sh -install -patch_download_dir=/usr/bea/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=/usr/bea/wlserver_10.3
此过程需要十余分钟。
weblogic10.3.6.0版本打了更新方式:
同样需要修改bsu.sh的jvm内存
卸载补丁有顺序规则,需要先卸载ZLNA再卸载EJUW补丁,否则将提示出现下面错误导致无法卸载
The selected patch cannot be removed until the following patch(es) are removed first: ZLNA
开始卸载之前的补丁:
[root@czldwz bsu]# ./bsu.sh -remove -patchlist=ZLNA -prod_dir=/wls11g/wlserver_10.3
Checking for conflicts.......
No conflict(s) detected
Removing Patch ID: ZLNA..
Result: Success
[root@czldwz bsu]# ./bsu.sh -remove -patchlist=EJUW -prod_dir=/wls11g/wlserver_10.3
Checking for conflicts.......
No conflict(s) detected
Removing Patch ID: EJUW..
Result: Success
然后本次补丁
[root@czldwz bsu]# ./bsu.sh -install -patch_download_dir=/wls11g/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=/wls11g/wlserver_10.3
Checking for conflicts......
No conflict(s) detected
Installing Patch ID: FMJJ..
Result: Success

该篇博客详细介绍了如何为WebLogic Server 10.3.6版本安装和卸载补丁p26519424_1036_Generic,包括解压文件、执行bsu.sh脚本以及检查补丁更新状态的方法。同时强调了调整bsu.sh中JVM内存设置的重要性,以及补丁卸载的顺序规则。
7128

被折叠的 条评论
为什么被折叠?



