Hello Friends,
In this post we will look at database and Grid patching
Download the patch from oracle metalink. from patches and update section
unzip the patch p28553832_12201190115OCWJAN2019RU_Linux-x86-64
But be informed to take a zip backup of oracle home and grid home before starting the patching
No need to stop the database or Grid home :
Before applying the patch first analyze the patch :
[root@dm10db11 oracle]# opatchauto apply /oracle/28553832 -analyze
System initialization log file is /oracle/app/grid/gr_home/cfgtoollogs/opatchautodb/systemconfig2020-05-27_05-47-19PM.log.
Session log file is /oracle/app/grid/gr_home/cfgtoollogs/opatchauto/opatchauto2020-05-27_05-47-24PM.log
The id for this session is U9XH
[init:init] Executing OPatchAutoBinaryAction action on home /oracle/app/orawork/product/12.2.0.1/db_1
Executing OPatch prereq operations to verify patch applicability on SIDB Home........
[init:init] OPatchAutoBinaryAction action completed on home /oracle/app/orawork/product/12.2.0.1/db_1 successfully
[init:init] Executing SIDBPrereqAction action on home /oracle/app/orawork/product/12.2.0.1/db_1
Executing prereq operations before applying on SIDB Home........
[init:init] SIDBPrereqAction action completed on home /oracle/app/orawork/product/12.2.0.1/db_1 successfully
[init:init] Executing OPatchAutoBinaryAction action on home /oracle/app/grid/gr_home
Executing OPatch prereq operations to verify patch applicability on SIHA Home........
[init:init] OPatchAutoBinaryAction action completed on home /oracle/app/grid/gr_home successfully
[init:init] Executing SIHAPrereqAction action on home /oracle/app/grid/gr_home
Executing prereq operations before applying on SIHA Home........
[init:init] SIHAPrereqAction action completed on home /oracle/app/grid/gr_home successfully
OPatchAuto successful.
--------------------------------Summary--------------------------------
Analysis for applying patches has completed successfully:
Host:dm10db11
SIDB Home:/oracle/app/orawork/product/12.2.0.1/db_1
==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /oracle/28553832/28553832
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2020-05-27_17-47-32PM_1.log
Host:dm10db11
SIHA Home:/oracle/app/grid/gr_home
==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /oracle/28553832/28553832
Log: /oracle/app/grid/gr_home/cfgtoollogs/opatchauto/core/opatch/opatch2020-05-27_17-47-52PM_1.log
Now once the analyze is successful start with the main patching [root@dm10db11 gr_home]# opatchauto apply /oracle/28553832
OPatchauto session is initiated at Wed May 27 18:22:19 2020
System initialization log file is /oracle/app/grid/gr_home/cfgtoollogs/opatchautodb/systemconfig2020-05-27_06-22-21PM.log.
Session log file is /oracle/app/grid/gr_home/cfgtoollogs/opatchauto/opatchauto2020-05-27_06-22-27PM.log
The id for this session is DEQD
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
Patch applicability verified successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Verifying SQL patch applicability on home /oracle/app/orawork/product/12.2.0.1/db_1
No step execution required.........
Executing OPatch prereq operations to verify patch applicability on home /oracle/app/grid/gr_home
Patch applicability verified successfully on home /oracle/app/grid/gr_home
Preparing to bring down database service on home /oracle/app/orawork/product/12.2.0.1/db_1
Successfully prepared home /oracle/app/orawork/product/12.2.0.1/db_1 to bring down database service
Bringing down database service on home /oracle/app/orawork/product/12.2.0.1/db_1
Database service successfully brought down on home /oracle/app/orawork/product/12.2.0.1/db_1
Bringing down CRS service on home /oracle/app/grid/gr_home
Prepatch operation log file location: /oracle/app/grid/crsdata/dm10db11/crsconfig/hapatch_2020-05-27_06-22-50PM.log
CRS service brought down successfully on home /oracle/app/grid/gr_home
Start applying binary patch on home /oracle/app/orawork/product/12.2.0.1/db_1
Binary patch applied successfully on home /oracle/app/orawork/product/12.2.0.1/db_1
Start applying binary patch on home /oracle/app/grid/gr_home
Binary patch applied successfully on home /oracle/app/grid/gr_home
Starting CRS service on home /oracle/app/grid/gr_home
Postpatch operation log file location: /oracle/app/grid/crsdata/dm10db11/crsconfig/hapatch_2020-05-27_06-25-24PM.log
CRS service started successfully on home /oracle/app/grid/gr_home
Starting database service on home /oracle/app/orawork/product/12.2.0.1/db_1
Database service successfully started on home /oracle/app/orawork/product/12.2.0.1/db_1
Preparing home /oracle/app/orawork/product/12.2.0.1/db_1 after database service restarted
No step execution required.........
Trying to apply SQL patch on home /oracle/app/orawork/product/12.2.0.1/db_1
No step execution required.........
OPatchAuto successful.
--------------------------------Summary--------------------------------
Patching is completed successfully. Please find the summary as follows:
Host:dm10db11
SIDB Home:/oracle/app/orawork/product/12.2.0.1/db_1
Version:12.2.0.1.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/28553832/28553832
Log: /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2020-05-27_18-23-14PM_1.log
Host:dm10db11
SIHA Home:/oracle/app/grid/gr_home
Version:12.2.0.1.0
Summary:
==Following patches were SUCCESSFULLY applied:
Patch: /oracle/28553832/28553832
Log: /oracle/app/grid/gr_home/cfgtoollogs/opatchauto/core/opatch/opatch2020-05-27_18-23-38PM_1.log
OPatchauto session completed at Wed May 27 18:27:08 2020
Time taken to complete the session 4 minutes, 50 seconds
Now check the lsinventory for Grid and database[grid@dm10db11 ~]$ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/grid/gr_home
Central Inventory : /oracle/app/oraInventory
from : /oracle/app/grid/gr_home/oraInst.loc
OPatch version : 12.2.0.1.21
OUI version : 12.2.0.1.4
Log file location : /oracle/app/grid/gr_home/cfgtoollogs/opatch/opatch2020-05-27_21-45-09PM_1.log
Lsinventory Output file location : /oracle/app/grid/gr_home/cfgtoollogs/opatch/lsinv/lsinventory2020-05-27_21-45-09PM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: dm10db11.database.com
ARU platform id: 226
ARU platform description:: Linux x86-64
Installed Top-level Products (1):
Oracle Grid Infrastructure 12c 12.2.0.1.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 28553832 : applied on Wed May 27 18:25:15 IST 2020
Unique Patch ID: 22639719
Patch description: "OCW Interim patch for 28553832"
Created on 25 Dec 2018, 00:16:48 hrs PST8PDT
Bugs fixed:
28553832, 12816839, 13250991, 18701017, 20559126, 21477269, 21679331
22322021, 22734786, 22986384, 22999793, 23170674, 23297046, 23301767
23340259, 23346234, 23722215, 23760401, 23762756, 24330981, 24372941
24396050, 24403376, 24411578, 24422155, 24423011, 24445255, 24451580
24462646, 24464953, 24509984, 24546078, 24578464, 24583356, 24584419
24600431, 24657753, 24663993, 24664849, 24665035, 24670214, 24673586
24696235, 24732650, 24736511, 24792446, 24796183, 24797972, 24801915
24808260, 24820676, 24824518, 24831158, 24831217, 24902553, 24908629
24932026, 24953946, 25025157, 25026470, 25037011, 25037836, 25049033
25066549, 25089164, 25100966, 25131365, 25137752, 25164540, 25197395
25197670, 25216003, 25233797, 25245759, 25251382, 25269635, 25291358
25301463, 25304126, 25307145, 25325522, 25327670, 25329178, 25354530
25360754, 25361169, 25369170, 25371632, 25385515, 25397620, 25408895
25409838, 25448462, 25448476, 25485737, 25492219, 25493588, 25496699
25499276, 25505841, 25509979, 25518447, 25537905, 25540583, 25541343
25556203, 25564644, 25569634, 25576767, 25591658, 25633406, 25644425
25646592, 25655495, 25662028, 25667162, 25685286, 25697364, 25698636
25715140, 25715179, 25716769, 25717212, 25728787, 25729214, 25742471
25742704, 25774482, 25776294, 25784424, 25785073, 25789051, 25790699
25795447, 25801922, 25803563, 25810476, 25825732, 25825755, 25832312
25832375, 25851874, 25856024, 25865563, 25885834, 25890662, 25893570
25915863, 25927065, 25943805, 25947195, 25948946, 25951778, 25956724
25987595, 25996923, 25998093, 26002739, 26035888, 26052877, 26088770
26111524, 26115835, 26116932, 26121788, 26144044, 26185271, 26185431
26198627, 26230199, 26238801, 26248428, 26257547, 26264417, 26282865
26301456, 26307166, 26308703, 26313403, 26316238, 26326556, 26357098
26372145, 26379711, 26387283, 26391418, 26418606, 26419112, 26431982
26433972, 26433979, 26439462, 26439893, 26473232, 26474627, 26477705
26493466, 26494006, 26494536, 26527054, 26529142, 26546632, 26547521
26552807, 26567325, 26581118, 26586174, 26587652, 26588288, 26593581
26624184, 26633228, 26654615, 26664476, 26709107, 26710631, 26716037
26747738, 26754328, 26755613, 26791882, 26817081, 26817275, 26817995
26818064, 26818368, 26822082, 26827699, 26860285, 26875825, 26877592
26884984, 26943660, 26950548, 26958202, 26973611, 26979409, 26996813
27006180, 27012234, 27018734, 27023569, 27040560, 27047274, 27068526
27070729, 27080761, 27092991, 27094352, 27106915, 27114112, 27119820
27130514, 27133637, 27153755, 27154002, 27174938, 27182006, 27186837
27190262, 27213140, 27222423, 27222938, 27249544, 27252023, 27267992
27274143, 27297582, 27300007, 27309182, 27358232, 27370933, 27377219
27378959, 27379846, 27399762, 27403244, 27404599, 27426277, 27440094
27475272, 27507494, 27516078, 27526362, 27532009, 27534289, 27536738
27542831, 27554103, 27554304, 27555886, 27566153, 27577122, 27581484
27593587, 27595801, 27600706, 27624923, 27628221, 27664844, 27668379
27682288, 27691717, 27702244, 27703242, 27708711, 27712736, 27735534
27739957, 27747407, 27753602, 27757979, 27766679, 27769638, 27786669
27811439, 27850736, 27862636, 27870441, 27899060, 27953102, 27970426
27972271, 27984314, 28030440, 28032758, 28050201, 28071462, 28084656
28097951, 28105136, 28127661, 28146584, 28161727, 28266751, 28285234
28375138, 28383213, 28393555, 28462215, 28477613, 28504730, 28535778
28558622, 28578962, 28593407, 28887933
--------------------------------------------------------------------------------
OPatch succeeded.
Database lsinventory :
[oracle@dm10db11 ~]$ export PATH=/oracle/app/orawork/product/12.2.0.1/db_1/OPatch:$PATH
[oracle@dm10db11 ~]$ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.21
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/orawork/product/12.2.0.1/db_1
Central Inventory : /oracle/app/oraInventory
from : /oracle/app/orawork/product/12.2.0.1/db_1//oraInst.loc
OPatch version : 12.2.0.1.21
OUI version : 12.2.0.1.4
Log file location : /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatch/opatch2020-05-27_21-51-15PM_1.log
Lsinventory Output file location : /oracle/app/orawork/product/12.2.0.1/db_1/cfgtoollogs/opatch/lsinv/lsinventory2020-05-27_21-51-15PM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: dm10db11.database.com
ARU platform id: 226
ARU platform description:: Linux x86-64
Installed Top-level Products (1):
Oracle Database 12c 12.2.0.1.0
There are 1 products installed in this Oracle Home.
Interim patches (1) :
Patch 28553832 : applied on Wed May 27 18:23:31 IST 2020
Unique Patch ID: 22639719
Patch description: "OCW Interim patch for 28553832"
Created on 25 Dec 2018, 00:16:48 hrs PST8PDT
Bugs fixed:
28553832, 12816839, 13250991, 18701017, 20559126, 21477269, 21679331
22322021, 22734786, 22986384, 22999793, 23170674, 23297046, 23301767
23340259, 23346234, 23722215, 23760401, 23762756, 24330981, 24372941
24396050, 24403376, 24411578, 24422155, 24423011, 24445255, 24451580
24462646, 24464953, 24509984, 24546078, 24578464, 24583356, 24584419
24600431, 24657753, 24663993, 24664849, 24665035, 24670214, 24673586
24696235, 24732650, 24736511, 24792446, 24796183, 24797972, 24801915
24808260, 24820676, 24824518, 24831158, 24831217, 24902553, 24908629
24932026, 24953946, 25025157, 25026470, 25037011, 25037836, 25049033
25066549, 25089164, 25100966, 25131365, 25137752, 25164540, 25197395
25197670, 25216003, 25233797, 25245759, 25251382, 25269635, 25291358
25301463, 25304126, 25307145, 25325522, 25327670, 25329178, 25354530
25360754, 25361169, 25369170, 25371632, 25385515, 25397620, 25408895
25409838, 25448462, 25448476, 25485737, 25492219, 25493588, 25496699
25499276, 25505841, 25509979, 25518447, 25537905, 25540583, 25541343
25556203, 25564644, 25569634, 25576767, 25591658, 25633406, 25644425
25646592, 25655495, 25662028, 25667162, 25685286, 25697364, 25698636
25715140, 25715179, 25716769, 25717212, 25728787, 25729214, 25742471
25742704, 25774482, 25776294, 25784424, 25785073, 25789051, 25790699
25795447, 25801922, 25803563, 25810476, 25825732, 25825755, 25832312
25832375, 25851874, 25856024, 25865563, 25885834, 25890662, 25893570
25915863, 25927065, 25943805, 25947195, 25948946, 25951778, 25956724
25987595, 25996923, 25998093, 26002739, 26035888, 26052877, 26088770
26111524, 26115835, 26116932, 26121788, 26144044, 26185271, 26185431
26198627, 26230199, 26238801, 26248428, 26257547, 26264417, 26282865
26301456, 26307166, 26308703, 26313403, 26316238, 26326556, 26357098
26372145, 26379711, 26387283, 26391418, 26418606, 26419112, 26431982
26433972, 26433979, 26439462, 26439893, 26473232, 26474627, 26477705
26493466, 26494006, 26494536, 26527054, 26529142, 26546632, 26547521
26552807, 26567325, 26581118, 26586174, 26587652, 26588288, 26593581
26624184, 26633228, 26654615, 26664476, 26709107, 26710631, 26716037
26747738, 26754328, 26755613, 26791882, 26817081, 26817275, 26817995
26818064, 26818368, 26822082, 26827699, 26860285, 26875825, 26877592
26884984, 26943660, 26950548, 26958202, 26973611, 26979409, 26996813
27006180, 27012234, 27018734, 27023569, 27040560, 27047274, 27068526
27070729, 27080761, 27092991, 27094352, 27106915, 27114112, 27119820
27130514, 27133637, 27153755, 27154002, 27174938, 27182006, 27186837
27190262, 27213140, 27222423, 27222938, 27249544, 27252023, 27267992
27274143, 27297582, 27300007, 27309182, 27358232, 27370933, 27377219
27378959, 27379846, 27399762, 27403244, 27404599, 27426277, 27440094
27475272, 27507494, 27516078, 27526362, 27532009, 27534289, 27536738
27542831, 27554103, 27554304, 27555886, 27566153, 27577122, 27581484
27593587, 27595801, 27600706, 27624923, 27628221, 27664844, 27668379
27682288, 27691717, 27702244, 27703242, 27708711, 27712736, 27735534
27739957, 27747407, 27753602, 27757979, 27766679, 27769638, 27786669
27811439, 27850736, 27862636, 27870441, 27899060, 27953102, 27970426
27972271, 27984314, 28030440, 28032758, 28050201, 28071462, 28084656
28097951, 28105136, 28127661, 28146584, 28161727, 28266751, 28285234
28375138, 28383213, 28393555, 28462215, 28477613, 28504730, 28535778
28558622, 28578962, 28593407, 28887933
--------------------------------------------------------------------------------
OPatch succeeded.
Datapatch step is necessary if there is an sql apply in the patch, This case we dont have one but stil have given the output below [oracle@dm10db11 OPatch]$ ./datapatch -verbose
SQL Patching tool version 12.2.0.1.0 Production on Wed May 27 21:53:47 2020
Copyright (c) 2012, 2017, Oracle. All rights reserved.
Log file for this invocation: /oracle/app/orawork/cfgtoollogs/sqlpatch/sqlpatch_27707_2020_05_27_21_53_47/sqlpatch_invocation.log
Connecting to database...OK
Note: Datapatch will only apply or rollback SQL fixes for PDBs
that are in an open state, no patches will be applied to closed PDBs.
Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation
(Doc ID 1585822.1)
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of SQL patches:
Adding patches to installation queue and performing prereq checks...
Installation queue:
For the following PDBs: CDB$ROOT PDB$SEED PDBISTDB
Nothing to roll back
Nothing to apply
SQL Patching tool complete on Wed May 27 21:54:04 2020
2 comments
Click here for commentsDid you install patch to oracle home?
ReplyOr it is enough to install only in grid home?
Thank you
Hello
ReplyIt was a bundel Patch for Grid and database
Regards
Sultan Khan
ConversionConversion EmoticonEmoticon