Weblogic12.1.3.0 patch installation (Introduction to win server and linux installation steps)

Article directory
1 download the patch according to the vulnerability report released by oracle
2. Upload and decompress the patch package to Linux Server
3. Upload and decompress the patch package to Windows Server
4 about ipatch
5 differences between Linux and Windows installation patches
6 Linux Installation patch
6.1 Linux single patch installation
6.2 view installed patches
6.3 multiple patches installation
6.4 single patch rollback
6.5 rollback of multiple patches
6.6 verify whether the patch is applied to Oracle Home
7 restart weblogic application service
8 Windows installation patch

Article body
An official vulnerability announcement issued by oracle updates weblogic.
This article introduces that the version of weblogic installation is 12.1.3. If you are using other versions, please choose to download them according to the actual version. You need to use the weblogic installed by Generic general package to upgrade the patch (you need to have the purchase authorization of weblogic to download the patch).

1. Download the patch according to the vulnerability report released by oracle

① Open link address: https://www.oracle.com/security-alerts/#CriticalPatchUpdates
Download the patch here I take the patch package in January 2020 as an example, and click [Critical Patch Update - January 2020]

② Find the corresponding version of weblogic and click Fusion Middleware
Press Ctrl+F to search [oracle weblogic server, versions], and click [Fusion Middleware]

It will automatically jump to the account login interface to log in to Oracle

③ Jump to the page menu, click [3.3 Oracle Fusion Middleware]

④ Then select [Section 3.3.50 "Oracle WebLogic Server"]

⑤ Find WebLogic Server 12.1.3.0 home and click WLS PATCH SET UPDATE 12.1.3.0.191015 [Patch 30463093]

⑥ Select download from the jump page


⑦ In the pop-up window, click to download [p30463093 ABCD generic. Zip]

2. Upload and decompress the patch to Linux Server

Upload the downloaded p30463093 ABCD generic.zip patch package to the OPatch path on the Linux server using weblogic installation users such as oracle, such as / home/oracle/Middleware/OPatch

Extract the patch to the current directory
[oracle@weblogic ~]$ cd /home/oracle/Middleware/OPatch
[oracle@weblogic OPatch]$ unzip p30463093_121300_Generic.zip

3. Upload and decompress the patch to Windows Server

Upload the downloaded p30463093 ABCD generic.zip patch package to the OPatch path on the Windows server, such as D:\weblogic\middleware\OPatch \, and unzip it

4. About ipatch

OPatch is a java based program that can run on all supported operating systems and requires the installation of Oracle universal installer (OUI). It is used to apply patches to Oracle Software.
It should be noted that OUI and OPatch are not installed separately. OUI and OPatch will be installed when installing Oracle products. If they are not found in the installed Oracle products, the Oracle products may be installed in the way of development package, that is, the products installed are not used in the production environment.

See OPatch Help
[oracle@weblogic OPatch]$ /home/oracle/Middleware/OPatch/opatch -help
Oracle Intermediate patch installer version 13.2.0.0.0
//Copyright (c) 2014, Oracle Corporation. All rights reserved.

 Usage: opatch [ -help ] [ -report ] [ command ]

            command := apply
               checkapplicable
               compare
                       lsinventory
                       lspatches
                       napply
                       nrollback
                       rollback
                       query
                       version 
                       prereq
                       util

 <global_arguments> := -help       Displays the help message for the command.
                       -report     Print the actions without executing.

 example:
   'opatch -help'
   'opatch apply -help'
   'opatch checkapplicable -help'
   'opatch compare -help'
   'opatch lsinventory -help'
   'opatch lspatches -help'
   'opatch napply -help'
   'opatch nrollback -help'
   'opatch rollback -help'
   'opatch prereq -help'
   'opatch util -help'

OPatch succeeded.
See OPatch Version
[oracle@weblogic ~]$ cd /home/oracle/Middleware/OPatch
[oracle@weblogic OPatch]$ ./opatch version
OPatch Version: 13.2.0.0.0

OPatch succeeded.

5. Differences between Linux and Windows installation patches

The difference between installing patches in these two kinds of servers is that when installing on linux, you don't need to shut down the java process running on the server, but when installing on Windows, you need to shut down, otherwise the installation will report an error.

6. Linux Installation patch

6.1 single patch installation

(Note: during the installation, there will be a prompt. You need to enter y on the keyboard to continue the installation.)
[oracle@weblogic OPatch]$ cd 30463093/
[oracle@weblogic 30463093]$ /home/oracle/Middleware/OPatch/opatch apply -jdk $JAVA_HOME
 Oracle intermediate patch installer version 13.2.0.0.0
 Copyright (c) 2014, Oracle Corporation. All rights reserved.

Oracle Home       : /home/oracle/Middleware
Central Inventory : /home/oracle/oraInventory1
   from           : /home/oracle/Middleware/oraInst.loc
OPatch version    : 13.2.0.0.0
OUI version       : 13.2.0.0.0
 Log file location / home / Oracle / Middleware / cfgtoollogs / ipatch / 30463093 ﹐ Mar ﹐ 04 ﹐ 2020 ﹐ 16 ﹐ 34 ﹐ 45 / apply2020-03-04 ﹐ 16-34-40 PM ﹐ 1.log

