为Oracle 18c数据库打PSU补丁

为Oracle 18c数据库打PSU补丁下载 18cPSU 登录 support oracle com 搜索 psu 第一篇即是 PatchSetUpda 文档 ID 1 在第 4 部分 PatchSetUpda 中可以找到数据库产品 MasterNotefo 文档 ID7 oracle18c 最新补丁集

下载18c PSU

登录support.oracle.com,搜索psu,第一篇即是:Patch Set Updates for Oracle Products(文档 ID 854428.1)

在第4部分,Patch Set Update Availability中可以找到数据库产品:Master Note for Database Proactive Patch Program (文档 ID 756671.1)
在这里插入图片描述
点击链接,在18.0版本,可以找到相应的PSU:
在这里插入图片描述
最终选择的补丁如下:
在这里插入图片描述
补丁详情如下:

DATABASE RELEASE UPDATE 18.7.0.0.0 (补丁程序)
p29757256_180000_Linux-x86-64.zip

在这里插入图片描述
下载后确认校验和正确。

安装前检查

查看Central Inventory的信息:

$ cat /etc/oraInst.loc 
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
$ cd /u01/app/oraInventory
$ cd ContentsXML/
$ cat inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2019, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>12.2.0.4.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraDB18Home1" LOC="/u01/app/oracle/product/18.0.0/dbhome_1" TYPE="O" IDX="1"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

查看Local Inventory的信息:

$ cd $ORACLE_HOME
$ cd inventory/ContentsXML/
$ cat comps.xml

查看patch信息:

$ cd $ORACLE_HOME/OPatch
$ pwd
/u01/app/oracle/product/18.0.0/dbhome_1/OPatch

$ ./opatch version
OPatch Version: 12.2.0.1.14

OPatch succeeded.

$ ./opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.14
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.14
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_11-08-23AM_1.log

Lsinventory Output file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2019-08-21_11-08-23AM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: ol7-183.localdomain
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1): 

Oracle Database 18c                                                  18.0.0.0.0
There are 1 products installed in this Oracle Home.


Interim patches (4) :

Patch  27908644     : applied on Thu Jul 19 01:44:11 CST 2018
Unique Patch ID:  22153180
Patch description:  "UPDATE 18.3 DATABASE CLIENT JDK IN ORACLE HOME TO JDK8U171"
   Created on 4 May 2018, 01:21:02 hrs PST8PDT
   Bugs fixed:
     27908644

Patch  27923415     : applied on Thu Jul 19 01:41:38 CST 2018
Unique Patch ID:  22239273
Patch description:  "OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)"
   Created on 15 Jul 2018, 10:33:22 hrs PST8PDT
   Bugs fixed:
     27304131, 27539876, 27952586, 27642235, 27636900, 27461740

Patch  28090553     : applied on Thu Jul 19 01:40:01 CST 2018
Unique Patch ID:  22256940
Patch description:  "OCW RELEASE UPDATE 18.3.0.0.0 (28090553)"
   Created on 11 Jul 2018, 19:20:31 hrs PST8PDT
   Bugs fixed:
     12816839, 18701017, 22734786, 23698980, 23840305, 25709124, 25724089
     26299684, 26313403, 26433972, 26527054, 26586174, 26587652, 26647619
     26827699, 26860285, 26882126, 26882316, 26943660, 26996813, 27012915
     27018734, 27032726, 27034318, 27040560, 27080748, 27086406, 27092991
     27098733, 27106915, 27114112, 27121566, 27133637, 27144533, 27153755
     27166715, 27174938, 27174948, 27177551, 27177852, 27182006, 27182064
     27184253, 27204476, 27212837, 27213140, 27220610, 27222423, 27222938
     27238077, 27238258, 27249544, 27252023, 27257509, 27263677, 27265816
     27267992, 27271876, 27274143, 27285557, 27299455, 27300007, 27302415
     27309182, 27314512, 27315159, 27320985, 27334353, 27338838, 27346984
     27358232, 27362190, 27370933, 27377219, 27378959, 27379846, 27379956
     27393421, 27398223, 27399499, 27399762, 27399985, 27401618, 27403244
     27404599, 27426277, 27428790, 27430219, 27430254, 27433163, 27452897
     27458829, 27465480, 27475272, 27481406, 27481765, 27492916, 27496806
     27503318, 27503413, 27508936, 27508984, 27513114, 27519708, 27526362
     27528204, 27532009, 27534289, 27560562, 27560735, 27573154, 27573408
     27574335, 27577122, 27579969, 27581484, 27593587, 27595801, 27600706
     27609819, 27625010, 27625050, 27627992, 27654039, 27657467, 27657920
     27668379, 27682288, 27691717, 27702244, 27703242, 27708711, 27714373
     27725967, 27731346, 27734470, 27735534, 27739957, 27740854, 27747407
     27748321, 27757979, 27766679, 27768034, 27778433, 27782464, 27783059
     27786669, 27786699, 27801774, 27811439, 27839732, 27850736, 27862636
     27864737, 27865439, 27889841, 27896388, 27897639, 27906509, 27931506
     27935826, 27941514, 27957892, 27978668, 27984314, 27993298, 28023410
     28025398, 28032758, 28039471, 28039953, 28045209, 28099592, 28109698
     28174926, 28182503, 28204423, 28240153

