Step by Step Weblogic Patching steps

August 21, 2020
()

Below are step-by-step demonstrations about the apply patches in Weblogic.


Create Directory PATCH (It’s optional)

[oracle@DBGURU u02]$ mkdir -p /u02/PATCH


Go to the patch directory.

[oracle@DBGURU ~]$ cd /u02/PATCH


Copy Weblogic patch from /tmp.

[oracle@DBGURU PATCH]$ cp /tmp/p*


Check opatch version.

[oracle@DBGURU PATCH]$ $MW_HOME/OPatch/opatch version
OPatch Version: 13.9.2.0.0
OPatch succeeded.


Go to the patch directory.

[oracle@DBGURU PATCH]$ pwd
/u02/PATCH

[oracle@DBGURU PATCH]$ ls -lrt
total 104220-rw-rw-r– 1 oracle oracle 46620588 Jul 15 13:10 p28186730_139422_Generic.zip
-rw-rw-r– 1 oracle oracle 60098522 Jul 15 13:10 p30965714_122130_Generic.zip
drwx—— 2 oracle oracle 103 Jul 15 13:10 pulse-J4ud4ahIBCC1


Unzip patch.

[oracle@DBGURU PATCH]$ unzip p28186730_139422_Generic.zip-- opatch version psu

[oracle@DBGURU PATCH]$ unzip p30965714_122130_Generic.zip--- weblogic psu

[oracle@DBGURU PATCH]$ ls -lrt
total 104220
drwxr-xr-x 2 oracle oracle 69 Jan 16 21:40 6880880
drwxr-x— 4 oracle oracle 67 Feb 29 10:48 30965714
-rw-rw-r– 1 oracle oracle 46620588 Jul 15 13:10 p28186730_139422_Generic.zip
-rw-rw-r– 1 oracle oracle 60098522 Jul 15 13:10 p30965714_122130_Generic.zip


Stop the Weblogic process.

Stopped nodemanager and weblogic process.

[oracle@DBGURU bin]$cd /u01/app/oracle/Middleware/user_projects/domains/base_domain/bin

[oracle@DBGURU bin]$ pwd
/u01/app/oracle/Middleware/user_projects/domains/base_domain/bin

[oracle@DBGURU bin]$ ./stopNodeManager.sh
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:17>
<2020-07-15 EDT 13:22:18>
/u01/app/oracle/Middleware/user_projects/domains/base_domain/nodemanager/stopnodemanager.log was copied to /u01/app/oracle/Middleware/user_projects/domains/base_domain/nodemanager/nodemanager.log

[oracle@DBGURU bin]$ ./stopWebLogic.sh
Stopping Weblogic Server…
Initializing WebLogic Scripting Tool (WLST) …
Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
Exiting WebLogic Scripting Tool.
WLST lost connection to the WebLogic Server that you were connected to.
This may happen if the server was shut down or partitioned.
You will have to re-connect to the server once the server is available.
Disconnected from weblogic server:
Done
Stopping Derby Server…
Derby server stopped.


List current opatch inventory.

oracle@DBGURU bin]$ $MW_HOME/OPatch/opatch lsinventory -jre $JAVA_HOME/jre
Oracle Interim Patch Installer version 13.9.2.0.0
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/Middleware
Central Inventory : /u01/app/oracle/oraInventory
from : /u01/app/oracle/Middleware/oraInst.loc
OPatch version : 13.9.2.0.0
OUI version : 13.9.2.0.0
Log file location : /u01/app/oracle/Middleware/cfgtoollogs/opatch/opatch2020-07-15_13-25-40PM_1.log
OPatch detects the Middleware Home as “/u01/app/oracle/Middleware”
Lsinventory Output file location : /u01/app/oracle/Middleware/cfgtoollogs/opatch/lsinv/lsinventory2020-07-15_13-25-40PM.txt
Local Machine Information::
Hostname: DBGURU
ARU platform id: 226
ARU platform description:: Linux x86-64
Interim patches (4) :
Patch 26355633 : applied on Tue Jun 30 11:38:24 EDT 2020
Unique Patch ID: 21447583
Patch description: “One-off”
Created on 1 Aug 2017, 21:40:20 hrs UTC
Bugs fixed:
26355633
Patch 26287183 : applied on Tue Jun 30 11:38:13 EDT 2020
Unique Patch ID: 21447582
Patch description: “One-off”
Created on 1 Aug 2017, 21:41:27 hrs UTC
Bugs fixed:
26287183
Patch 26261906 : applied on Tue Jun 30 11:37:54 EDT 2020
Unique Patch ID: 21344506
Patch description: “One-off”
Created on 12 Jun 2017, 23:36:08 hrs UTC
Bugs fixed:
25559137, 25232931, 24811916
Patch 26051289 : applied on Tue Jun 30 11:37:50 EDT 2020
Unique Patch ID: 21455037
Patch description: “One-off”
Created on 31 Jul 2017, 22:11:57 hrs UTC
Bugs fixed:
26051289
OPatch succeeded.


