1,由oracle官方发布的漏洞公告,对weblogic进行补丁升级。
weblogic12.1.3,其他版本的请根据实际版本来选择下载,需要使用Generic通用包安装的weblogic才能进行补丁升级(补丁包下载需要拥有weblogic购买授权才有权限下载)。
2,将补丁上传到服务器/home/weblogic/Oracle/Middleware/Oracle_Home/OPatch目录下并解压
cd /home/weblogic/Oracle/Middleware/Oracle_Home/OPatch
unzip p30857795_121300_Generic.zip
3,查看OPatch的版本
[oracle@weblogic ~]$ cd /home/oracle/Middleware/OPatch
[oracle@weblogic OPatch]$ ./opatch version
OPatch Version: 13.2.0.0.0
OPatch succeeded.
4,进入目录后进行补丁更新(中间输入y)
[weblogic@localhost OPatch]$ cd 30857795
[weblogic@localhost 30857795]$ /home/weblogic/Oracle/Middleware/Oracle_Home/OPatch/opatch apply -jdk $JAVA_HOME
Oracle Interim Patch Installer version 13.2.0.0.0
Copyright (c) 2014, Oracle Corporation. All rights reserved.
Oracle Home : /home/weblogic/Oracle/Middleware/Oracle_Home
Central Inventory : /home/weblogic/oraInventory
from : /home/weblogic/Oracle/Middleware/Oracle_Home/oraInst.loc
OPatch version : 13.2.0.0.0
OUI version : 13.2.0.0.0
Log file location : /home/weblogic/Oracle/Middleware/Oracle_Home/cfgtoollogs/opatch/30857795_Mar_12_2024_15_44_29/apply2024-03-12_15-44-25PM_1.log
OPatch detects the Middleware Home as "/home/weblogic/Oracle/Middleware/Oracle_Home"
Mar 12, 2024 3:44:31 PM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
INFO: Install area Control created with access level 0
Applying interim patch '30857795' to OH '/home/weblogic/Oracle/Middleware/Oracle_Home'
Verifying environment and performing prerequisite checks...
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/home/weblogic/Oracle/Middleware/Oracle_Home')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Patching component oracle.wls.workshop.code.completion.support, 12.1.3.0.0...
Patching component oracle.wls.workshop.code.completion.support, 12.1.3.0.0...
Patching component oracle.css.mod, 12.1.3.0.0...
Patching component oracle.css.mod, 12.1.3.0.0...
Patching component oracle.fmwconfig.common.shared, 12.1.3.0.0...
Patching component oracle.fmwconfig.common.shared, 12.1.3.0.0...
Patching component oracle.wls.common.nodemanager, 12.1.3.0.0...
Patching component oracle.wls.common.nodemanager, 12.1.3.0.0...
Patching component oracle.wls.server.shared.with.core.engine, 12.1.3.0.0...
Patching component oracle.wls.server.shared.with.core.engine, 12.1.3.0.0...
Patching component oracle.webservices.base, 12.1.3.0.0...
Patching component oracle.webservices.base, 12.1.3.0.0...
Patching component oracle.webservices.orawsdl, 12.1.3.0.0...
Patching component oracle.webservices.orawsdl, 12.1.3.0.0...
Patching component oracle.wls.shared.with.cam, 12.1.3.0.0...
Patching component oracle.wls.shared.with.cam, 12.1.3.0.0...
Patching component oracle.wls.libraries.mod, 12.1.3.0.0...
Patching component oracle.wls.libraries.mod, 12.1.3.0.0...
Patching component oracle.wls.admin.console.en, 12.1.3.0.0...
Patching component oracle.wls.admin.console.en, 12.1.3.0.0...
Patching component oracle.wls.core.app.server, 12.1.3.0.0...
Patching component oracle.wls.core.app.server, 12.1.3.0.0...
Patching component oracle.webservices.wls, 12.1.3.0.0...
Patching component oracle.webservices.wls, 12.1.3.0.0...
Patching component oracle.wls.clients, 12.1.3.0.0...
Patching component oracle.wls.clients, 12.1.3.0.0...
Patching component oracle.wls.wlsportable.mod, 12.1.3.0.0...
Patching component oracle.wls.wlsportable.mod, 12.1.3.0.0...
Patching component oracle.fmwconfig.common.wls.shared, 12.1.3.0.0...
Patching component oracle.fmwconfig.common.wls.shared, 12.1.3.0.0...
Patching component oracle.wls.libraries, 12.1.3.0.0...
Patching component oracle.wls.libraries, 12.1.3.0.0...
Verifying the update...
Patch 30857795 successfully applied
Log file location: /home/weblogic/Oracle/Middleware/Oracle_Home/cfgtoollogs/opatch/30857795_Mar_12_2024_15_44_29/apply2024-03-12_15-44-25PM_1.log
OPatch succeeded.
5,查看已安装的补丁
[weblogic@localhost OPatch]$ ./opatch lspatches
Mar 12, 2024 3:48:49 PM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
INFO: Install area Control created with access level 0
30857795;WLS PATCH SET UPDATE 12.1.3.0.200414
OPatch succeeded.
6,补丁回滚
[weblogic@localhost OPatch]$ pwd
/home/weblogic/Oracle/Middleware/Oracle_Home/OPatch
[weblogic@localhost OPatch]$ /home/weblogic/Oracle/Middleware/Oracle_Home/OPatch nrollback -id 30857795
7,验证补丁是否应用到Oracle Home
验证什么补丁已经应用到Oracle Home,或了解Oracle Home附加的信息,使用opatch lsinventory命令。
/home/weblogic/Oracle/Middleware/Oracle_Home/OPatch/opatch lsinventory -jdk $JAVA_HOME
8,重启weblogic
版权归原作者 莫非非墨 所有, 如有侵权,请联系我们删除。