Patch  28090523     : applied on Thu Jul 19 01:39:24 CST 2018
Unique Patch ID:  22329768
Patch description:  "Database Release Update : 18.3.0.0.180717 (28090523)"
   Created on 14 Jul 2018, 00:03:50 hrs PST8PDT
   Bugs fixed:
     9062315, 13554903, 21547051, 21766220, 21806121, 23003564, 23310101
     24489904, 24689376, 24737581, 24925863, 25035594, 25035599, 25287072
     25348956, 25634405, 25726981, 25743479, 25824236, 25943740, 26226953
     26336101, 26423085, 26427905, 26450454, 26476244, 26598422, 26615291
     26646549, 26654411, 26731697, 26785169, 26792891, 26818960, 26822620
     26843558, 26843664, 26846077, 26894737, 26898279, 26928317, 26933599
     26956033, 26961415, 26966120, 26986173, 26992964, 27005278, 27026401
     27028251, 27030974, 27036408, 27038986, 27041253, 27044575, 27047831
     27053044, 27058530, 27060167, 27060859, 27061736, 27066451, 27066519
     27073066, 27086821, 27090765, 27101527, 27101652, 27110878, 27112686
     27119621, 27126666, 27128580, 27135647, 27143756, 27143882, 27147979
     27153641, 27155549, 27156355, 27163928, 27169796, 27181521, 27181537
     27189611, 27190851, 27193810, 27199245, 27208953, 27210038, 27210872
     27214085, 27215007, 27216224, 27221900, 27222121, 27222626, 27224987
     27226913, 27232983, 27233563, 27236052, 27236110, 27240246, 27240570
     27241221, 27241247, 27244337, 27244785, 27249215, 27250547, 27254851
     27258578, 27259386, 27259983, 27262650, 27262945, 27263276, 27263996
     27270197, 27274456, 27274536, 27275136, 27275776, 27282707, 27283029
     27283960, 27284499, 27285244, 27288230, 27292213, 27294480, 27301308
     27301568, 27302594, 27302681, 27302695, 27302711, 27302730, 27302777
     27302800, 27302960, 27304410, 27304936, 27305318, 27307868, 27310092
     27313687, 27314206, 27314390, 27318869, 27321179, 27321834, 27326204
     27329812, 27330158, 27330161, 27333658, 27333664, 27333693, 27334316
     27334648, 27335682, 27338912, 27338946, 27339115, 27339396, 27339483
     27339495, 27341036, 27345190, 27345231, 27345450, 27345498, 27346329
     27346644, 27346709, 27346949, 27347126, 27348081, 27348707, 27349393
     27352600, 27354783, 27356373, 27357773, 27358241, 27359178, 27359368
     27360126, 27364891, 27364916, 27364947, 27365139, 27365702, 27365993
     27367194, 27368850, 27372756, 27375260, 27375542, 27376871, 27378103
     27379233, 27381383, 27381656, 27384222, 27389352, 27392187, 27395404
     27395416, 27395794, 27396357, 27396365, 27396377, 27396624, 27396666
     27396672, 27396813, 27398080, 27398660, 27401637, 27405242, 27405696
     27410300, 27410595, 27412805, 27417186, 27420715, 27421101, 27422874
     27423251, 27425507, 27425622, 27426363, 27427805, 27430802, 27432338
     27432355, 27433870, 27434050, 27434193, 27434486, 27434974, 27435537
     27439835, 27441326, 27442041, 27444727, 27445330, 27445462, 27447452
     27447687, 27448162, 27450355, 27450400, 27450783, 27451049, 27451182
     27451187, 27451531, 27452760, 27453225, 27457666, 27457891, 27458164
     27459909, 27460675, 27467543, 27469329, 27471876, 27472969, 27473800
     27479358, 27483974, 27484556, 27486253, 27487795, 27489719, 27496224
     27496308, 27497950, 27498477, 27501327, 27501413, 27501465, 27502420
     27504190, 27505603, 27506774, 27508985, 27511196, 27512439, 27517818
     27518227, 27518310, 27520070, 27520900, 27522245, 27523368, 27523800
     27525909, 27532375, 27533819, 27534509, 27537472, 27544030, 27545630
     27547732, 27550341, 27551855, 27558557, 27558559, 27558861, 27560702
     27563629, 27563767, 27570318, 27577758, 27579353, 27580996, 27585755
     27585800, 27586810, 27586895, 27587672, 27591842, 27592466, 27593389
     27595973, 27599689, 27602091, 27602488, 27603841, 27604293, 27607805
     27608669, 27610269, 27613080, 27613247, 27615608, 27616657, 27617522
     27625274, 27625620, 27631506, 27634676, 27635508, 27644757, 27649707
     27652302, 27663370, 27664702, 27679488, 27679664, 27679806, 27679961
     27680162, 27680509, 27682151, 27688099, 27688692, 27690578, 27691809
     27692215, 27693713, 27697092, 27701795, 27705761, 27707544, 27709046
     27718914, 27719187, 27723002, 27726269, 27726780, 27732323, 27739006
     27740844, 27744211, 27745220, 27747869, 27748954, 27751006, 27753336
     27757567, 27772815, 27773602, 27774320, 27774539, 27779886, 27780562
     27782339, 27783289, 27786772, 27791223, 27797290, 27803665, 27807441
     27812560, 27812593, 27813267, 27815347, 27818871, 27832643, 27833369
     27834984, 27840386, 27847259, 27851757, 27861909, 27869339, 27873643
     27882176, 27892488, 27924147, 27926113, 27930478, 27934468, 27941896
     27945870, 27950708, 27952762, 27961746, 27964051, 27970265, 27971575
     27984028, 27989849, 27993289, 27994333, 27997875, 27999597, 28021205
     28022847, 28033429, 28057267, 28059199, 28072130, 28098865, 28106402
     28132287, 28169711, 28174827, 28184554, 28188330, 25929650, 28264172



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