Go to patch directory and first upgrade opatch version from 13.9.2.0.0 to 13.9.4.2.2.

[oracle@DBGURU PATCH]$ cd 6880880

[oracle@DBGURU 6880880]$ pwd
/u02/PATCH/6880880

[oracle@DBGURU 6880880]$ java -jar /u02/PATCH/6880880/opatch_generic.jar -silent ORACLE_HOME=/u01/app/oracle/Middleware

[oracle@DBGURU 6880880]$ $MW_HOME/OPatch/opatch version
OPatch Version: 13.9.4.2.2
OPatch succeeded.


Now apply the patch on Weblogic, go to the Weblogic patch directory.

[oracle@DBGURU PATCH]$ cd 30965714/

[oracle@DBGURU 30965714]$ $MW_HOME/OPatch/opatch apply -jdk $JAVA_HOME

Oracle Interim Patch Installer version 13.9.4.2.2
Oracle Home : /u01/app/oracle/Middleware
Central Inventory : /u01/app/oracle/oraInventory
from : /u01/app/oracle/Middleware/oraInst.loc
OPatch version : 13.9.4.2.2
OUI version : 13.9.4.0.0
Log file location : /u01/app/oracle/Middleware/cfgtoollogs/opatch/opatch2020-07-15_13-43-10PM_1.log
OPatch detects the Middleware Home as “/u01/app/oracle/Middleware”
Verifying environment and performing prerequisite checks…
OPatch continues with these patches: 30965714
Do you want to proceed? [y|n]

y

User Responded with: Y
All checks passed.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = ‘/u01/app/oracle/Middleware’)
Is the local system ready for patching? [y|n]

y
User Responded with: Y
Backing up files…
Applying interim patch ‘30965714’ to OH ‘/u01/app/oracle/Middleware’
ApplySession: Optional component(s) [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.wls.cam.wlst, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.webservices.wls.jaxrpc, 12.2.1.3.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ oracle.com.fasterxml.jackson.dataformat.jackson.dataformat.yaml, 2.7.9.0.0 ] , [ oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.webservices.jrf, 12.2.1.3.0 ] , [ oracle.fmwconfig.common.wls.shared, 12.2.1.3.0 ] , [ oracle.wls.core.app.server.nativelib, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.se, 12.2.1.3.0 ] , [ oracle.wls.server.examples, 12.2.1.3.0 ] , [ oracle.wls.rdmu, 12.2.1.3.0 ] , [ oracle.legacy_oc4j_xml_schemas, 12.2.1.3.0 ] , [ oracle.wls.server.mt.examples, 12.2.1.3.0 ] , [ oracle.jrf.tenancy.ee, 12.2.1.3.0 ] , [ oracle.jrf.tenancy, 12.2.1.3.0 ] not present in the Oracle Home or a higher version is found.
Patching component oracle.jaxb.tools, 2.3.0.0.0…
Patching component oracle.jaxb.core, 2.3.0.0.0…
Patching component oracle.diagnostics.common, 12.2.1.3.0…
Patching component oracle.wls.weblogic.sca, 12.2.1.3.0…
Patching component org.codehaus.woodstox, 4.2.0.0.0…
Patching component oracle.wls.core.app.server.tier1nativelib, 12.2.1.3.0…
Patching component oracle.java.jaxws, 12.2.1.3.0…
Patch 30965714 successfully applied.
Log file location: /u01/app/oracle/Middleware/cfgtoollogs/opatch/opatch2020-07-15_13-43-10PM_1.log
OPatch succeeded.


Patch status after patch applied.

[oracle@DBGURU 30965714]$ $MW_HOME/OPatch/opatch lsinventory

