WebLogic14.1.1.0.0之Patch 210930

本文介绍如何为WebLogic 14.1.1.0.0安装Patch210930,包括准备工作、升级OPatch、安装补丁及验证等步骤,并解决了OPatch版本过低的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、准备工作

1、停止所有WebLogic服务
2、OPatch版本在13.9.4.2.5或以上
3、创建ORACLE_HOME和CENTRAL INVENTORY的完整备份

二、升级opatch

1、检查opatch

[root@node2 OPatch]# ./opatch version
OPatch Version: 13.9.4.2.3

OPatch succeeded.
[root@node2 OPatch]#su - weblogic
[root@node2 home]$ tar -zxvf p33452377_141100_Generic.zip

解压后是WLS_SPB_14.1.1.0.211009,暂不理解为什么包号是211009。

检查weblogic环境,发现opatch版本较低

[root@node2 home]# chown -R weblogic:weblogic WLS_SPB_14.1.1.0.211009/
[weblogic@node2 home]$ cd /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/
[weblogic@node2 SPBAT]$ ./spbat.sh -phase precheck -oracle_home /home/weblogic/Oracle/Middleware/
SPBAT Release Version: 1.4.0
The current patching user weblogic matches with the product install user weblogic
-log_dir value is not set, defaulting it to /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs
SPBAT Phase - precheck is executing ...
The consolidated SPBAT execution logs have been written to: /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-31-33/orchestration/logs/spbat_2021-12-23_14-31-33.out 
Do not close this terminal as SPBAT precheck phase is currently executing...
[2021-12-23_14-31-39] Log file : /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-31-33/spbat-precheck-node2-2021-12-23_14-31-33.log
[2021-12-23_14-31-41] [SUCCESS] Oracle Home /home/weblogic/Oracle/Middleware is registered inside /home/weblogic/oraInventory/ContentsXML/inventory.xml 
[2021-12-23_14-31-41] [SUCCESS] /home/weblogic/Oracle/Middleware/ Middleware Home is present
[2021-12-23_14-31-41] [SUCCESS] The current jdk release 1.8.0 is a supported JDK release
[2021-12-23_14-31-41] Minimum OPatch version required : 13.9.4.2.5
[2021-12-23_14-31-41] Environment has OPatch version : 13.9.4.2.3
[2021-12-23_14-31-42] [FAILED] OPatch version check
Manual steps needed to be done before executing SPBAT apply: 
1) Shut down all WLS services running on : node2
2) Create a backup of ORACLE_HOME: /home/weblogic/Oracle/Middleware/ and the CENTRAL_INVENTORY: /home/weblogic/oraInventory
3) Run the following command to upgrade OPatch:
CMD : "/usr/local/jdk1.8.0_51/bin/java" -Djava.io.tmpdir=/home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-31-33/preCheck -jar /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-31-33/preCheck/opatch/generic/6880880/opatch_generic.jar -silent oracle_home=/home/weblogic/Oracle/Middleware/ -invPtrLoc /home/weblogic/Oracle/Middleware/oraInst.loc 
4) Restart the SPBAT Execution


Error:

 
SPBAT precheck phase has FAILED
Time Taken to run precheck phase:  00 hours 00 min 09 secs
The console output has been written to: /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-31-33/orchestration/logs/spbat_2021-12-23_14-31-33.out
[weblogic@node2 SPBAT]$ 

2、升级opatch

[weblogic@node2 SPBAT]$ cd /home/WLS_SPB_14.1.1.0.211009/tools/opatch/generic/
[weblogic@node2 generic]$ tar -zxvf p28186730_139427_Generic.zip
[weblogic@node2 generic]$ ls
6880880  p28186730_139427_Generic.zip
[weblogic@node2 generic]$ cd 6880880/
[weblogic@node2 6880880]$ java -jar opatch_generic.jar -silent oracle_home=/home/weblogic/Oracle/Middleware/
Launcher log file is /tmp/OraInstall2021-12-23_02-33-46PM/launcher2021-12-23_02-33-46PM.log.
Extracting the installer . . . . Done
Checking if CPU speed is above 300 MHz.   Actual 2394.455 MHz    Passed
Checking swap space: must be greater than 512 MB.   Actual 519 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 82634 MB    Passed
Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2021-12-23_02-33-46PM
Installation Summary


