OPatch安装补丁将Oracle 19.3升级到19.23

前言

本文主要介绍数据库补丁安装,将数据库19.3版本升级到19.23

官方文档

Oracle Database Oracle Database Patch Maintenance, Release 19c and Later Releases
https://docs.oracle.com/en/database/oracle/oracle-database/19/dbptc/index.html

MOS文档

Assistant: Download Reference for Oracle Database/GI Update, Revision, PSU, SPU(CPU), Bundle Patches, Patchsets and Base Releases (Doc ID 2118136.2)
Patch 36233263 - Database Release Update 19.23.0.0.240416

数据库版本

单实例

Oracle数据库升级前版本

19.3

Oracle数据库升级后版本

19.23

OPatch升级前版本

12.2.0.1.17

OPatch升级后版本

12.2.0.1.42

安装补丁条件

1、OPatch 工具版本不低于12.2.0.1.41
You must use the OPatch utility version 12.2.0.1.41 or later to apply this patch
2、MOS文档建议备份ORACLE_HOME目录
[oracle@forest ~]$ tar -czvf ORACLE_HOME_19.tar.gz /u01/app/oracle/product/19.3.0/
3、替换OPatch目录
[oracle@forest ~]$ cd /u01/app/oracle/product/19.3.0/dbhome_1/
[oracle@forest dbhome_1]$ tar -czvf OPatch_19_3.tar.gz OPatch/
[oracle@forest dbhome_1]$ mv OPatch OPatch_19_3
4、原OPatch版本是12.2.0.1.17
[oracle@forest dbhome_1]$ OPatch_19_3/opatch version
OPatch Version: 12.2.0.1.17
OPatch succeeded.
5、解压缩OPatch
[root@forest ~]# unzip p6880880_190000_Linux-x86-64.zip -d /u01/app/oracle/product/19.3.0/dbhome_1/
[root@forest ~]# chown -R oracle:oinstall /u01/app/oracle/product/19.3.0/dbhome_1/OPatch
[oracle@forest dbhome_1]$ ll -hd OPatch
drwxr-x---. 15 oracle oinstall 4.0K Apr 15  2024 OPatch
6、新版本OPatch版本是12.2.0.1.42
OPatch版本是12.2.0.1.42高于12.2.0.1.41,可以使用
[oracle@forest dbhome_1]$ OPatch/opatch version
OPatch Version: 12.2.0.1.42
OPatch succeeded.

补丁安装前检查

1、临时补丁冲突检测与解决
[root@forest ~]# mv p36233263_190000_Linux-x86-64.zip /home/oracle/
[root@forest ~]# chown -R oracle:oinstall /home/oracle/p36233263_190000_Linux-x86-64.zip
[oracle@forest ~]$ unzip p36233263_190000_Linux-x86-64.zip 
[oracle@forest ~]$ cd 36233263/
[oracle@forest 36233263]$ /u01/app/oracle/product/19.3.0/dbhome_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
[oracle@forest 36233263]$ /u01/app/oracle/product/19.3.0/dbhome_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.42
Copyright (c) 2024, Oracle Corporation.  All rights reserved.
PREREQ session
Oracle Home       : /u01/app/oracle/product/19.3.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/19.3.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.42
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0/dbhome_1/cfgtoollogs/opatch/opatch2024-10-18_15-17-05PM_1.log
Invoking prereq "checkconflictagainstohwithdetail"
Prereq "checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.

安装补丁

1、ADG环境主备都需要安装补丁
2、RAC环境可以在线滚动安装补丁
3、单实例环境,需要关闭实例和监听
4、安装补丁
[oracle@forest 36233263]$ /u01/app/oracle/product/19.3.0/dbhome_1/OPatch/opatch apply

安装补丁过程

[oracle@forest 36233263]$ /u01/app/oracle/product/19.3.0/dbhome_1/OPatch/opatch apply
Oracle Interim Patch Installer version 12.2.0.1.42
Copyright (c) 2024, Oracle Corporation.  All rights reserved.
Oracle Home       : /u01/app/oracle/product/19.3.0/dbhome_1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle/product/19.3.0/dbhome_1/oraInst.loc
OPatch version    : 12.2.0.1.42
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19.3.0/dbhome_1/cfgtoollogs/opatch/opatch2024-10-18_15-28-50PM_1.log
Verifying environment and performing prerequisite checks...
OPatch continues with these patches:   36233263  
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/product/19.3.0/dbhome_1')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '36233263' to OH '/u01/app/oracle/product/19.3.0/dbhome_1'
ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.crypto.rsf, 19.0.0.0.0 ] , [ oracle.pg4mq, 19.0.0.0.0 ] , [ oracle.precomp.companion, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.pg4appc, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat,&nb
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值