OPatch succeeded.

SQL*Plus中查看信息:

SQL> col comments format a48
SQL> select version,comments from registry$history;

VERSION 		       COMMENTS
------------------------------ ------------------------------------------------
18			       RDBMS_18.3.0.0.0DBRU_LINUX.X64_180627
18.0.0.0.0		       Patch applied from 18.1.0.0.0 to 18.3.0.0.0
18.3.0.0.180717OJVMRU	       RAN jvmpsu.sql
18.3.0.0.180717OJVMRU	       OJVM RU post-install

更新OPatch

实际就是为OPatch打补丁。参见Master Note For OPatch (文档 ID 293369.1)。
OPatch的补丁号为:6880880
下载最新OPatch,大小为107M。
以下为升级过程:

$ cd $ORACLE_HOME
$ mv OPatch OPatch_bak
$ unzip /mnt/p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 12.2.0.1.17

OPatch succeeded.
$ $ORACLE_HOME/OPatch_bak/opatch version
OPatch Version: 12.2.0.1.14

OPatch succeeded.

安装补丁

解压:

$ unzip /mnt/p29757256_180000_Linux-x86-64.zip -d /tmp
$ cd /tmp/29757256/
$ ls
etc  files  README.html  README.txt

可以在线打补丁吗,否!:

$ $ORACLE_HOME/OPatch/opatch query -is_online_patch /tmp/29757256/
Oracle Interim Patch Installer version 12.2.0.1.14
Copyright (c) 2019, Oracle Corporation.  All rights reserved.

It is not a valid online patch:
/tmp/29757256/

OPatch failed with error code 220

是滚动补丁吗,是!:

$ $ORACLE_HOME/OPatch/opatch query -is_rolling_patch /tmp/29757256/
Oracle Interim Patch Installer version 12.2.0.1.14
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.14
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-02-45PM_1.log

--------------------------------------------------------------------------------
 Patch is a rolling patch: true
 Patch is a FMW rolling patch: false



OPatch succeeded.

进入补丁所在目录,进行先决条件检查,失败了,原因是OPatch版本过低:

$ $ORACLE_HOME/OPatch/opatch apply -analyze
Oracle Interim Patch Installer version 12.2.0.1.14
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.14
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-12-08PM_1.log

Verifying environment and performing prerequisite checks...
Prerequisite check "CheckMinimumOPatchVersion" failed.
The details are:


The OPatch being used has version 12.2.0.1.14 while the following patch(es) require higher versions: 
Patch 29757256 requires OPatch version 12.2.0.1.16.
Please download latest OPatch from My Oracle Support.

UtilSession failed: Prerequisite check "CheckMinimumOPatchVersion" failed.
Log file location: /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-12-08PM_1.log

OPatch failed with error code 73

此时,参见上一步,先升级OPatch。

然后再进行先决条件检查,这一次成功了:

$ cd /tmp/29757256/
$ $ORACLE_HOME/OPatch/opatch apply -analyze
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-24-12PM_1.log

Verifying environment and performing prerequisite checks...

--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...

Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-24-36PM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29757256  

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
All checks passed.
You are calling OPatch with -ocmrf option while this OPatch is generic, not being bundled with OCM. The -ocmrf option is being deprecated. Please remove it while calling OPatch.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/18.0.0/dbhome_1')


Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '29757256' to OH '/u01/app/oracle/product/18.0.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.assistants.server.oui, 18.0.0.0.0 ] , [ oracle.has.crs, 18.0.0.0.0 ] , [ oracle.network.gsm, 18.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 18.0.0.0.0 ] , [ oracle.network.cman, 18.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 18.0.0.0.0 ] , [ oracle.net.cman, 18.0.0.0.0 ] , [ oracle.assistants.asm, 18.0.0.0.0 ] , [ oracle.crs, 18.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 18.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 18.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 18.0.0.0.0 ] , [ oracle.assistants.usm, 18.0.0.0.0 ] , [ oracle.ons.daemon, 18.0.0.0.0 ] , [ oracle.tfa, 18.0.0.0.0 ] , [ oracle.options.olap, 18.0.0.0.0 ] , [ oracle.jdk, 1.8.0.211.12 ]  not present in the Oracle Home or a higher version is found.
Users request no RAC file generation.  Do not create MP files.

Skip patching component oracle.rdbms, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.assistants.acf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.assistants.server, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ctx, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.dbjava.ic, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.dbjava.jdbc, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.dbjava.ucp, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.javavm.client, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ldap.owm, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ldap.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ldap.security.osdt, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.network.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.dbscripts, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.install.common, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.install.plugins, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.oci, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.sdo, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.sdo.locator.jrf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.sqlplus, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.oracore.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.xdk.parser.java, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.network.client, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.install.deinstalltool, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ctx.atg, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.oraolap, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.util, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.deconfig, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ons, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.nlsrtl.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.sqlplus.ic, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.precomp.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.xdk, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.assistants.deconfig, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.rman, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.duma, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.server, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.xdk.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.network.listener, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ctx.rsf, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.crs, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.hsodbc, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.oraolap.dbscripts, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.ldap.rsf.ic, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.sdo.locator, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.nlsrtl.rsf.core, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.rdbms.rsf.ic, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.precomp.common, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.