Disk Space : Required 41 MB, Available 82,589 MB
Feature Sets to Install:
	Next Generation Install Core 13.9.4.0.1
	OPatch 13.9.4.2.7
	OPatch Auto OPlan 13.9.4.2.7
Session log file is /tmp/OraInstall2021-12-23_02-33-46PM/install2021-12-23_02-33-46PM.log
······ #省略
Saving the inventory glcm_encryption_lib

 Component : oracle.glcm.opatch.common.api.classpath

Saving the inventory oracle.glcm.opatch.common.api.classpath

 Component : oracle.glcm.oplan.core.classpath

Saving the inventory oracle.glcm.oplan.core.classpath

The install operation completed successfully.

Logs successfully copied to /home/weblogic/oraInventory/logs.

重新检查,无错误(这个jdk原因可以忽略)

[weblogic@node2 6880880]$ cd /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/
[weblogic@node2 SPBAT]$ ./spbat.sh -phase precheck -oracle_home /home/weblogic/Oracle/Middleware/
SPBAT Release Version: 1.4.0
The current patching user weblogic matches with the product install user weblogic
-log_dir value is not set, defaulting it to /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs
SPBAT Phase - precheck is executing ...
The consolidated SPBAT execution logs have been written to: /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-34-33/orchestration/logs/spbat_2021-12-23_14-34-33.out 
Do not close this terminal as SPBAT precheck phase is currently executing...
[2021-12-23_14-34-38] Log file : /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-34-33/spbat-precheck-node2-2021-12-23_14-34-33.log
[2021-12-23_14-34-40] [SUCCESS] Oracle Home /home/weblogic/Oracle/Middleware is registered inside /home/weblogic/oraInventory/ContentsXML/inventory.xml 
[2021-12-23_14-34-40] [SUCCESS] /home/weblogic/Oracle/Middleware/ Middleware Home is present
[2021-12-23_14-34-40] [SUCCESS] The current jdk release 1.8.0 is a supported JDK release
[2021-12-23_14-34-40] Minimum OPatch version required : 13.9.4.2.5
[2021-12-23_14-34-40] Environment has OPatch version : 13.9.4.2.7
[2021-12-23_14-34-40] [SUCCESS] Minimum OPatch version check
[2021-12-23_14-34-45] [FAILED] The Installed JDK version 1.8.0_51 should be upgraded to the minimum JDK version 1.8.0_251
[2021-12-23_14-34-45] Refer to the SPB Readme for JDK installation and upgrade information
[2021-12-23_14-34-46] Middleware OPatch Version : 13.9.4.2.7
[2021-12-23_14-34-46] SPB OPatch version : 13.9.4.2.7
[2021-12-23_14-34-51] The environment already has the supported version of OPatch installed
[2021-12-23_14-34-55] List of patches present in the Oracle Home: /home/weblogic/Oracle/Middleware/

There are no Interim patches installed in this Oracle Home "/home/weblogic/Oracle/Middleware".

