【WebLogic】10.3.6.0.0补丁升级p29204678_1036_Generic.zip

升级方式:

  1. 选择合适版本的补丁,并按数字从小到大依次升级
  2. 解压补丁到目录/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir,此目录为临时文件夹,可能需要手工建立
  3. 修改/home/weblogic/Oracle/Middleware/utils/bsu/bsu.sh内存大小
    此处调为4096,根据主机情况调整,大的话尽量调大,这样省时省力
#!/bin/sh
JAVA_HOME="/usr/java/jdk1.6.0_45"
MEM_ARGS="-Xms2048m -Xmx4096m"
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
  1. 升级脚本路径在/home/weblogic/Oracle/Middleware/utils/bsu/,使用命令
./bsu.sh -install -patch_download_dir=/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir -patchlist=U5I2  -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3

参数中patchlist为补丁包内readme.txt里面的补丁名称,四个大写字母

Patch ID - U5I2

查看已安装的补丁

./bsu.sh -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3 -status=applied -verbose -view 

补丁冲突卸载补丁

./bsu.sh -remove -patchlist=RPQH -prod_dir=/opt/bea/weblogic10/wlserver_10.3  

2020年6月17日补充卸载日志(这个过程耗时比较长):

[yyq@host-10 bsu]$ ./bsu.sh -remove -patchlist=3L3H -prod_dir=/u01/apps/weblogic/wlserver_10.3 
Jun 17, 2020 5:25:10 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
Checking for conflicts...........
No conflict(s) detected

Removing Patch ID: 3L3H..
Result: Success

安装过程可能会碰到的问题:
1.内存不足错误,修改bsu.sh内的内存配置
2.补丁冲突,按照提示的补丁号卸载旧补丁后重新安装

参考链接:WebLogic服务器打补丁(11g/12c)

安装日志

-bash-4.1$ cd /home/weblogic/Oracle/Middleware/utils/bsu/
-bash-4.1$ mkdir cache_dir
-bash-4.1$ cd cache_dir/
-bash-4.1$ pwd
/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir
-bash-4.1$ cd ../../..
-bash-4.1$ ll
总用量 176
drwxr-xr-x. 6 metar RES   4096 5月  15 13:20 coherence_3.7
-rw-rw----. 1 metar RES    133 5月  15 13:20 domain-registry.xml
drwxr-xr-x. 2 metar RES   4096 5月  15 13:20 logs
drwxr-xr-x. 7 metar RES  36864 5月  15 13:20 modules
-rw-r--r--. 1 metar RES    851 5月  15 13:20 ocm.rsp
-rw-r--r--. 1 metar RES 108873 5月  15 13:20 registry.dat
-rw-r--r--. 1 metar RES   1923 5月  15 13:20 registry.xml
drwxr-xr-x. 8 metar RES   4096 5月  15 13:20 utils
drwxr-xr-x. 8 metar RES   4096 5月  15 13:20 wlserver_10.3
-bash-4.1$ cd ..
-bash-4.1$ pwd
/usr/RES/nxres
-bash-4.1$ unzip p29204678_1036_Generic.zip  -d /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir/
Archive:  p29204678_1036_Generic.zip
  inflating: /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir/README.txt  
  inflating: /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir/patch-catalog_26516.xml  
  inflating: /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir/U5I2.jar  
-bash-4.1$ cd /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir
-bash-4.1$ ll
总用量 224212
-rw-r--r--. 1 metar RES 136403408 2月   4 04:30 patch-catalog_26516.xml
-rw-rw-r--. 1 metar RES     61226 4月  25 14:23 README.txt
-rw-r--r--. 1 metar RES  93124490 2月   4 04:30 U5I2.jar
-bash-4.1$ cd ..
-bash-4.1$ ll
总用量 44
-rw-r--r--. 1 metar RES   520 5月  15 13:20 bsu.jar
-rwxr-x---. 1 metar RES   135 5月  15 13:20 bsu.sh
drwxr-xr-x. 2 metar RES  4096 5月  15 13:34 cache_dir
-rw-r--r--. 1 metar RES   516 5月  15 13:20 patch-client.jar
-rw-r--r--. 1 metar RES 25214 5月  15 13:20 smartupdate.ico

#####以下提示内存不足,扩内存
-bash-4.1$ ./bsu.sh -install -patch_download_dir=/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir -patchlist=U5I2  -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3
Exception in thread "Timer-0" Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.HashMap.newValueIterator(HashMap.java:971)
        at java.util.HashMap$Values.iterator(HashMap.java:1038)
        at java.util.AbstractCollection.toArray(AbstractCollection.java:179)
        at java.util.prefs.AbstractPreferences.cachedChildren(AbstractPreferences.java:730)
        at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1333)
        at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1337)
        at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1337)
        at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1337)
        at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1337)
        at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1323)
        at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:747)
        at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:824)
        at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:464)
        at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:50)
        at java.util.prefs.FileSystemPreferences$3.run(FileSystemPreferences.java:432)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.HashMap.createEntry(HashMap.java:897)
        at java.util.HashMap.addEntry(HashMap.java:884)
        at java.util.HashMap.put(HashMap.java:505)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.loadPropertyMap(XBeanDataHandler.java:778)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.<init>(XBeanDataHandler.java:99)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.createDataHandler(XBeanDataHandler.java:559)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.getComplexValue(XBeanDataHandler.java:455)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDetails(PatchCatalogHelper.java:695)
        at com.bea.plateng.patch.dao.cat.Version.getPatchDetails(Version.java:41)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getFilteredPatchDetailMap(PatchCatalogHelper.java:1202)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDetails(PatchCatalogHelper.java:1398)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getEveryPatchDetail(PatchCatalogHelper.java:767)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getInvalidatedPatchMap(PatchCatalogHelper.java:1622)
        at com.bea.plateng.patch.PatchSystem.updatePatchCatalog(PatchSystem.java:436)
        at com.bea.plateng.patch.PatchSystem.refresh(PatchSystem.java:130)
        at com.bea.plateng.patch.PatchSystem.setCacheDir(PatchSystem.java:201)
        at com.bea.plateng.patch.Patch.main(Patch.java:281)