Skip patching component oracle.precomp.lang, 18.0.0.0.0 and its actions.
The actions are reported here, but are not performed.

ApplySession skipping inventory update.
Patch 29757256 successfully applied.
Log file location: /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-24-36PM_1.log

OPatch succeeded.

以下开始正式打补丁,首先关闭数据库和listener:

SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production

$ lsnrctl stop

LSNRCTL for Linux: Version 18.0.0.0.0 - Production on 21-AUG-2019 13:30:37

Copyright (c) 1991, 2018, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ol7-183.localdomain)(PORT=1521)))
The command completed successfully

开始安装,总共耗时5分多钟:

$ cd /tmp/29757256/
$ time $ORACLE_HOME/OPatch/opatch apply 
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-31-29PM_1.log

Verifying environment and performing prerequisite checks...

--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...

Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-31-48PM_1.log

Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   29757256  

Do you want to proceed? [y|n]
Y (auto-answered by -silent)
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/product/18.0.0/dbhome_1')


Is the local system ready for patching? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
Backing up files...
Applying interim patch '29757256' to OH '/u01/app/oracle/product/18.0.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.assistants.server.oui, 18.0.0.0.0 ] , [ oracle.has.crs, 18.0.0.0.0 ] , [ oracle.network.gsm, 18.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 18.0.0.0.0 ] , [ oracle.network.cman, 18.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 18.0.0.0.0 ] , [ oracle.net.cman, 18.0.0.0.0 ] , [ oracle.assistants.asm, 18.0.0.0.0 ] , [ oracle.crs, 18.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 18.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 18.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 18.0.0.0.0 ] , [ oracle.assistants.usm, 18.0.0.0.0 ] , [ oracle.ons.daemon, 18.0.0.0.0 ] , [ oracle.tfa, 18.0.0.0.0 ] , [ oracle.options.olap, 18.0.0.0.0 ] , [ oracle.jdk, 1.8.0.211.12 ]  not present in the Oracle Home or a higher version is found.

Patching component oracle.rdbms, 18.0.0.0.0...

Patching component oracle.rdbms.rsf, 18.0.0.0.0...

Patching component oracle.assistants.acf, 18.0.0.0.0...

Patching component oracle.assistants.server, 18.0.0.0.0...

Patching component oracle.ctx, 18.0.0.0.0...

Patching component oracle.dbjava.ic, 18.0.0.0.0...

Patching component oracle.dbjava.jdbc, 18.0.0.0.0...

Patching component oracle.dbjava.ucp, 18.0.0.0.0...

Patching component oracle.javavm.client, 18.0.0.0.0...

Patching component oracle.ldap.owm, 18.0.0.0.0...

Patching component oracle.ldap.rsf, 18.0.0.0.0...

Patching component oracle.ldap.security.osdt, 18.0.0.0.0...

Patching component oracle.network.rsf, 18.0.0.0.0...

Patching component oracle.rdbms.dbscripts, 18.0.0.0.0...

Patching component oracle.rdbms.install.common, 18.0.0.0.0...

Patching component oracle.rdbms.install.plugins, 18.0.0.0.0...

Patching component oracle.rdbms.oci, 18.0.0.0.0...

Patching component oracle.sdo, 18.0.0.0.0...

Patching component oracle.sdo.locator.jrf, 18.0.0.0.0...

Patching component oracle.sqlplus, 18.0.0.0.0...

Patching component oracle.oracore.rsf, 18.0.0.0.0...

Patching component oracle.xdk.parser.java, 18.0.0.0.0...

Patching component oracle.network.client, 18.0.0.0.0...

Patching component oracle.install.deinstalltool, 18.0.0.0.0...

Patching component oracle.ctx.atg, 18.0.0.0.0...

Patching component oracle.oraolap, 18.0.0.0.0...

Patching component oracle.rdbms.util, 18.0.0.0.0...

Patching component oracle.rdbms.deconfig, 18.0.0.0.0...

Patching component oracle.ons, 18.0.0.0.0...

Patching component oracle.nlsrtl.rsf, 18.0.0.0.0...

Patching component oracle.sqlplus.ic, 18.0.0.0.0...

Patching component oracle.precomp.rsf, 18.0.0.0.0...

Patching component oracle.xdk, 18.0.0.0.0...

Patching component oracle.assistants.deconfig, 18.0.0.0.0...

Patching component oracle.rdbms.rman, 18.0.0.0.0...

Patching component oracle.duma, 18.0.0.0.0...

Patching component oracle.server, 18.0.0.0.0...

Patching component oracle.xdk.rsf, 18.0.0.0.0...

Patching component oracle.network.listener, 18.0.0.0.0...

Patching component oracle.ctx.rsf, 18.0.0.0.0...

Patching component oracle.rdbms.crs, 18.0.0.0.0...

Patching component oracle.rdbms.hsodbc, 18.0.0.0.0...