[2021-12-23_14-34-55] Patch compatibility check with the environment is in progress...
[2021-12-23_14-35-34] CheckForNoOpPatches has Completed on /home/weblogic/Oracle/Middleware/ Home
[2021-12-23_14-35-39] PATCH 32148641 APPLY WILL BE SKIPPED AS IT IS NOT APPLICABLE FOR THIS ENVIRONMENT
[2021-12-23_14-35-40] PATCH 33416881 IS #NOT APPLIED# IN THE ENVIRONMENT
[2021-12-23_14-35-40] PATCH 33286174 IS #NOT APPLIED# IN THE ENVIRONMENT
[2021-12-23_14-35-40] Patch conflict check is in progress ...
[2021-12-23_14-36-02] Patch conflict check has completed on /home/weblogic/Oracle/Middleware/ Home
[2021-12-23_14-36-02] Napply precheck report is in progress ...
[2021-12-23_14-36-23] SPBAT precheck phase has completed. Summary and log details as below:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
PRECHECK SUMMARY: 
No Of FAILURES: 1
No Of WARNINGS: 0
Log File: /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-34-33/spbat-precheck-node2-2021-12-23_14-34-33.log 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Error:

 
SPBAT precheck phase has FAILED
Time Taken to run precheck phase:  00 hours 01 min 51 secs
The console output has been written to: /home/WLS_SPB_14.1.1.0.211009/tools/spbat/generic/SPBAT/logs/node2_spb_precheck_2021-12-23_14-34-33/orchestration/logs/spbat_2021-12-23_14-34-33.out
[weblogic@node2 SPBAT]$ cd /home/weblogic/Oracle/Middleware/OPatch/
[weblogic@node2 OPatch]$ ./opatch lsinventory
Oracle Interim Patch Installer version 13.9.4.2.7
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/weblogic/Oracle/Middleware
Central Inventory : /home/weblogic/oraInventory
   from           : /home/weblogic/Oracle/Middleware/oraInst.loc
OPatch version    : 13.9.4.2.7
OUI version       : 13.9.4.0.0
Log file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-24-37PM_1.log


OPatch detects the Middleware Home as "/home/weblogic/Oracle/Middleware"

Lsinventory Output file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/lsinv/lsinventory2021-12-23_15-24-37PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: node2
ARU platform id: 226
ARU platform description:: Linux x86-64


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

可以看到OPatch version大于13.9.4.2.5了。

三、安装patch

[weblogic@node2 SPBAT]$ cd /home/WLS_SPB_14.1.1.0.211009/binary_patches/coherence/generic/
[weblogic@node2 generic]$ tar -zxvf p33286174_141100_Generic.zip
[weblogic@node2 33286174]$ export OPATCH_HOME=/home/weblogic/Oracle/Middleware/OPatch/
[weblogic@node2 33286174]$ export PATH=$PATH:$OPATCH_HOME
[weblogic@node2 33286174]$ opatch apply -silent
Oracle Interim Patch Installer version 13.9.4.2.7
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/weblogic/Oracle/Middleware
Central Inventory : /home/weblogic/oraInventory
   from           : /home/weblogic/Oracle/Middleware/oraInst.loc
OPatch version    : 13.9.4.2.7
OUI version       : 13.9.4.0.0
Log file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-31-17PM_1.log


OPatch detects the Middleware Home as "/home/weblogic/Oracle/Middleware"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   33286174  

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
Backing up files...
Applying interim patch '33286174' to OH '/home/weblogic/Oracle/Middleware'

Patching component oracle.coherence, 14.1.1.0.0...
Patch 33286174 successfully applied.
Log file location: /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-31-17PM_1.log

OPatch succeeded.

[weblogic@node2 33286174]$ cd /home/WLS_SPB_14.1.1.0.211009/binary_patches/wls/generic/
[weblogic@node2 generic]$ tar -zxvf p33416881_141100_Generic.zip
[weblogic@node2 generic]$ cd 33416881/
[weblogic@node2 33416881]$ opatch apply -silent
Oracle Interim Patch Installer version 13.9.4.2.7
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/weblogic/Oracle/Middleware
Central Inventory : /home/weblogic/oraInventory
   from           : /home/weblogic/Oracle/Middleware/oraInst.loc
OPatch version    : 13.9.4.2.7
OUI version       : 13.9.4.0.0
Log file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-34-33PM_1.log