OPatch detects the Middleware Home as "/home/oracle/Middleware"

March 4, 2020 4:34:47 PM oracle.sysman.oii.oiii.oiiinstallareacontrol initareacontrol
 Information: install area control created with access level 0
Applying interim patch '30463093' to OH '/home/oracle/Middleware'
Verifying environment and performing prerequisite checks...
Interim patch 30463093 is a superset of the patch(es) [  29633448 ] in the Oracle Home
 OPatch will roll back the patch subset and apply the specified patch.
All checks passed.

Please shut down the Oracle instance running outside of this Oracle home on the local system.
(Oracle home directory = '/ home/oracle/Middleware')

Is the local system ready for patching
y
User Responded with: Y
Backing up files...
Rolling back interim patch '29633448' from OH '/home/oracle/Middleware'

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.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
 RollbackSession remove intermediate patch '29633448' from product list

OPatch returns to the application for patch '30463093' after automatic fallback.

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.admin.console.nonen, 12.1.3.0.0

Patching component oracle.wls.admin.console.nonen, 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.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 30463093 successfully applied
 Log file location: /home/oracle/Middleware/cfgtoollogs/opatch/30463093 Mar 04 2020 16 34 45/apply2020-03-04 16-34-40 1.log in the afternoon

OPatch succeeded.

6.2 check the installed patches

The operation instructions are as follows:
[oracle@weblogic 30463093]$ ./opatch lspatches
[oracle@weblogic OPatch]$ ./opatch lspatches
//March 4, 2020 6:05:10 PM oracle.sysman.oii.oiii.oiiinstallareacontrol initareacontrol
//Information: install area control created with access level 0
30463093;WLS PATCH SET UPDATE 12.1.3.0.191015

OPatch succeeded.

6.3 multiple patches installation

Example:/home/oracle/Middleware/OPatch/There are two patches in the directory
[oracle@weblogic OPatch]$ pwd 
/home/oracle/Middleware/OPatch/
[oracle@weblogic OPatch]$ ll
29633448/
28298916/
[oracle@weblogic OPatch]$ /home/oracle/Middleware/OPatch/opatch napply -id 29633448, 28298916

6.4 single patch rollback

The operation instructions are as follows:
[oracle@weblogic OPatch]$ pwd 
/home/oracle/Middleware/OPatch/
[oracle@weblogic OPatch]$ /home/oracle/Middleware/OPatch/opatch nrollback -id 29633448

6.5 rollback of multiple patches

The operation instructions are as follows:
[oracle@weblogic OPatch]$ pwd
/home/oracle/Middleware/OPatch/
[oracle@weblogic OPatch]$ /home/oracle/Middleware/OPatch/opatch nrollback -id 29633448, 28298916

6.6. Verify whether the patch is applied to Oracle Home

To verify what patches have been applied to an Oracle home, or to find out additional information about the Oracle home, use the opatch lsinventory command.
Verify which patches have been applied to Oracle Home, or learn additional information about Oracle Home. Use the ipatch lsinventory command.

[oracle@weblogic OPatch]$ /home/oracle/Middleware/OPatch/opatch lsinventory  -jdk $JAVA_HOME

Oracle Intermediate patch installer version 13.2.0.0.0
//Copyright (c) 2014, Oracle Corporation. All rights reserved.

Oracle Home       : /home/oracle/Middleware
Central Inventory : /home/oracle/oraInventory1
   from           : /home/oracle/Middleware/oraInst.loc
OPatch version    : 13.2.0.0.0
OUI version       : 13.2.0.0.0
Log file location : /home/oracle/Middleware/cfgtoollogs/opatch/opatch2020-03-04_16-39-03 Afternoon_1.log

OPatch detects the Middleware Home as "/home/oracle/Middleware"

//March 4, 2020 4:39:08 PM oracle.sysman.oii.oiii.oiiinstallareacontrol initareacontrol
//Information: install area control created with access level 0
Lsinventory Output file location : /home/oracle/Middleware/cfgtoollogs/opatch/lsinv/lsinventory2020-03-04_16-39-03 Afternoon.txt

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

//Intermediate patch (1):