Patching component oracle.oraolap.dbscripts, 18.0.0.0.0...

Patching component oracle.ldap.rsf.ic, 18.0.0.0.0...

Patching component oracle.sdo.locator, 18.0.0.0.0...

Patching component oracle.nlsrtl.rsf.core, 18.0.0.0.0...

Patching component oracle.rdbms.rsf.ic, 18.0.0.0.0...

Patching component oracle.precomp.common, 18.0.0.0.0...

Patching component oracle.precomp.lang, 18.0.0.0.0...
Patch 29757256 successfully applied.
Sub-set patch [27908644] has become inactive due to the application of a super-set patch [29757256].
Sub-set patch [28090523] has become inactive due to the application of a super-set patch [29757256].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-31-48PM_1.log

OPatch succeeded.

real	5m23.702s
user	1m57.271s
sys	0m24.628s

安装后确认

$ $ORACLE_HOME/OPatch/opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.17
Copyright (c) 2019, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle/product/18.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/18.0.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.17
OUI version       : 12.2.0.4.0
Log file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/opatch2019-08-21_13-39-27PM_1.log

Lsinventory Output file location : /u01/app/oracle/product/18.0.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2019-08-21_13-39-27PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: ol7-183.localdomain
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1): 

Oracle Database 18c                                                  18.0.0.0.0
There are 1 products installed in this Oracle Home.


Interim patches (3) :

