weblogic 12.1.3.0 安装 CVE-2018-2893 补丁

weblogic 12.1.3.0 安装 CVE-2018-2893 补丁

补丁下载地址,下载补丁需要oacle账号,需要SI
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
根据对应的补丁编号找到要下载的补丁
在这里插入图片描述
②找到weblogic对应版本点击Fusion Middleware
在这里插入图片描述
跳转的页面菜单选择Oracle Fusion Middleware
在这里插入图片描述
再选择Oracle WebLogic Server
在这里插入图片描述
找到weblogic对应版本点击Patch 26519417,或者直接在页面上搜索 CVE-2018-2893 ,找到对应版本
在这里插入图片描述
跳转的页面中点击选择下载
在这里插入图片描述
弹出的窗口上点击下载p27919943_121300_Generic.zip

将下载的p26519417_121300_Generic.zip补丁包上传到Linux服务器上,最好上传到weblogic安装目录
我是放在 /weblogic/p27919943_121300_Generic.zip

安装补丁,需要有 /tmp/ 目录的权限,在root账号写给/tmp/授权
我这是直接给了个777的权限

chmod -R 777 /tmp/

切换到weblogic用户,解压文件

su - weblogic
cd /weblogic
unzip -d PATCH_TOP p27919943_121300_Generic.zip

进去补丁解压后的目录

cd PATCH_TOP/27919943

补丁安装,opatch 这个是weblogic安装自动安装的一个补丁安装工具,在weblogic安装的时候选择生产环境就会安装这个文件

/weblogic/Oracle/Middleware/Oracle_Home/OPatch/opatch apply
Oracle Interim Patch Installer version 13.2.0.0.0
Copyright (c) 2014, Oracle Corporation.  All rights reserved.


Oracle Home       : /usr/local/products/weblogic12c
Central Inventory : /usr/local/products/oraInventory
   from           : /usr/local/products/weblogic12c/oraInst.loc
OPatch version    : 13.2.0.0.0
OUI version       : 13.2.0.0.0
Log file location : /usr/local/products/weblogic12c/cfgtoollogs/opatch/26519417_Jan_09_2018_23_53_57/apply2018-01-09_23-53-44PM_1.log


OPatch detects the Middleware Home as "/usr/local/products/weblogic12c"

Jan 09, 2018 11:54:04 PM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl
INFO: Install area Control created with access level  0
Applying interim patch '26519417' to OH '/usr/local/products/weblogic12c'
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 = '/usr/local/products/weblogic12c')


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.webservices.base, 12.1.3.0.0...

Patching component oracle.webservices.base, 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.wls.shared.with.cam, 12.1.3.0.0...

Patching component oracle.wls.shared.with.cam, 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.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.webservices.wls, 12.1.3.0.0...

Patching component oracle.webservices.wls, 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.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 26519417 successfully applied
Log file location: /usr/local/products/weblogic12c/cfgtoollogs/opatch/26519417_Jan_09_2018_23_53_57/apply2018-01-09_23-53-44PM_1.log

OPatch succeeded.

补丁安装成功

查看已安装补丁

/weblogic/Oracle/Middleware/Oracle_Home/OPatch/opatch lspatches

异常解决,出现以下异常

List of Homes on this system:
[Feb 21, 2020 11:24:51 AM]   [ Error during Oracle Home discovery phase ] Detail:                              OUI-67064:OPatchSession cannot load inventory for the given Oracle Home /weblogic/Oracle/Middleware/Oracle_Home. Possible causes are:
                                No read or write permission to ORACLE_HOME/.patch_storage
                                Central Inventory is locked by another OUI instance
                                No read permission to Central Inventory
                                The lock file exists in ORACLE_HOME/.patch_storage
                                The Oracle Home does not exist in Central Inventory

解决办法
进入weblogic安装目录

cd /weblogic

找到 oraInventory 这个文件,如果没有手动创建

mkdir oraInventory
cd oraInventory
mkdir ContentsXML
cd ContentsXML/

手工创建 inventory.xml 文件

<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2014, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>13.2.0.0.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OracleHome" LOC="/weblogic/Oracle/Middleware/Oracle_Home" TYPE="O" IDX="1"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

OracleHome 这个值修改成weblogic安装目录,保存后,在回到前面去安装补丁

问题解决

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值