Oracle12C-Patch for log4j vulnerability

Table of contents

1. View the device Opatch version

2. Install the repair patch for log4j on the official website

3. View Patch specific information and restart the service


1. View the device Opatch version

Precautions:

  • stop all services
  • Store Patch to the directory Oracle\Middleware\Oracle_home\Opatch
  • switch directory
  • Modify the environment variable to join the Oracle home directory
cd C:\Oracle\Middleware\Oracle_Home\OPatch	#切换路径
opatch version

Note: If the version is lower than 13.9.4.2.5, you need to upgrade Opatch first

Standard version upgrade method:

java -jar <PATCH_HOME>\6880880\opatch_generic.jar -silent oracle_home=<ORACLE_HOME_LOCATION>

2. Install the repair patch for log4j on the official website

  • 28663146: Fix createreportstoolsinstance not working after upgrading OPATCH to 13.9.4
  • 33412599: Patch version update
  • 33691226: Patch for log4j vulnerability

Note:

1. All services must be stopped when upgrading Patch;

2. The environment variable Path needs to be added to the Oracle home directory;

3. View Patch specific information and restart the service

  • View Patch Specific Information (opatch lsinventory)
PS C:\Oracle\Middleware\Oracle_Home\OPatch> opatch lsinventory
Oracle 临时补丁程序安装程序版本 13.9.4.2.5
版权所有 (c) 2021, Oracle Corporation。保留所有权利。


Oracle 主目录       :C:\Oracle\Middleware\Oracle_Home
主产品清单:C:\Program Files\Oracle\Inventory
   来自           :
OPatch 版本    :13.9.4.2.5
OUI 版本       :13.9.4.0.0
日志文件位置:C:\Oracle\Middleware\Oracle_Home\cfgtoollogs\opatch\opatchxxxxxxx.log


OPatch detects the Middleware Home as "C:\Oracle\Middleware\Oracle_Home"

Lsinventory Output file location : C:\Oracle\Middleware\Oracle_Home\cfgtoollogs\opatch\lsinv\lsinventory2021-12-27_15-23-41下午.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: WIN-JDUAU1AE5UU
ARU platform id: 233
ARU platform description:: Microsoft Windows Server 2003 (64-bit AMD)


临时补丁程序 (18) :

Patch  28663146     : applied on Mon Dec 27 14:28:39 CST 2021
Unique Patch ID:  22805612
Patch description:  "One-off"
   Created on 2 Apr 2019, 22:23:40 hrs PST8PDT
   Bugs fixed:
     28663146

Patch  33691226     : applied on Mon Dec 27 13:44:46 CST 2021
Unique Patch ID:  24559882
Patch description:  "One-off"
   Created on 21 Dec 2021, 18:44:54 hrs PST8PDT
   Bugs fixed:
     33691226, 33671996, 33660731
   This patch overlays patches:
     33412599
   This patch needs patches:
     33412599
   as prerequisites

Patch  33412599     : applied on Mon Dec 27 13:40:29 CST 2021
Unique Patch ID:  24442069
Patch description:  "WLS PATCH SET UPDATE 12.2.1.3.210929"
   Created on 30 Sep 2021, 12:48:35 hrs PST8PDT
  • Services.msc to open the service to start the service

Guess you like

Origin blog.csdn.net/weixin_43833430/article/details/122173349