Patch  29757256     : applied on Wed Aug 21 13:35:43 CST 2019
Unique Patch ID:  22988612
Patch description:  "Database Release Update : 18.7.0.0.190716 (29757256)"
   Created on 26 Jun 2019, 05:59:21 hrs PST8PDT
   Bugs fixed:
     8932139, 9062315, 13554903, 14221306, 20436508, 21095391, 21223848
     21547051, 21744603, 21766220, 21806121, 23003564, 23061453, 23310101
     23761724, 24489904, 24689376, 24737581, 24841671, 24844841, 24903291
     24925863, 24971597, 25035594, 25035599, 25287072, 25293659, 25303284
     25309116, 25348956, 25405687, 25487146, 25591292, 25607397, 25634405
     25644811, 25663488, 25686739, 25726981, 25736428, 25743479, 25756945
     25824236, 25882883, 25890002, 25908728, 25911069, 25929650, 25943740
     25958554, 25986062, 25997810, 26083489, 26115103, 26164661, 26226953
     26237338, 26281476, 26284722, 26297826, 26336101, 26362155, 26399691
     26422277, 26423085, 26427905, 26440169, 26450454, 26476244, 26521043
     26536320, 26595088, 26598422, 26615291, 26617804, 26646549, 26654411
     26694735, 26731697, 26745002, 26785169, 26790514, 26792891, 26818960
     26822620, 26843558, 26843664, 26846077, 26871815, 26883456, 26894737
     26895149, 26898279, 26927998, 26928317, 26933599, 26943004, 26956033
     26960097, 26961415, 26966120, 26966916, 26970175, 26985002, 26986173
     26992964, 27000158, 27005278, 27006120, 27006664, 27016033, 27026401
     27028251, 27030974, 27034688, 27035653, 27036408, 27037839, 27038986
     27041253, 27044575, 27047831, 27053044, 27054231, 27058530, 27060167
     27060859, 27061736, 27066451, 27066519, 27073066, 27075854, 27080874
     27086821, 27090765, 27093423, 27101105, 27101527, 27101652, 27105900
     27106301, 27110878, 27111780, 27112686, 27115422, 27119621, 27122162
     27125872, 27126666, 27128580, 27135647, 27142529, 27143756, 27143882
     27147979, 27150500, 27151826, 27152892, 27153641, 27155549, 27156355
     27160360, 27160922, 27163928, 27164352, 27165231, 27166354, 27169796
     27169888, 27170305, 27179264, 27181521, 27181537, 27181897, 27185188
     27187440, 27189611, 27190851, 27193810, 27197334, 27199245, 27200959
     27202015, 27208795, 27208953, 27210038, 27210263, 27210872, 27214085
     27215007, 27216046, 27216224, 27220937, 27221900, 27222121, 27222626
     27223075, 27224987, 27226913, 27228786, 27229389, 27231051, 27232983
     27233563, 27236052, 27236110, 27236722, 27240246, 27240570, 27241221
     27241247, 27242226, 27242616, 27244337, 27244785, 27249215, 27249531
     27250547, 27251690, 27254851, 27255377, 27256000, 27256488, 27256534
     27256584, 27258578, 27259307, 27259386, 27259983, 27262601, 27262650
     27262798, 27262945, 27262991, 27263276, 27263996, 27266245, 27270197
     27274456, 27274536, 27275136, 27275533, 27275776, 27276231, 27282707
     27283029, 27283960, 27284375, 27284499, 27285244, 27288230, 27288638
     27288894, 27292213, 27293599, 27294480, 27301308, 27301568, 27302594
     27302632, 27302681, 27302695, 27302711, 27302714, 27302730, 27302777
     27302800, 27302960, 27303287, 27303785, 27303938, 27304410, 27304936
     27305318, 27307868, 27308088, 27310092, 27313687, 27314206, 27314390
     27318117, 27318869, 27320576, 27321179, 27321834, 27326204, 27329812
     27330158, 27330161, 27333658, 27333664, 27333693, 27333731, 27334316
     27334648, 27335682, 27338912, 27338946, 27339115, 27339396, 27339483
     27339495, 27341036, 27345190, 27345231, 27345450, 27345498, 27346329
     27346644, 27346709, 27346949, 27347126, 27348081, 27348707, 27349393
     27350267, 27351628, 27352600, 27354783, 27356373, 27357773, 27358241
     27359178, 27359368, 27360126, 27364854, 27364891, 27364916, 27364947
     27365139, 27365702, 27365993, 27367194, 27368850, 27372756, 27375260
     27375542, 27376871, 27378103, 27379233, 27381383, 27381417, 27381498
     27381656, 27384222, 27386467, 27389352, 27392187, 27394086, 27395404
     27395416, 27395794, 27396357, 27396365, 27396377, 27396624, 27396666
     27396672, 27396813, 27397048, 27398080, 27398660, 27400416, 27400598
     27401637, 27404668, 27405242, 27405645, 27405696, 27410279, 27410300
     27410595, 27412805, 27416327, 27416997, 27417186, 27420715, 27421101
     27421733, 27422874, 27423251, 27424405, 27425507, 27425622, 27426363
     27427805, 27430802, 27432062, 27432338, 27432355, 27432826, 27433870
     27434050, 27434193, 27434486, 27434974, 27435537, 27439835, 27441326
     27441980, 27442041, 27444727, 27445330, 27445462, 27445727, 27447452
     27447687, 27448162, 27449814, 27450355, 27450400, 27450783, 27451049
     27451182, 27451187, 27451531, 27452046, 27452760, 27453225, 27454722
     27457666, 27457891, 27458164, 27459909, 27460675, 27462994, 27466597
     27467543, 27468303, 27469245, 27469329, 27471876, 27472969, 27473800
     27479358, 27480784, 27483974, 27484556, 27486253, 27487309, 27487795
     27487919, 27489719, 27493674, 27496224, 27496308, 27496424, 27497950
     27498477, 27501327, 27501413, 27501465, 27502420, 27504190, 27504770
     27505229, 27505603, 27506774, 27507968, 27508985, 27510959, 27511196
     27512439, 27517818, 27518227, 27518310, 27520070, 27520900, 27522245
     27523368, 27523800, 27525909, 27526744, 27532375, 27533819, 27534509
     27537472, 27539757, 27540613, 27541286, 27541468, 27542824, 27544030
     27544973, 27545630, 27547732, 27550341, 27551855, 27554074, 27555481
     27558557, 27558559, 27558861, 27560602, 27560702, 27562488, 27563629
     27563767, 27565906, 27567477, 27570318, 27576342, 27577758, 27578007
     27579353, 27580996, 27585755, 27585800, 27586810, 27586895, 27587672
     27591842, 27592466, 27593389, 27593501, 27593585, 27595973, 27599689
     27599927, 27601118, 27602091, 27602488, 27603841, 27604293, 27607563
     27607805, 27608669, 27610269, 27613080, 27613247, 27613530, 27615608
     27616657, 27617522, 27617978, 27620808, 27623844, 27625274, 27625620
     27629756, 27631506, 27634676, 27634991, 27635508, 27644757, 27645940
     27649707, 27652302, 27654521, 27655217, 27658186, 27658205, 27662528
     27663370, 27664702, 27666312, 27671633, 27679488, 27679664, 27679793
     27679806, 27679961, 27680162, 27680509, 27680669, 27682151, 27686599
     27688036, 27688099, 27688692, 27690513, 27690578, 27691809, 27691920
     27691939, 27692215, 27693416, 27693713, 27694261, 27695063, 27697092
     27698953, 27700466, 27701795, 27704237, 27705761, 27707544, 27709046
     27710072, 27718914, 27719187, 27723002, 27723151, 27726269, 27726780
     27729678, 27732323, 27733415, 27739006, 27740424, 27740844, 27744211
     27745220, 27747869, 27748954, 27751006, 27751755, 27753336, 27756900
     27757567, 27757794, 27757888, 27758972, 27759077, 27759457, 27761402
     27766324, 27767081, 27772093, 27772815, 27773602, 27774320, 27774539
     27779886, 27780562, 27782339, 27783289, 27786772, 27791223, 27793533
     27797290, 27801337, 27803665, 27807441, 27810967, 27812560, 27812593
     27813267, 27815347, 27818871, 27824540, 27824543, 27825241, 27829295
     27832643, 27833369, 27833672, 27834551, 27834984, 27835925, 27839353
     27840386, 27843646, 27846298, 27846499, 27847259, 27849825, 27851757
     27856471, 27861226, 27861452, 27861909, 27869075, 27869339, 27873643
     27876671, 27882176, 27892488, 27896443, 27896458, 27898015, 27900663
     27908644, 27912301, 27918832, 27920184, 27924147, 27926113, 27930478
     27931299, 27934468, 27935348, 27938736, 27940876, 27941110, 27941896
     27945870, 27948050, 27948153, 27950708, 27952762, 27959594, 27960021
     27961746, 27964051, 27965830, 27966472, 27970265, 27971503, 27971575
     27972265, 27975778, 27977039, 27983174, 27984028, 27986817, 27989556
     27989849, 27991970, 27993289, 27994325, 27994333, 27995215, 27995248
     27997875, 27998003, 27999073, 27999597, 27999638, 28000269, 28004853
     28006704, 28018962, 28019283, 28021205, 28022101, 28022847, 28023081
     28023399, 28023482, 28024347, 28026866, 28033429, 28036487, 28045903
     28057267, 28058612, 28059199, 28067846, 28072130, 28072464, 28072567
     28074713, 28085865, 28088762, 28090453, 28091981, 28098865, 28103600
     28103869, 28104361, 28106402, 28108003, 28108898, 28111583, 28120036
     28120951, 28124631, 28129791, 28132287, 28135648, 28165439, 28165545
     28169711, 28174827, 28174951, 28175445, 28180464, 28181021, 28184554
     28184800, 28187706, 28188330, 28189466, 28194173, 28199085, 28201419
     28204443, 28209341, 28210192, 28211734, 28214943, 28215510, 28218832
     28220398, 28223871, 28226179, 28227512, 28229360, 28236305, 28238264
     28242712, 28258608, 28264172, 28271119, 28271693, 28279837, 28281094
     28282606, 28285766, 28290434, 28302049, 28304709, 28305001, 28305362
     28309182, 28312508, 28315031, 28315995, 28319623, 28320117, 28320399
     28321446, 28323201, 28328895, 28329450, 28330714, 28333072, 28338399
     28338999, 28344964, 28350595, 28354603, 28357401, 28361083, 28361221
     28361787, 28365111, 28369092, 28371123, 28378446, 28379065, 28385102
     28390273, 28391582, 28392168, 28392251, 28393678, 28396445, 28403295
     28413955, 28420042, 28420457, 28423598, 28432129, 28434028, 28435825
     28445741, 28448314, 28455212, 28468312, 28475164, 28478676, 28481149
     28481679, 28483184, 28489150, 28492362, 28493478, 28501075, 28502403
     28502773, 28503484, 28504545, 28507324, 28508053, 28508296, 28508557
     28512761, 28513333, 28514693, 28521330, 28527416, 28528349, 28535272
     28544633, 28545134, 28545687, 28547068, 28553468, 28571483, 28572834
     28578164, 28580528, 28584193, 28584217, 28584444, 28587723, 28600233
     28612674, 28614072, 28617631, 28617959, 28621470, 28627255, 28632559
     28636676, 28644549, 28646200, 28670445, 28673203, 28679454, 28680029
     28685371, 28692275, 28695694, 28702188, 28708023, 28710827, 28713840
     28714058, 28728040, 28728272, 28730076, 28742555, 28747182, 28749289
     28752599, 28755011, 28758090, 28758722, 28761812, 28767240, 28770146
     28774416, 28777214, 28781754, 28785022, 28785531, 28803345, 28805612
     28805695, 28809909, 28819640, 28849751, 28852691, 28856060, 28856172
     28878525, 28881723, 28887509, 28891984, 28919145, 28925880, 28938924
     28940179, 28951014, 28951382, 28956908, 28960211, 28986231, 28987454
     28993353, 28993590, 29000190, 29006527, 29015118, 29015706, 29024054
     29027694, 29032276, 29033896, 29037290, 29051702, 29056270, 29123482
     29125374, 29136111, 29139591, 29158680, 29171683, 29177886, 29189889
     29200700, 29203604, 29205918, 29224605, 29230565, 29242017, 29301463
     29314539, 29331209, 29331493, 29339155, 29347981, 29356752, 29364171
     29376346, 29378913, 29379978, 29382784, 29388020, 29388952, 29394749
     29395657, 29405462, 29409149, 29412269, 29429264, 29430524, 29436454
     29437712, 29439522, 29504682, 29511611, 29531541, 29542449, 29616244
     29676089, 29813494