Patch  30463093     : applied on Wed Mar 04 16:38:16 CST 2020
Unique Patch ID:  23094631
Patch description:  "WLS PATCH SET UPDATE 12.1.3.0.191015"
   Created on 3 Oct 2019, 14:45:59 hrs PST8PDT
   Bugs fixed:
     24482639, 27829330, 29585355, 27228370, 29750025, 29752735, 25832897
     29671344, 28973782, 29957539, 29158881, 18516704, 20446229, 28166339
     24931180, 29921455, 24468857, 29356775, 23857587, 30153412, 24705722
     29448643, 23071867, 29671623, 29870012, 29726561, 29701537, 29312272
     26403575, 29667975, 28891448, 29140540, 29140516, 28998139, 28874066
     29140551, 29140549, 26791760, 29140508, 29140555, 28626991, 26353793
     28110087, 28313163, 28594324, 26624375, 28409586, 28375173, 28481582
     28140800, 28375702, 27988175, 28043040, 17905354, 20020455, 27416586
     27417245, 27445260, 27947832, 18412312, 27934864, 27819370, 27234961
     25993295, 27948303, 26769768, 26439373, 20952741, 27565682, 26608537
     25987400, 26806438, 26885274, 26835012, 26038824, 23304470, 27117282
     23049601, 26589850, 26985581, 25750303, 26547016, 27111664, 25205507
     26797049, 20952475, 19763916, 22690676, 24618043, 24376591, 25355394
     24469063, 24818026, 18854885, 26144830, 19828316, 21270142, 26044754
     21241854, 26596622, 22083678, 18746053, 21562338, 22746640, 20047315
     19926398, 21549018, 20162146, 20774032, 25917709, 26632886, 26563889
     25439226, 25174732, 21748022, 26861216, 18597348, 23342794, 25823774
     25695948, 20969389, 25955347, 20432957, 21902034, 24341200, 18387934
     21652727, 25720769, 21225816, 20256190, 24837293, 16956849, 21347054
     25375968, 25522149, 24533963, 24802574, 19175526, 22586217, 25743025
     21562704, 19721047, 24828619, 25743005, 22540656, 20207088, 18485034
     26144926, 25118289, 20629733, 20197139, 25534314, 25577947, 24399682
     24817968, 23099318, 22383225, 23326877, 22107941, 22759067, 25590885
     19170125, 22901740, 19865550, 25192229, 19549507, 20311530, 22950801
     19565095, 20430490, 25164167, 19234430, 20193085, 21081720, 25317743
     21158132, 25059150, 20671165, 23555480, 20717353, 25497443, 22261241
     18974055, 21189073, 20157787, 23733891, 21119215, 20205647, 25029531
     22987229, 22749253, 19472793, 17889922, 24305841, 23640078, 20692185
     22836462, 23063611, 22860104, 19150684, 24522430, 23732201, 19775778
     23223461, 21834255, 23735210, 23103220, 22999996, 22850769, 18438079
     22486599, 22900750, 20419243, 22541225, 20739167, 22829635, 23004029
     22836557, 20736912, 22910817, 19150123, 21647599, 18144979, 24750930
     18806464, 21545042, 20585084, 22249331, 22550116, 20062321, 21603584
     21964759, 20226151, 20672949, 23107300, 22097019, 19463153, 19689036
     20783846, 22378134, 22599178, 19947189, 23099223, 21836275, 20220959
     16815912, 19467894, 20246732, 22574362, 20080046, 21522926, 19986568
     20551651, 18123824, 21294990, 21947902, 20907322, 21561271, 22666897
     21129379, 20128089, 20720853, 18559995, 19263075, 19425078, 20721340
     20087183, 20044804, 14236278, 21083766, 20786128, 22498352, 20758488
     22100830, 21039390, 22339918, 22049932, 19477196, 19212729, 21519519
     19928803, 19790693, 21516492, 20229977, 22200449, 22200523, 22175246
     19703527, 21495475, 22248079, 19879223, 21252292, 18836900, 19883023
     20333386, 21615827, 18428696, 17702917, 19874466, 18945422, 19953516
     20613957, 21756751, 22247869, 22200594, 17968606, 22200491, 19585666
     19668883, 18082758, 19917893, 18722098, 18466848, 19705162, 19973098
     20471785, 19500276, 20169972, 19917991, 19422493, 19299358, 18746515
     20323632, 20080751, 19351700, 21746415, 19297004, 19001915, 18718889
     20798352, 20758863, 17394051, 16562029, 21169554, 18432174, 20266379
     20206879, 19080525, 21107126, 19268444, 18729264, 19852007, 20985893
     20523619, 21069524, 20814890, 20906638, 18376812, 19936917, 18481239
     18727635, 19556868, 18289179, 18964349, 18305935, 19459949, 19066738
     19988824, 19265688, 19033547, 19533331, 19576633, 18753794, 19907066
     18671042, 18912482, 18922324, 19339238, 17721032, 18538501, 19942900
     19730967, 18276961, 19287842, 18589879, 17012341, 19287874, 18691894
     18859387, 18968900

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

OPatch succeeded.

7. Restart weblogic application service

8. Windows installation patch

Step 1. Close the java process service first
Step 2: enter the directory D:\weblogic\middleware\OPatch463093, and perform the patch update operation, as follows:
Ø while holding down the Ctrl and Shift keys on the keyboard, right-click the blank area of the interface, and select "open command window here" in the pop-up window:

Execute the command as follows (Note: during the installation, there will be a prompt, and you need to enter y on the keyboard to continue the installation):
D:\weblogic\middleware\OPatch\opatch.bat apply -jdk %JAVA_HOME%

Step 3: execute the patch query instruction to confirm the installed patch information

The instructions are as follows:
D:\weblogic\middleware\OPatch\opatch.bat lsinventory -jdk %JAVA_HOME%

Tags: Linux Oracle Weblogic Windows

Posted on Wed, 04 Mar 2020 06:54:35 -0800 by garethj