Oracle Interim Patch Installer version 13.9.4.2.2
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/Middleware
Central Inventory : /u01/app/oracle/oraInventory
from : /u01/app/oracle/Middleware/oraInst.loc
OPatch version : 13.9.4.2.2
OUI version : 13.9.4.0.0
Log file location : /u01/app/oracle/Middleware/cfgtoollogs/opatch/opatch2020-07-15_13-49-56PM_1.log
OPatch detects the Middleware Home as “/u01/app/oracle/Middleware”
Lsinventory Output file location : /u01/app/oracle/Middleware/cfgtoollogs/opatch/lsinv/lsinventory2020-07-15_13-49-56PM.txt
Local Machine Information::
Hostname: DBGURU
ARU platform id: 226
ARU platform description:: Linux x86-64
Interim patches (5) :
Patch 30965714 : applied on Wed Jul 15 13:46:29 EDT 2020
Unique Patch ID: 23416257
Patch description: “WLS PATCH SET UPDATE 12.2.1.3.0(ID:200227.1409)”
Created on 29 Feb 2020, 10:48:07 hrs PST8PDT
Bugs fixed:
30362086, 30362026, 30067299, 29769772, 29671344, 30342923, 30341541
26444945, 30576401, 27158972, 30230430, 30568713, 29425867, 27456095
29752735, 30088758, 28794044, 29957539, 29585355, 27817138, 26199271
25830131, 28879029, 26593955, 29913898, 29750025, 28973782, 29356775
30180712, 24931180, 29643116, 27228370, 29158881, 26877609, 27179313
29181056, 30153412, 29921455, 28867938, 25369207, 29338121, 29448643
29312272, 26987594, 27010571, 26075541, 27823500, 27248932, 25294832
26131085, 27659077, 26403575, 29667975, 28278427, 29726561, 29701537
29411629, 29789769, 30563848, 28593702, 30734182, 30814590, 30633620
29464735, 30624882, 28482069, 10206721, 30068341, 30885237, 30801769
30885217, 30740009, 30670689, 30459026, 29247835, 30558254, 28748179
28984617, 28774974, 28891448, 28874066, 26943614, 28651365, 29140555
27086845, 29140516, 28895280, 26791760, 29140540, 29140549, 29140508
29140551, 28550962, 27397287, 28958819, 27033250, 28149607, 28110087
26267487, 28632521, 26624375, 27213775, 28503638, 28138954, 28103938
28559579, 28594324, 26353793, 28626991, 28166483, 28313163, 28142116
28319690, 27912485, 27561226, 27927071, 27469756, 27486993, 28140800
27928833, 25580220, 28311332, 27988175, 28172380, 28360225, 28171852
28375173, 28071913, 28409586, 28375702, 27411153, 26502060, 27603087
27234961, 27187631, 27516977, 27819370, 27617877, 26145911, 26268190
27693510, 27417245, 27284496, 27947832, 26026959, 26499391, 23076695
25488428, 26626528, 27445260, 26098043, 27948303, 27934864, 27803728
26473149, 27272911, 26731253, 27118731, 27131483, 25993295, 25800186
25987400, 26439373, 26080417, 26929163, 26806438, 25665727, 26608537
26936500, 27055227, 26144830, 25750303, 26248394, 26589850, 27111664
26547016, 26828499, 26835012, 27117282, 26985581, 23103220, 25387569
Patch 26355633 : applied on Tue Jun 30 11:38:24 EDT 2020
Unique Patch ID: 21447583
Patch description: “One-off”
Created on 1 Aug 2017, 21:40:20 hrs UTC
Bugs fixed:
26355633
Patch 26287183 : applied on Tue Jun 30 11:38:13 EDT 2020
Unique Patch ID: 21447582
Patch description: “One-off”
Created on 1 Aug 2017, 21:41:27 hrs UTC
Bugs fixed:
26287183
Patch 26261906 : applied on Tue Jun 30 11:37:54 EDT 2020
Unique Patch ID: 21344506
Patch description: “One-off”
Created on 12 Jun 2017, 23:36:08 hrs UTC
Bugs fixed:
25559137, 25232931, 24811916
Patch 26051289 : applied on Tue Jun 30 11:37:50 EDT 2020
Unique Patch ID: 21455037
Patch description: “One-off”
Created on 31 Jul 2017, 22:11:57 hrs UTC
Bugs fixed:
26051289
OPatch succeeded.


Start Weblogic services.

[oracle@DBGURU 30965714]$ cd /u01/app/oracle/Middleware/user_projects/domains/base_domain/bin

[oracle@DBGURU bin]$ nohup sh startWebLogic.sh>startWebLogic.log 2>&1&
[1] 72617

[oracle@DBGURU bin]$ nohup sh startNodeManager.sh > startNodeManager.log 2>&1&

Click here to get more patching-related articles.


This document is only for learning purpose and always validate in the LAB environment first before applying in the LIVE environment.


Hope so you like this article
!
Please share your valuable feedback/comments/subscribe and follow us below and don’t forget to click on the bell icon to get the latest update. Click here to know more about our pursuit.

Recent articles

 

Loading

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

<strong>Hello and welcome to DBsGuru,</strong>DBsGuru is a group of experienced DBA professionals and serves databases and their related community by providing technical blogs, projects, training. Technical blogs are the source of vast information not about databases but its related product like middleware, PL/SQL, replication methodology, and so on.Thanks for the visits!<strong>Share Learn Grow!</strong>

Leave a Reply

Your email address will not be published. Required fields are marked *