Patch  27923415     : applied on Thu Jul 19 01:41:38 CST 2018
Unique Patch ID:  22239273
Patch description:  "OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)"
   Created on 15 Jul 2018, 10:33:22 hrs PST8PDT
   Bugs fixed:
     27304131, 27539876, 27952586, 27642235, 27636900, 27461740

Patch  28090553     : applied on Thu Jul 19 01:40:01 CST 2018
Unique Patch ID:  22256940
Patch description:  "OCW RELEASE UPDATE 18.3.0.0.0 (28090553)"
   Created on 11 Jul 2018, 19:20:31 hrs PST8PDT
   Bugs fixed:
     12816839, 18701017, 22734786, 23698980, 23840305, 25709124, 25724089
     26299684, 26313403, 26433972, 26527054, 26586174, 26587652, 26647619
     26827699, 26860285, 26882126, 26882316, 26943660, 26996813, 27012915
     27018734, 27032726, 27034318, 27040560, 27080748, 27086406, 27092991
     27098733, 27106915, 27114112, 27121566, 27133637, 27144533, 27153755
     27166715, 27174938, 27174948, 27177551, 27177852, 27182006, 27182064
     27184253, 27204476, 27212837, 27213140, 27220610, 27222423, 27222938
     27238077, 27238258, 27249544, 27252023, 27257509, 27263677, 27265816
     27267992, 27271876, 27274143, 27285557, 27299455, 27300007, 27302415
     27309182, 27314512, 27315159, 27320985, 27334353, 27338838, 27346984
     27358232, 27362190, 27370933, 27377219, 27378959, 27379846, 27379956
     27393421, 27398223, 27399499, 27399762, 27399985, 27401618, 27403244
     27404599, 27426277, 27428790, 27430219, 27430254, 27433163, 27452897
     27458829, 27465480, 27475272, 27481406, 27481765, 27492916, 27496806
     27503318, 27503413, 27508936, 27508984, 27513114, 27519708, 27526362
     27528204, 27532009, 27534289, 27560562, 27560735, 27573154, 27573408
     27574335, 27577122, 27579969, 27581484, 27593587, 27595801, 27600706
     27609819, 27625010, 27625050, 27627992, 27654039, 27657467, 27657920
     27668379, 27682288, 27691717, 27702244, 27703242, 27708711, 27714373
     27725967, 27731346, 27734470, 27735534, 27739957, 27740854, 27747407
     27748321, 27757979, 27766679, 27768034, 27778433, 27782464, 27783059
     27786669, 27786699, 27801774, 27811439, 27839732, 27850736, 27862636
     27864737, 27865439, 27889841, 27896388, 27897639, 27906509, 27931506
     27935826, 27941514, 27957892, 27978668, 27984314, 27993298, 28023410
     28025398, 28032758, 28039471, 28039953, 28045209, 28099592, 28109698
     28174926, 28182503, 28204423, 28240153



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