-bash-4.1$ ll
总用量 44
-rw-r--r--. 1 metar RES   520 5月  15 13:20 bsu.jar
-rwxr-x---. 1 metar RES   137 5月  15 13:37 bsu.sh
drwxr-xr-x. 2 metar RES  4096 5月  15 13:51 cache_dir
-rw-r--r--. 1 metar RES   516 5月  15 13:20 patch-client.jar
-rw-r--r--. 1 metar RES 25214 5月  15 13:20 smartupdate.ico
-bash-4.1$ vi bsu.sh 
#!/bin/sh

JAVA_HOME="/usr/java/jdk1.7.0_79"

MEM_ARGS="-Xms1024m -Xmx2048m"

"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
~
"bsu.sh" 7L, 137C 已写入                                                                                          
-bash-4.1$ ./bsu.sh -install -patch_download_dir=/home/weblogic/Oracle/Middleware/utils/bsu/cache_dir -patchlist=U5I2  -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3
检查冲突......
未检测到冲突

正在安装补丁程序 ID: U5I2..
结果: 成功
-bash-4.1$ 

安装后可以执行

./bsu.sh -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3 -status=applied -verbose -view

测试安装结果

-bash-4.1$  ./bsu.sh -prod_dir=/home/weblogic/Oracle/Middleware/wlserver_10.3 -status=applied -verbose -view
ProductName:       WebLogic Server
ProductVersion:    10.3 MP6
Components:        WebLogic Server/Core Application Server,WebLogic Server/Admi
                   nistration Console,WebLogic Server/Configuration Wizard and 
                   Upgrade Framework,WebLogic Server/Web 2.0 HTTP Pub-Sub Serve
                   r,WebLogic Server/WebLogic SCA,WebLogic Server/WebLogic JDBC
                    Drivers,WebLogic Server/Third Party JDBC Drivers,WebLogic S
                   erver/WebLogic Server Clients,WebLogic Server/WebLogic Web S
                   erver Plugins,WebLogic Server/UDDI and Xquery Support,WebLog
                   ic Server/Evaluation Database,WebLogic Server/Workshop Code 
                   Completion Support
BEAHome:           /home/weblogic/Oracle/Middleware
ProductHome:       /home/weblogic/Oracle/Middleware/wlserver_10.3
PatchSystemDir:    /home/weblogic/Oracle/Middleware/utils/bsu
PatchDir:          /home/weblogic/Oracle/Middleware/patch_wls1036
Profile:           Default
DownloadDir:       /home/weblogic/Oracle/Middleware/utils/bsu/cache_dir
JavaVersion:       1.6.0_29
JavaVendor:        Sun


Patch ID:          U5I2
PatchContainer:    U5I2.jar
Checksum:          1091735558
Severity:          optional
Category:          General
CR/BUG:            29204678
Restart:           true
Description:       WLS PATCH SET UPDATE 10.3.6.0.190416
WLS PATCH SET UPDATE 10
                   .3.6.0.190416

-bash-4.1$ 

README.txt里带的原版说明:

Installing Oracle WebLogic Server Patch Set Update 10.3.6.0.191015
-------------------------------------------------------------

 - unzip p30109677_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.
 
 - Configuring Memory options
 
   For Microsoft Windows systems
   Edit the bsu.cmd script and change memory options as follows:
   set MEM_ARGS=-Xms1024m -Xmx3072m
 
   For UNIX Systems
   Edit the bsu.sh script and change memory options as follows:
   MEM_ARGS="-Xms1024m -Xmx3072m"

 - Execute bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}

   Where, WL_HOME is the path of the WebLogic home

   Reference: BSU Command line interface
              http://docs.oracle.com/cd/E14759_01/doc.32/e14143/commands.htm


Post-Installation Instructions
------------------------------

a) Restart all WebLogic servers.

b) The following command is a simple way to determine the application of WebLogic Server PSU.

  $ . $WL_HOME/server/bin/setWLSEnv.sh 
  $ java weblogic.version

In the following example output, 10.3.6.0.191015 is the installed WebLogic Server PSU.

      WebLogic Server 10.3.6.0.191015 PSU Patch for BUG30109677

2019年5月29日补:
近期在另外两台机子升级后,提示成功,但出了个java报错
具体报错信息没截,报错关键词,GC overhead limit exceeded
给扩了下,但没后续测试情况,不知怎么测,记录下
set JAVA_OPTS=-server -Xms52048m -Xmx4096m -XX:MaxNewSize=4096m -XX:MaxPermSize=4096m

参考:https://blog.csdn.net/qq_40162735/article/details/81775828

U5I2.jar下载链接:https://download.csdn.net/download/yyqjjw/11234543
patch-catalog.xml文件和readme.txt:https://download.csdn.net/download/yyqjjw/11237185

你可能感兴趣的:(WebLogic)