OPatch detects the Middleware Home as "/home/weblogic/Oracle/Middleware"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   33416881  

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/weblogic/Oracle/Middleware')


Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '33416881' to OH '/home/weblogic/Oracle/Middleware'
ApplySession: Optional component(s) [ oracle.commons.collections.commons.collections, 3.2.2.0.0 ] , [ oracle.commons.collections.commons.collections, 3.2.2.0.0 ] , [ oracle.fmwconfig.common.wls.shared, 14.1.1.0.0 ] , [ oracle.webservices.wls.jaxrpc, 14.1.1.0.0 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.wls.security.core, 14.1.1.0.0...
······  #省略
Patching component oracle.wls.common.cam.wlst, 14.1.1.0.0...
Patch 33416881 successfully applied.
Log file location: /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-34-33PM_1.log

OPatch succeeded.

四、验证

[weblogic@node2 33416881]$ opatch lsinventory
Oracle Interim Patch Installer version 13.9.4.2.7
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /home/weblogic/Oracle/Middleware
Central Inventory : /home/weblogic/oraInventory
   from           : /home/weblogic/Oracle/Middleware/oraInst.loc
OPatch version    : 13.9.4.2.7
OUI version       : 13.9.4.0.0
Log file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/opatch2021-12-23_15-37-08PM_1.log


OPatch detects the Middleware Home as "/home/weblogic/Oracle/Middleware"

Lsinventory Output file location : /home/weblogic/Oracle/Middleware/cfgtoollogs/opatch/lsinv/lsinventory2021-12-23_15-37-08PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: node2
ARU platform id: 226
ARU platform description:: Linux x86-64


Interim patches (2) :

Patch  33416881     : applied on Thu Dec 23 15:35:29 CST 2021
Unique Patch ID:  24443925
Patch description:  "WLS PATCH SET UPDATE 14.1.1.0.210930"
   Created on 30 Sep 2021, 15:53:34 hrs PST8PDT
   Bugs fixed:
     30965440, 31564423, 32235275, 32528774, 31765550, 31742292, 32371861
     30912052, 31353368, 31950565, 31525147, 32868847, 25900775, 31770512
     31401659, 32544020, 31975788, 31510290, 32651810, 31918617, 32647611
     32054481, 33034990, 32373306, 32503912, 30285053, 31287540, 31671559
     32847474, 31332368, 31199699, 32408938, 32312961, 30284059, 32789767
     31316252, 31567049, 32068710, 31232471, 31475287, 31922313, 32248716
     33166329, 32875528, 32097062, 31816475, 32235872, 31247235, 33207639
     33152312, 33114718, 32883876, 31913015, 31995447, 32953480, 31047981
     32244262, 31943068, 30885114, 33245345, 31332264, 32077936, 32959192
     31583896, 31088577, 31498405, 32301793, 30838007, 31483821, 33063225
     33141458, 33171421, 30885128, 32214441, 29449188, 32976692, 31157988
     32519960, 31765567, 31142740, 30964331, 32226530, 31539237, 31492196
     30245934, 32832099, 32472196, 32228228, 32069620, 32697451, 32520971
     31011293, 31526201, 32064362, 32133880, 31441174, 30652362, 32950042
     32307656, 32639821, 32415913, 32893667, 31234573, 32108759, 33164116
     31113242, 31234666, 32593893, 31657139, 32920991, 32099344, 31160218
     30927469, 32497814, 30961904, 32962304, 31184158, 33170754, 32425607
     31380363

Patch  33286174     : applied on Thu Dec 23 15:31:27 CST 2021
Unique Patch ID:  24406033
Patch description:  "Bundle patch for Oracle Coherence Version 14.1.1.0.7"
   Created on 21 Sep 2021, 12:11:28 hrs PST8PDT
   Bugs fixed:
     31201347, 31214284, 31806281, 31944953, 32124447, 32341371, 32581868
     32816973, 32822629, 32503887, 32421840, 32973306, 33286174



--------------------------------------------------------------------------------

OPatch succeeded.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值