OPatch succeeded.


启动数据库:

SQL> startup
ORACLE instance started.

Total System Global Area 1543503648 bytes
Fixed Size		    8896288 bytes
Variable Size		  989855744 bytes
Database Buffers	  536870912 bytes
Redo Buffers		    7880704 bytes
Database mounted.
Database opened.

千万别漏了下面这步:

$ cd $ORACLE_HOME/OPatch
$ ./datapatch -verbose
SQL Patching tool version 18.0.0.0.0 Production on Wed Aug 21 13:49:42 2019
Copyright (c) 2012, 2019, Oracle.  All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_7149_2019_08_21_13_49_42/sqlpatch_invocation.log

Connecting to database...OK
Gathering database info...done

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 interim SQL patches:
Interim patch 27923415 (OJVM RELEASE UPDATE: 18.3.0.0.180717 (27923415)):
  Binary registry: Installed
  PDB CDB$ROOT: Applied successfully on 27-JUL-19 01.38.25.986109 PM
  PDB ORCLPDB: Applied successfully on 27-JUL-19 01.50.09.248708 PM
  PDB PDB$SEED: Applied successfully on 27-JUL-19 01.50.09.248708 PM

Current state of release update SQL patches:
  Binary registry:
    18.7.0.0.0 Release_Update 1906241920: Installed
  PDB CDB$ROOT:
    Applied 18.3.0.0.0 Release_Update 1806280943 successfully on 27-JUL-19 01.38.25.905026 PM
  PDB ORCLPDB:
    Applied 18.3.0.0.0 Release_Update 1806280943 successfully on 27-JUL-19 01.50.09.239347 PM
  PDB PDB$SEED:
    Applied 18.3.0.0.0 Release_Update 1806280943 successfully on 27-JUL-19 01.50.09.239347 PM

Adding patches to installation queue and performing prereq checks...done
Installation queue:
  For the following PDBs: CDB$ROOT PDB$SEED ORCLPDB
    No interim patches need to be rolled back
    Patch 29757256 (Database Release Update : 18.7.0.0.190716 (29757256)):
      Apply from 18.3.0.0.0 Release_Update 1806280943 to 18.7.0.0.0 Release_Update 1906241920
    No interim patches need to be applied

Installing patches...
Patch installation complete.  Total patches installed: 3

Validating logfiles...done
Patch 29757256 apply (pdb CDB$ROOT): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/29757256/22988612/29757256_apply_ORCL_CDBROOT_2019Aug21_13_51_04.log (no errors)
Patch 29757256 apply (pdb PDB$SEED): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/29757256/22988612/29757256_apply_ORCL_PDBSEED_2019Aug21_13_55_26.log (no errors)
Patch 29757256 apply (pdb ORCLPDB): SUCCESS
  logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/29757256/22988612/29757256_apply_ORCL_ORCLPDB_2019Aug21_13_55_25.log (no errors)
SQL Patching tool complete on Wed Aug 21 14:00:23 2019
$ echo $?
0

确认版本已更新:

SQL> select * from product_component_version;

PRODUCT
--------------------------------------------------------------------------------
VERSION
--------------------------------------------------------------------------------
VERSION_FULL
--------------------------------------------------------------------------------
STATUS
--------------------------------------------------------------------------------
Oracle Database 18c Enterprise Edition
18.0.0.0.0
18.7.0.0.0
Production


简单来说,安装过程参见补丁目录中的README就好。

参考

  1. https://stackoverflow.com/questions/36812929/how-to-get-oracle-database-version
  2. https://support.oracle.com/epmos/faces/DocContentDisplay?id=756671.1
  3. Master Note For Oracle Database Upgrades and Migrations (文档 ID 1152016.1)
  4. Database Server Upgrade/Downgrade Compatibility Matrix (文档 ID 551141.1)
  5. Release Schedule of Current Database Releases (文档 ID 742060.1)
  6. Release Update Introduction and FAQ (文档 ID 2285040.1)
编程小号
上一篇 2025-04-10 11:46
下一篇 2025-03-31 13:51

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/bian-cheng-ji-chu/100036.html