oracle19.3 RAC升级Oracle19.17

目 录

文档控制 ii

目 录 iii

1. 升级说明 1

2. 升级过程 1

2.1 当前环境检查 1

2.2 检查Opatch版本 1

2.3 验证Oracle inventory有效性 1

2.4 下载RU并上传 2

2.5 下载Opatch工具并上传 2

2.6 备份GI & DB HOME目录 3

2.7 升级Opatch工具 3

2.8 解压patch 3

2.9 opatch冲突检查 4

2.10 OPatch系统空间检查 4

2.11 补丁冲突检测 6

2.12 自动安装补丁 7

2.12.1 停止监听,断开所有外部连接 7

2.12.2 使用opatchauto安装 8

2.12.3 将修改后的SQL文件加载到数据库 9

2.12.4 编译失效对象 9

2.12.5 验证 9

2.12.6 opatchauto问题 10

2.13 手动安装patch 10

2.13.1 1节点停库停集群 10

2.13.2 1节点运行pro root脚本 10

2.13.3 1节点安装grid补丁 11

2.13.4 1节点db安装补丁 15

2.13.5 2节点运行pro root 脚本 22

2.13.6 2节点安装grid补丁 24

2.13.7 2节点安装db补丁 24

2.13.8 操作datapatch实用程序 25

2.13.9 编译失效对象 26

2.13.10 验证 28

升级说明

从MOS上我们可以看到19.6的RU 有GI和DB 2个版本,但从GI Patch的readme上看,GI 的Patch 已经包含了DB HOME和GI HOME的补丁,只需要用root用户执行opatchauto命令打GI的补丁即可。

根据官方手册的说明,对于RU的升级,可以采用滚动升级的方式进行。依次在每个节点执行,不能同时在2个节点执行。 但实际操作中遇到问题时,可采用nonrolling的方式升级RU。

升级过程

当前环境检查

检查软件版本:

[grid@racdb1 ~]$ crsctl query crs softwareversion

Oracle Clusterware version on node [racdb1] is [19.0.0.0.0]

[grid@racdb1 ~]$ crsctl query crs releaseversion

Oracle High Availability Services release version on the local node is [19.0.0.0.0]

检查集群状态:

[grid@racdb1 ~]$ crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

检查各个组件版本:

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch lspatches

29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

29517247;ACFS RELEASE UPDATE 19.3.0.0.0 (29517247)

29517242;Database Release Update : 19.3.0.0.190416 (29517242)

29401763;TOMCAT RELEASE UPDATE 19.0.0.0.0 (29401763)

OPatch succeeded.

检查Opatch版本

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch version

OPatch Version: 12.2.0.1.17

OPatch succeeded.

验证Oracle inventory有效性

GI HOME 和DB HOME 都需要验证,分别使用grid和oracle用户执行如下命令,确保返回SUCCESS:

grid用户

[grid@racdb1 ~]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME

Oracle Interim Patch Installer version 12.2.0.1.17

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.17

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-16_17-08-34PM_1.log

Lsinventory Output file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2022-11-16_17-08-3

4PM.txt

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

Local Machine Information::

Hostname: racdb1

ARU platform id: 226

ARU platform description:: Linux x86-64

……

OPatch succeeded.

Oracle 用户

[oracle@racdb1 ~]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME

Oracle Interim Patch Installer version 12.2.0.1.17

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/19.3.0/db_1

Central Inventory : /u01/app/oraInventory

from : /u01/app/oracle/product/19.3.0/db_1/oraInst.loc

OPatch version : 12.2.0.1.17

OUI version : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-16_17-10-44PM_1.log

Lsinventory Output file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory202

2-11-16_17-10-44PM.txt

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

Local Machine Information::

Hostname: racdb1

ARU platform id: 226

ARU platform description:: Linux x86-64

……..

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

OPatch succeeded.

下载RU并上传

Quick Reference to Patch Numbers for Database/GI PSU, SPU(CPU), Bundle Patches and Patchsets (文档 ID 1454618.1)

有权限的用户可以登录MOS后搜文档ID号即可。

两个节点均上传。

p34416665_191700_gi_Linux-x86-64.zip

下载Opatch工具并上传

通过查看补丁的readme,You must use the OPatch utility version 12.2.0.1.32 or later to apply this patch.说明Opatch工具版本必须高于12.2.0.1.32

有权限的用户可以登录MOS后搜My Oracle Support note [6880880](https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=6880880) 即可

p6880880_190000_Linux-x86-64.zip

一定要下载对应版本的Opatch工具。

如果不升级则会引发BUG

12c opatchauto: Prerequisite check “CheckApplicable” failed (Doc ID 1937982.1)

备份GI & DB HOME目录

要求GI & DB HOME目录剩余空间必须大于10G.

两个节点均要备份。

备份GI HOME

[root@racdb1 soft]# cd /u01/app/19.3.0/

[root@racdb1 19.3.0]# tar zcvf /backup/gihome1.tar.gz grid/

[root@racdb2 soft]# cd /u01/app/19.3.0/

[root@racdb2 19.3.0]# tar zcvf /backup/gihome2.tar.gz grid/

备份DB HOME

[root@racdb1 19.3.0]# cd /u01/app/oracle/product/19.3.0/

[root@racdb1 19.3.0]# tar zcvf /backup/dbhome1.tar.gz db_1/

[root@racdb2 19.3.0]# cd /u01/app/oracle/product/19.3.0/

[root@racdb2 19.3.0]# tar zcvf /backup/dbhome2.tar.gz db_1/

升级Opatch工具

GI & DB HOME目录下的Opatch工具均要升级

You must use the OPatch utility version 12.2.0.1.32 or later to apply this patch.

GI home

[root@racdb1 grid]# cd /u01/app/19.3.0/grid

[root@racdb1 grid]# rm -rf OPatch/

[root@racdb1 grid]# unzip /soft/p6880880_190000_Linux-x86-64.zip -d ./

[root@racdb1 grid]# chown -R grid.oinstall OPatch/

[root@racdb1 grid]# cd OPatch/

[root@racdb1 OPatch]# ./opatch version

OPatch Version: 12.2.0.1.33

OPatch succeeded.

DB home

[root@racdb1 OPatch]# cd /u01/app/oracle/product/19.3.0/db_1/

[root@racdb1 db_1]# rm -rf OPatch/

[root@racdb1 db_1]# unzip /soft/p6880880_190000_Linux-x86-64.zip -d ./

[root@racdb1 db_1]# chown -R oracle.oinstall OPatch/

[root@racdb1 db_1]# cd OPatch/

[root@racdb1 OPatch]# ./opatch version

OPatch Version: 12.2.0.1.33

OPatch succeeded.

解压patch

解压补丁目录必须为空,不能为/tmp。此外,该目录应该具有OINSTALL组的读权限。

补丁readme中说明:GI版本更新19.17.0.0.221018包含了Oracle Grid Infrastructure home和Oracle Database home的更新,可以以滚动的方式应用。

因此赋权给grid用户解压即可。

[grid@racdb1 soft]$ unzip p34416665_191700_gi_Linux-x86-64.zip -d /soft

[grid@racdb1 soft]$ ll /soft/

total 8483808

drwxr-x--- 8 grid oinstall 159 Oct 17 06:55 34416665

opatch冲突检查

grid用户执行

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34419443

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34444834

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34428761

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34580338

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/33575402

正常输出:

Oracle Interim Patch Installer version 12.2.0.1.33Copyright (c) 2022, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-16_18-06-18PM_1.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

Oracle用户执行

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34419443

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34444834

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34428761

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/34580338

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /soft/34416665/33575402

正常输出:

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/oracle/product/19.3.0/db_1

Central Inventory : /u01/app/oraInventory

from : /u01/app/oracle/product/19.3.0/db_1/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-16_18-11-03P

M_1.log

Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" passed.

OPatch succeeded.

OPatch系统空间检查

grid用户

创建patch_list_gihome.txt文件,包括如下内容

[grid@racdb1 soft]$ cat /soft/patch_list_gihome.txt

/soft/34416665/34419443

/soft/34416665/34444834

/soft/34416665/34428761

/soft/34416665/34580338

/soft/34416665/33575402

运行OPatch命令检查Grid Infrastructure主目录中是否有足够的可用空间

/u01/app/19.3.0/grid/OPatch/opatch prereq CheckSystemSpace -phBaseFile /soft/patch_list_gihome.txt

正常输出

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-16_18-20-08PM_1.log

Invoking prereq "checksystemspace"

Prereq "checkSystemSpace" passed.

OPatch succeeded.

Oracle 用户

创建文件 /soft/patch_list_dbhome.txt,并包括如下内容

[grid@racdb1 soft]$ cat patch_list_dbhome.txt

/soft/34416665/34419443

/soft/34416665/34444834

运行OPatch命令检查Oracle主目录是否有足够的可用空间。

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch prereq CheckSystemSpace -phBaseFile /soft/patch_list_dbhome.txt

正常输出

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

PREREQ session

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-16_18-25-26PM_1.log

Invoking prereq "checksystemspace"

Prereq "checkSystemSpace" passed.

OPatch succeeded.

问题

1.如果OPatch报告preeq“checkSystemSpace”失败。,然后清理系统空间,因为所需的空间数量不可用。

2.如果OPatch报告preeq "checkSystemSpace"通过。,则无需采取任何行动。继续安装补丁。

补丁冲突检测

确定Oracle主目录中是否存在与补丁冲突的一次性补丁,root用户执行。

[root@racdb1 soft]# /u01/app/19.3.0/grid/OPatch/opatchauto apply /soft/34416665 -analyze

正常输出:

OPatchauto session is initiated at Wed Nov 16 18:36:51 2022

System initialization log file is /u01/app/19.3.0/grid/cfgtoollogs/opatchautodb/systemconfig2022-11-1

6_06-36-58PM.log.

Session log file is /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/opatchauto2022-11-16_06-37-35PM.log

The id for this session is 7DZ7

Executing OPatch prereq operations to verify patch applicability on home /u01/app/19.3.0/grid

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.3

.0/db_1Patch applicability verified successfully on home /u01/app/19.3.0/grid

Patch applicability verified successfully on home /u01/app/oracle/product/19.3.0/db_1

Executing patch validation checks on home /u01/app/19.3.0/grid

Patch validation checks successfully completed on home /u01/app/19.3.0/grid

Executing patch validation checks on home /u01/app/oracle/product/19.3.0/db_1

Patch validation checks successfully completed on home /u01/app/oracle/product/19.3.0/db_1

Verifying SQL patch applicability on home /u01/app/oracle/product/19.3.0/db_1

SQL patch applicability verified successfully on home /u01/app/oracle/product/19.3.0/db_1

OPatchAuto successful.

--------------------------------Summary--------------------------------

Analysis for applying patches has completed successfully:

Host:racdb1

CRS Home:/u01/app/19.3.0/grid

Version:19.0.0.0.0

==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /soft/34416665/34444834

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28PM_1.log

Patch: /soft/34416665/34428761

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28PM_1.log

Patch: /soft/34416665/33575402

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28PM_1.log

Patch: /soft/34416665/34580338

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28PM_1.log

Patch: /soft/34416665/34419443

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28PM_1.log

Host:racdb1

RAC Home:/u01/app/oracle/product/19.3.0/db_1

Version:19.0.0.0.0

==Following patches were SKIPPED:

Patch: /soft/34416665/34428761

Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /soft/34416665/33575402

Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /soft/34416665/34580338

Reason: This patch is not applicable to this specified target type - "rac_database"

==Following patches were SUCCESSFULLY analyzed to be applied:

Patch: /soft/34416665/34444834

Log: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28

PM_1.log

Patch: /soft/34416665/34419443

Log: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-16_18-38-28

PM_1.log

OPatchauto session completed at Wed Nov 16 18:43:43 2022

Time taken to complete the session 6 minutes, 52 seconds

[root@racdb1 soft]#

自动安装补丁

停止监听,断开所有外部连接

停止监听

[grid@racdb1 ~]$ lsnrctl stop

LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 16-NOV-2022 18:50:36

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))

The command completed successfully

断开外部链接

ps -ef|grep ora|grep -v grep|grep -v ora_|grep LOCAL=NO|awk '{print $2}'|xargs kill -9

使用opatchauto安装

root用户执行,一个节点执行完成后再执行下一个节点。

[root@racdb1 soft]# export PATH=$PATH:/u01/app/19.3.0/grid/OPatch

[root@racdb1 soft]# opatchauto apply /soft/34416665/

正常输出:

OPatchAuto successful.

--------------------------------Summary--------------------------------

Patching is completed successfully. Please find the summary as follows:

Host:racdb2

RAC Home:/u01/app/oracle/product/19.3.0/db_1

Version:19.0.0.0.0

Summary:

==Following patches were SKIPPED:

Patch: /soft/34416665/34428761

Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /soft/34416665/33575402

Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /soft/34416665/34580338

Reason: This patch is not applicable to this specified target type - "rac_database"

==Following patches were SUCCESSFULLY applied:

Patch: /soft/34416665/34419443

Log: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-21-39

PM_1.log

Patch: /soft/34416665/34444834

Log: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-21-39

PM_1.log

Host:racdb2

CRS Home:/u01/app/19.3.0/grid

Version:19.0.0.0.0

Summary:

==Following patches were SUCCESSFULLY applied:

Patch: /soft/34416665/33575402

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-33-51PM_1.log

Patch: /soft/34416665/34419443

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-33-51PM_1.log

Patch: /soft/34416665/34428761

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-33-51PM_1.log

Patch: /soft/34416665/34444834

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-33-51PM_1.log

Patch: /soft/34416665/34580338

Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2022-11-22_23-33-51PM_1.log

OPatchauto session completed at Wed Nov 23 01:35:48 2022

Time taken to complete the session 154 minutes, 12 seconds

将修改后的SQL文件加载到数据库

[oracle@racdb1 ~]$ cd $ORACLE_HOME

[oracle@racdb1 db_1]$ cd OPatch/

[oracle@racdb1 OPatch]$ ./datapatch -verbose

SQL Patching tool version 19.17.0.0.0 Production on Wed Nov 23 20:01:31 2022

Copyright (c) 2012, 2022, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_13163_2022_11_23_20_01_31

/sqlpatch_invocation.log

Connecting to database...OK

Gathering database info...done

Bootstrapping registry and package to current versions...done

Determining current state...done

Current state of interim SQL patches:

No interim patches found

Current state of release update SQL patches:

Binary registry:

19.17.0.0.0 Release_Update 220924224051: Installed

SQL registry:

Applied 19.17.0.0.0 Release_Update 220924224051 successfully on 23-NOV-22 01.35.36.485193 AM

Adding patches to installation queue and performing prereq checks...done

Installation queue:

No interim patches need to be rolled back

No release update patches need to be installed

No interim patches need to be applied

SQL Patching tool complete on Wed Nov 23 20:03:14 2022

编译失效对象

cd $ORACLE_HOME/rdbms/admin

sqlplus /nolog

SQL> CONNECT / AS SYSDBA

SQL> @utlrp.sql

验证

检查各个组件版本:

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch lspatches

34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)

34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)

34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)

34419443;Database Release Update : 19.17.0.0.221018 (34419443)

33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)

OPatch succeeded.

opatchauto问题

在执行opatchauto过程中会出现以下报错:

Performing postpatch operations on CRS - starting CRS service on home /u01/app/19.3.0/grid

Postpatch operation log file location: /u01/app/grid/crsdata/racdb1/crsconfig/crs_postpatch_apply_inplace_racdb1_2022-11-11_01-31-05AM.log

Failed to start CRS service on home /u01/app/19.3.0/grid

Execution of [GIStartupAction] patch action failed, check log for more details. Failures:

Patch Target : racdb1->/u01/app/19.3.0/grid Type[crs]

Details: [

---------------------------Patching Failed---------------------------------

Command execution failed during patching in home: /u01/app/19.3.0/grid, host: racdb1.

Command failed: /u01/app/19.3.0/grid/perl/bin/perl -I/u01/app/19.3.0/grid/perl/lib -I/u01/app/19.3.0

/grid/opatchautocfg/db/dbtmp/bootstrap_racdb1/patchwork/crs/install -I/u01/app/19.3.0/grid/opatchautocfg/db/dbtmp/bootstrap_racdb1/patchwork/xag /u01/app/19.3.0/grid/opatchautocfg/db/dbtmp/bootstrap_racdb1/patchwork/crs/install/rootcrs.pl -postpatchCommand failure output:

Using configuration parameter file: /u01/app/19.3.0/grid/opatchautocfg/db/dbtmp/bootstrap_racdb1/patc

hwork/crs/install/crsconfig_paramsThe log of current session can be found at:

/u01/app/grid/crsdata/racdb1/crsconfig/crs_postpatch_apply_inplace_racdb1_2022-11-11_01-31-05AM.log

2022/11/11 01:31:37 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'

ORA-15138: cluster rolling patch incomplete

ORA-15139: patch level of ASM instances differ in cluster

CRS-4698: Error code 2 in retrieving the patch levelCRS-1164: There was an error resetting Oracle ASM

rolling patch mode.CRS-4000: Command Stop failed, or completed with errors.

2022/11/11 01:39:02 CLSRSC-431: Failed to stop rolling patch mode

After fixing the cause of failure Run opatchauto resume

]

OPATCHAUTO-68061: The orchestration engine failed.

OPATCHAUTO-68061: The orchestration engine failed with return code 1

OPATCHAUTO-68061: Check the log for more details.

OPatchAuto failed.

OPatchauto session completed at Fri Nov 11 01:39:26 2022

Time taken to complete the session 57 minutes, 59 seconds

opatchauto failed with error code 42

解决办法:

直接在2节点执行opatchauto apply操作,2节点成功后,返回1节点重新执行opatchauto resume。

手动安装patch

1节点停库停集群

su – root

/u01/app/19.3.0/grid/bin/crsctl stop crs

1节点运行pro root脚本

root执行

/u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

标准输出:

[root@racdb1 soft]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb1/crsconfig/crs_prepatch_racdb1_2022-11-23_11-45-08PM.log

Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMA

L]. The cluster active patch level is [3007461856].2022/11/23 23:46:00 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.

2022/11/23 23:47:42 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.

2022/11/23 23:47:48 CLSRSC-347: Successfully unlock /u01/app/19.3.0/grid

2022/11/23 23:47:53 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.

1节点安装grid补丁

grid用户执行

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34419443

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34444834

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34428761

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34580338

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/33575402

标准输出

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34419443

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-23_23-53-17PM_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34419443

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/19.3.0/grid')

Is the local system ready for patching? [y|n]

Y

Backing up files...

Applying interim patch '34419443' to OH '/u01/app/19.3.0/grid'

ApplySession: Optional component(s) [ oracle.ctx, 19.0.0.0.0 ] , [ oracle.dbdev, 19.0.0.0.0 ] , [ ora

cle.marvel, 19.0.0.0.0 ] , [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.odbc.ic, 19.0.0.0.0 ] , [ oracle.precomp.common.core, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.oci, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.sdo, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.xdk, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.oraolap.api, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.rdbms.scheduler, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.mgw.common, 19.0.0.0.0 ] , [ oracle.ctx.atg, 19.0.0.0.0 ] , [ oracle.xdk.xquery, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.hs_common, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.rdbms.drdaas, 19.0.0.0.0 ] , [ oracle.rdbms.dv, 19.0.0.0.0 ] , [ oracle.rdbms.hsodbc, 19.0.0.0.0 ] , [ oracle.rdbms.lbac, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.oraolap, 19.0.0.0.0 ] , [ oracle.odbc, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.precomp.common, 19.0.0.0.0 ] , [ oracle.precomp.lang, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] not present in the Oracle Home or a higher version is found.

Patching component oracle.ordim.jai, 19.0.0.0.0...

Patching component oracle.bali.jewt, 11.1.1.6.0...

Patching component oracle.bali.ewt, 11.1.1.6.0...

Patching component oracle.help.ohj, 11.1.1.7.0...

Patching component oracle.perlint, 5.28.1.0.0...

Patching component oracle.rdbms.locator, 19.0.0.0.0...

Patching component oracle.perlint.expat, 2.0.1.0.4...

Patching component oracle.rdbms.rsf, 19.0.0.0.0...

…..

Patching component oracle.network.listener, 19.0.0.0.0...

Patching component oracle.ovm, 19.0.0.0.0...

Patching component oracle.jdk, 1.8.0.201.0...

Patch 34419443 successfully applied.

Sub-set patch [29517242] has become inactive due to the application of a super-set patch [34419443].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-23_23-53-17PM_1.log

OPatch succeeded.

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/3441

6665/34444834Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-05-23AM_1.log

Verifying environment and performing prerequisite checks...

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

Start OOP by Prereq process.

Launch OOP...

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-06-22AM_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34444834

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/19.3.0/grid')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '34444834' to OH '/u01/app/19.3.0/grid'

ApplySession: Optional component(s) [ oracle.has.db.cvu, 19.0.0.0.0 ] not present in the Oracle Home

or a higher version is found.

Patching component oracle.rdbms, 19.0.0.0.0...

Patching component oracle.has.common, 19.0.0.0.0...

Patching component oracle.has.crs, 19.0.0.0.0...

Patching component oracle.has.cvu, 19.0.0.0.0...

Patching component oracle.has.rsf, 19.0.0.0.0...

Patching component oracle.xag, 19.0.0.0.0...

Patching component oracle.has.db, 19.0.0.0.0...

Patching component oracle.rhp.crs, 19.0.0.0.0...

Patching component oracle.rhp.common, 19.0.0.0.0...

Patching component oracle.has.common.cvu, 19.0.0.0.0...

Patching component oracle.has.crs.cvu, 19.0.0.0.0...

Patching component oracle.rhp.db, 19.0.0.0.0...

Patch 34444834 successfully applied.

Sub-set patch [29585399] has become inactive due to the application of a super-set patch [34444834].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-06-22AM_1.log

OPatch succeeded.

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34428761

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-10-04AM_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34428761

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/19.3.0/grid')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '34428761' to OH '/u01/app/19.3.0/grid'

Patching component oracle.usm, 19.0.0.0.0...

Patch 34428761 successfully applied.

Sub-set patch [29517247] has become inactive due to the application of a super-set patch [34428761].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-10-04AM_1.log

OPatch succeeded.

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/3441

6665/34580338Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-14-07AM_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34580338

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/19.3.0/grid')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '34580338' to OH '/u01/app/19.3.0/grid'

Patching component oracle.tomcat.crs, 19.0.0.0.0...

Patch 34580338 successfully applied.

Sub-set patch [29401763] has become inactive due to the application of a super-set patch [34580338].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-14-07AM_1.log

OPatch succeeded.

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/33575402

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/19.3.0/grid

Central Inventory : /u01/app/oraInventory

from : /u01/app/19.3.0/grid/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-16-57AM_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 33575402

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/19.3.0/grid')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '33575402' to OH '/u01/app/19.3.0/grid'

Patching component oracle.wlm.dbwlm, 19.0.0.0.0...

Patch 33575402 successfully applied.

Log file location: /u01/app/19.3.0/grid/cfgtoollogs/opatch/opatch2022-11-24_00-16-57AM_1.log

OPatch succeeded.

1节点db安装补丁

Oracle用户执行

1.预备脚本

[oracle@racdb1 ~]$ /soft/34416665/34419443/custom/scripts/prepatch.sh -dbhome /u01/app/oracle/product/19.3.0/db_1

2.安装补丁

[oracle@racdb1 ~]$ /u01/app/oracle/product/19.3.0/db_1/OPatch/opatch apply -oh /u01/app/oracle/product/19.3.0/db_1 -local /soft/34416665/34419443

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/19.3.0/db_1

Central Inventory : /u01/app/oraInventory

from : /u01/app/oracle/product/19.3.0/db_1/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-24_00-35-06A

M_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34419443

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/db_1')

Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying interim patch '34419443' to OH '/u01/app/oracle/product/19.3.0/db_1'

ApplySession: Optional component(s) [ oracle.network.gsm, 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.options.olap.api, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] not present in the Oracle Home or a higher version is found.

Patching component oracle.ordim.jai, 19.0.0.0.0...

Patching component oracle.bali.jewt, 11.1.1.6.0...

Patching component oracle.bali.ewt, 11.1.1.6.0...

Patching component oracle.help.ohj, 11.1.1.7.0...

Patching component oracle.perlint, 5.28.1.0.0...

Patching component oracle.rdbms.locator, 19.0.0.0.0...

Patching component oracle.perlint.expat, 2.0.1.0.4...

Patching component oracle.rdbms.rsf, 19.0.0.0.0...

Patching component oracle.rdbms.util, 19.0.0.0.0...

Patching component oracle.rdbms, 19.0.0.0.0...

Patching component oracle.assistants.acf, 19.0.0.0.0...

Patching component oracle.assistants.deconfig, 19.0.0.0.0...

Patching component oracle.assistants.server, 19.0.0.0.0...

Patching component oracle.blaslapack, 19.0.0.0.0...

Patching component oracle.buildtools.rsf, 19.0.0.0.0...

Patching component oracle.ctx, 19.0.0.0.0...

Patching component oracle.dbdev, 19.0.0.0.0...

Patching component oracle.dbjava.ic, 19.0.0.0.0...

Patching component oracle.dbjava.jdbc, 19.0.0.0.0...

Patching component oracle.dbjava.ucp, 19.0.0.0.0...

Patching component oracle.duma, 19.0.0.0.0...

Patching component oracle.javavm.client, 19.0.0.0.0...

Patching component oracle.ldap.owm, 19.0.0.0.0...

Patching component oracle.ldap.rsf, 19.0.0.0.0...

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

Patching component oracle.marvel, 19.0.0.0.0...

Patching component oracle.network.rsf, 19.0.0.0.0...

Patching component oracle.odbc.ic, 19.0.0.0.0...

Patching component oracle.ons, 19.0.0.0.0...

Patching component oracle.ons.ic, 19.0.0.0.0...

Patching component oracle.oracore.rsf, 19.0.0.0.0...

Patching component oracle.precomp.common.core, 19.0.0.0.0...

Patching component oracle.rdbms.crs, 19.0.0.0.0...

Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...

Patching component oracle.rdbms.deconfig, 19.0.0.0.0...

Patching component oracle.rdbms.oci, 19.0.0.0.0...

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

Patching component oracle.rhp.db, 19.0.0.0.0...

Patching component oracle.sdo, 19.0.0.0.0...

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

Patching component oracle.sqlplus, 19.0.0.0.0...

Patching component oracle.sqlplus.ic, 19.0.0.0.0...

Patching component oracle.wwg.plsql, 19.0.0.0.0...

Patching component oracle.ldap.ssl, 19.0.0.0.0...

Patching component oracle.network.client, 19.0.0.0.0...

Patching component oracle.xdk, 19.0.0.0.0...

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

Patching component oracle.ldap.client, 19.0.0.0.0...

Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...

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

Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...

Patching component oracle.oraolap.api, 19.0.0.0.0...

Patching component oracle.rdbms.scheduler, 19.0.0.0.0...

Patching component oracle.mgw.common, 19.0.0.0.0...

Patching component oracle.ctx.rsf, 19.0.0.0.0...

Patching component oracle.precomp.rsf, 19.0.0.0.0...

Patching component oracle.ctx.atg, 19.0.0.0.0...

Patching component oracle.sdo.locator, 19.0.0.0.0...

Patching component oracle.xdk.xquery, 19.0.0.0.0...

Patching component oracle.xdk.rsf, 19.0.0.0.0...

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

Patching component oracle.install.deinstalltool, 19.0.0.0.0...

Patching component oracle.javavm.server, 19.0.0.0.0...

Patching component oracle.rdbms.hs_common, 19.0.0.0.0...

Patching component oracle.rdbms.drdaas, 19.0.0.0.0...

Patching component oracle.rdbms.dv, 19.0.0.0.0...

Patching component oracle.dbtoolslistener, 19.0.0.0.0...

Patching component oracle.rdbms.rman, 19.0.0.0.0...

Patching component oracle.rdbms.hsodbc, 19.0.0.0.0...

Patching component oracle.rdbms.lbac, 19.0.0.0.0...

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

Patching component oracle.oraolap, 19.0.0.0.0...

Patching component oracle.network.listener, 19.0.0.0.0...

Patching component oracle.odbc, 19.0.0.0.0...

Patching component oracle.ovm, 19.0.0.0.0...

Patching component oracle.precomp.common, 19.0.0.0.0...

Patching component oracle.precomp.lang, 19.0.0.0.0...

Patching component oracle.jdk, 1.8.0.201.0...

Patch 34419443 successfully applied.

Sub-set patch [29517242] has become inactive due to the application of a super-set patch [34419443].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-24_00-35-06AM

_1.log

OPatch succeeded.

[oracle@racdb1 ~]$ /u01/app/oracle/product/19.3.0/db_1/OPatch/opatch apply -oh /u01/app/oracle/produc

t/19.3.0/db_1 -local /soft/34416665/34444834 Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/19.3.0/db_1

Central Inventory : /u01/app/oraInventory

from : /u01/app/oracle/product/19.3.0/db_1/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-24_00-51-36A

M_1.log

Verifying environment and performing prerequisite checks...

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

Start OOP by Prereq process.

Launch OOP...

Oracle Interim Patch Installer version 12.2.0.1.33

Copyright (c) 2022, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/oracle/product/19.3.0/db_1

Central Inventory : /u01/app/oraInventory

from : /u01/app/oracle/product/19.3.0/db_1/oraInst.loc

OPatch version : 12.2.0.1.33

OUI version : 12.2.0.7.0

Log file location : /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-24_00-52-45A

M_1.log

Verifying environment and performing prerequisite checks...

OPatch continues with these patches: 34444834

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/db_1')

Is the local system ready for patching? [y|n]

Y

User Responded with: Y

Backing up files...

Applying interim patch '34444834' to OH '/u01/app/oracle/product/19.3.0/db_1'

ApplySession: Optional component(s) [ oracle.has.crs, 19.0.0.0.0 ] , [ oracle.has.cvu, 19.0.0.0.0 ] ,

[ oracle.xag, 19.0.0.0.0 ] , [ oracle.rhp.crs, 19.0.0.0.0 ] , [ oracle.has.crs.cvu, 19.0.0.0.0 ] not present in the Oracle Home or a higher version is found.

Patching component oracle.rdbms, 19.0.0.0.0...

Patching component oracle.has.common, 19.0.0.0.0...

Patching component oracle.has.rsf, 19.0.0.0.0...

Patching component oracle.has.db, 19.0.0.0.0...

Patching component oracle.rhp.common, 19.0.0.0.0...

Patching component oracle.has.common.cvu, 19.0.0.0.0...

Patching component oracle.has.db.cvu, 19.0.0.0.0...

Patching component oracle.rhp.db, 19.0.0.0.0...

Patch 34444834 successfully applied.

Sub-set patch [29585399] has become inactive due to the application of a super-set patch [34444834].

Please refer to Doc ID 2161861.1 for any possible further required actions.

Log file location: /u01/app/oracle/product/19.3.0/db_1/cfgtoollogs/opatch/opatch2022-11-24_00-52-45AM

_1.log

OPatch succeeded.

oracle执行发送补丁信息脚本

/soft/34416665/34419443/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/19.3.0/db_1

执行会报错:

[oracle@racdb2 ~]$ /soft/34416665/34444834/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/19.3.0/db_1

Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

awk: cmd. line:1: fatal: cannot open file `/u01/app/oracle/product/19.3.0/db_1/install/params.ora' fo

r reading (No such file or directory)Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

awk: cmd. line:1: fatal: cannot open file `/u01/app/oracle/product/19.3.0/db_1/install/params.ora'
 fo

r reading (No such file or directory)Failed to generate a temp paramfile for use

1

原因:是没有params.ora这个文件

通过查看postpatch.sh脚本读取params.ora这个文件的位置

ORA_ENV_FILE=$OH/install/params.ora

ORA_SCRIPT_FILE=$ALL_SCRIPTS

verifyparamfile || { $ECHO $?; exit 1; }

getparamfile || { $ECHO $?; exit 1; }

for i in $ORA_SCRIPT_FILE;

do

SCRIPT_FILE=$OH/$i

BASENAME=`$BNAME $SCRIPT_FILE`

SBSNAME="$OH/crs/sbs/$BASENAME.sbs"

if [ -f $SBSNAME ]; then

$ECHO "Found uninstantiated $SBSNAME file, copying to $SCRIPT_FILE"

$CP $SBSNAME $SCRIPT_FILE

fi

if [ -f $SCRIPT_FILE ];

then

## Make sure that the file is really script file.

$SH -n $SCRIPT_FILE > $NULL 2>&1

STATUS1=$?

LC_ALL=C $FILE $SCRIPT_FILE | $GREP -wi "text" > $NULL 2>&1

STATUS2=$?

if [ "$STATUS1" != "0" ] && [ "$STATUS2" != "0" ]; then

$ECHO "Skipping non-text file $SCRIPT_FILE"

continue

fi

$ECHO "Parsing file $SCRIPT_FILE"

$CP $SCRIPT_FILE $SCRIPT_FILE.$$

for line in `$CAT $ORA_ENV_FILE.$$`;

do

varName=`$ECHO $line | $AWK -F"=" '{ print $1 }'`

varValue=`$ECHO $line | $AWK -F"=" '{ print $2 }'`

varValue=`$ECHO "$varValue" | $SED -e 's|\/|\\\/|g'`

$CAT $SCRIPT_FILE.$$ | $SED -e s/%$varName%/$varValue/g > /tmp/$$

$RMF $SCRIPT_FILE.$$

$CP /tmp/$$ $SCRIPT_FILE.$$

done

$RMF /tmp/$$

此参数文件里面的信息应该是oraenv的输出信息。因此编辑文件写入相关信息即可。

Vim /u01/app/oracle/product/19.3.0/db_1/install/params.ora

export ORACLE_SID=racdb1

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/19.3.0/db_1

重新执行后正常输出:

[oracle@racdb2 install]$ /soft/34416665/34444834/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/

product/19.3.0/db_1Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

Found uninstantiated /u01/app/oracle/product/19.3.0/db_1/crs/sbs/srvctl.sbs file, copying to /u01/app

/oracle/product/19.3.0/db_1/bin/srvctlParsing file /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/diskmon.bin

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/lsnodes

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/osdbagrp

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/rawutl

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/srvm/admin/ractrans

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/srvm/admin/getcrshome

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/crsdiag.pl

Postpatch completed successfully

root执行发送脚本,此时停止2节点集群和数据库

/u01/app/19.3.0/grid/rdbms/install/rootadd_rdbms.sh

/u01/app/19.3.0/grid/crs/install/rootcrs.sh -postpatch

标准输出:

[root@racdb1 soft]# /u01/app/19.3.0/grid/rdbms/install/rootadd_rdbms.sh

[root@racdb1 soft]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -postpatch

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb1/crsconfig/crs_postpatch_apply_inplace_racdb1_2022-11-24_11-42-47PM.log

Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMA

L]. The cluster active patch level is [3007461856].2022/11/24 23:50:10 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer

(TFA) Collector.2022/11/24 23:50:27 CLSRSC-672: Post-patch steps for patching GI home successfully completed.

[root@racdb1 soft]#

2节点运行pro root 脚本

1.首先执行:

chmod 664 /u01/app/oraInventory/ContentsXML/oui-patch.xml

报错:

[root@racdb2 soft]# chmod 664 /u01/app/oraInventory/ContentsXML/oui-patch.xml

chmod: cannot access ‘/u01/app/oraInventory/ContentsXML/oui-patch.xml’: No such file or directory

解决办法:

从1节点scp至2节点

scp oui-patch.xml racdb2:/u01/app/oraInventory/ContentsXML/

2.root执行

/u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

报错1

[root@racdb2 soft]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb2/crsconfig/crs_prepatch_racdb2_2022-11-24_11-56-31PM.log

CRS-4123: Starting Oracle High Availability Services-managed resources

CRS-2672: Attempting to start 'ora.mdnsd' on 'racdb2'

CRS-2672: Attempting to start 'ora.evmd' on 'racdb2'

CRS-2676: Start of 'ora.mdnsd' on 'racdb2' succeeded

CRS-2676: Start of 'ora.evmd' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'racdb2'

CRS-2676: Start of 'ora.gpnpd' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'racdb2'

CRS-2676: Start of 'ora.gipcd' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.crf' on 'racdb2'

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'racdb2'

CRS-2676: Start of 'ora.cssdmonitor' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'racdb2'

CRS-2672: Attempting to start 'ora.diskmon' on 'racdb2'

CRS-2676: Start of 'ora.diskmon' on 'racdb2' succeeded

CRS-2676: Start of 'ora.crf' on 'racdb2' succeeded

CRS-2676: Start of 'ora.cssd' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'racdb2'

CRS-2672: Attempting to start 'ora.ctssd' on 'racdb2'

CRS-2676: Start of 'ora.ctssd' on 'racdb2' succeeded

CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'racdb2'

CRS-2676: Start of 'ora.asm' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.storage' on 'racdb2'

CRS-2676: Start of 'ora.storage' on 'racdb2' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'racdb2'

CRS-2676: Start of 'ora.crsd' on 'racdb2' succeeded

Cluster registry server error. Server error stack -

PROC-00053: The configured patch level, release patch level and the patch level on the other active c

luster nodes are not all the same.- end of server error stackCRS-2883: Resource 'ora.crsd' failed during Clusterware stack start.

CRS-4406: Oracle High Availability Services synchronous start failed.

CRS-41053: checking Oracle Grid Infrastructure for file permission issues

PRVH-0116 : Path "/u01/app/19.3.0/grid/crs/install/cmdllroot.sh" with permissions "rw-r--r--" does no

t have execute permissions for the owner, file's group, and others on node "racdb2".PRVG-2031 : Owner of file "/u01/app/19.3.0/grid/crs/install/cmdllroot.sh" did not match the expected

value on node "racdb2". [Expected = "grid(1002)" ; Found = "root(0)"]PRVG-2032 : Group of file "/u01/app/19.3.0/grid/crs/install/cmdllroot.sh" did not match the expected

value on node "racdb2". [Expected = "oinstall(1001)" ; Found = "root(0)"]CRS-4000: Command Start failed, or completed with errors.

2022/11/25 00:08:07 CLSRSC-117: Failed to start Oracle Clusterware stack

Died at /u01/app/19.3.0/grid/crs/install/crsutils.pm line 13319.

The command '
/u01/app/19.3.0/grid/perl/bin/perl -I/u01/app/19.3.0/grid/perl/lib -I/u01/app/19.3.0/gri

d/crs/install -I/u01/app/19.3.0/grid/xag /u01/app/19.3.0/grid/crs/install/rootcrs.pl -prepatch' execution failed

解决办法:

[root@racdb2 soft]# chmod 775 /u01/app/19.3.0/grid/crs/install/cmdllroot.sh

[root@racdb2 soft]# chown grid.oinstall cmdllroot.sh

重新执行/u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

报错2

[root@racdb2 install]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb2/crsconfig/crs_prepatch_racdb2_2022-11-25_00-21-05AM.log

Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMA

L]. The cluster active patch level is [3007461856].CRS-1159: The cluster cannot be set to rolling patch mode because Oracle Clusterware is not active on

at least one remote node.CRS-4000: Command Start failed, or completed with errors.

2022/11/25 00:23:42 CLSRSC-430: Failed to start rolling patch mode

Died at /u01/app/19.3.0/grid/crs/install/crspatch.pm line 1885.

The command '/u01/app/19.3.0/grid/perl/bin/perl -I/u01/app/19.3.0/grid/perl/lib -I/u01/app/19.3.0/gri

d/crs/install -I/u01/app/19.3.0/grid/xag /u01/app/19.3.0/grid/crs/install/rootcrs.pl -prepatch'
 execution failed

解决办法:

/u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch -nonrolling

标准输出:

[root@racdb2 install]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -prepatch -nonrolling

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb2/crsconfig/crs_prepatch_racdb2_2022-11-25_00-31-00AM.log

2022/11/25 00:31:52 CLSRSC-4012: Shutting down Oracle Trace File Analyzer (TFA) Collector.

2022/11/25 00:33:33 CLSRSC-4013: Successfully shut down Oracle Trace File Analyzer (TFA) Collector.

2022/11/25 00:33:38 CLSRSC-347: Successfully unlock /u01/app/19.3.0/grid

2022/11/25 00:33:43 CLSRSC-671: Pre-patch steps for patching GI home successfully completed.

2节点安装grid补丁

grid用户执行

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34419443

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34444834

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34428761

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/34580338

/u01/app/19.3.0/grid/OPatch/opatch apply -oh /u01/app/19.3.0/grid -local /soft/34416665/33575402

标准输出

同1节点

2节点安装db补丁

Oracle用户执行

1.预备脚本

[oracle@racdb2 ~]$ /soft/34416665/34419443/custom/scripts/prepatch.sh -dbhome /u01/app/oracle/product/19.3.0/db_1/

2.安装补丁

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch apply -oh /u01/app/oracle/product/19.3.0/db_1 -local /soft/34416665/34419443

/u01/app/oracle/product/19.3.0/db_1/OPatch/opatch apply -oh /u01/app/oracle/product/19.3.0/db_1 -local /soft/34416665/34444834
  1. oracle执行发送补丁信息脚本
/soft/34416665/34419443/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/product/19.3.0/db_1

正常输出:

[oracle@racdb2 install]$ /soft/34416665/34444834/custom/scripts/postpatch.sh -dbhome /u01/app/oracle/

product/19.3.0/db_1Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

Reading /u01/app/oracle/product/19.3.0/db_1/install/params.ora..

Found uninstantiated /u01/app/oracle/product/19.3.0/db_1/crs/sbs/srvctl.sbs file, copying to /u01/app

/oracle/product/19.3.0/db_1/bin/srvctlParsing file /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Parsing file /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Verifying file /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/srvctl

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/srvconfig

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/cluvfy

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/kfod

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/diskmon.bin

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/lsnodes

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/osdbagrp

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/rawutl

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/srvm/admin/ractrans

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/srvm/admin/getcrshome

Reapplying file permissions on /u01/app/oracle/product/19.3.0/db_1/bin/crsdiag.pl

Postpatch completed successfully

如果报错查看1节点解决办法

root执行发送脚本

/u01/app/19.3.0/grid/rdbms/install/rootadd_rdbms.sh

/u01/app/19.3.0/grid/crs/install/rootcrs.sh -postpatch -nonrolling

标准输出:

[root@racdb2 soft]# /u01/app/19.3.0/grid/rdbms/install/rootadd_rdbms.sh

[root@racdb2 ~]# /u01/app/19.3.0/grid/crs/install/rootcrs.sh -postpatch -nonrolling

Using configuration parameter file: /u01/app/19.3.0/grid/crs/install/crsconfig_params

The log of current session can be found at:

/u01/app/grid/crsdata/racdb2/crsconfig/crs_postpatch_apply_inplace_racdb2_2022-11-25_07-21-07PM.log

2022/11/25 19:21:26 CLSRSC-329: Replacing Clusterware entries in file 'oracle-ohasd.service'

youlingOracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is

[NORMAL]. The cluster active patch level is [3007461856].

2022/11/25 19:25:43 CLSRSC-4015: Performing install or upgrade action for Oracle Trace File Analyzer (TFA) Collector.

2022/11/25 19:25:48 CLSRSC-672: Post-patch steps for patching GI home successfully completed.

操作datapatch实用程序

此时集群两个节点数据库均已运行,只需要在一个节点中执行

Oracle用户执行

cd $ORACLE_HOME/OPatch

 ./datapatch -verbose

标准输出

[oracle@racdb1 OPatch]$ ./datapatch -verbose

SQL Patching tool version 19.17.0.0.0 Production on Fri Nov 25 21:48:35 2022

Copyright (c) 2012, 2022, Oracle. All rights reserved.

Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_15961_2022_11_25_21_48_35

/sqlpatch_invocation.log

Connecting to database...OK

Gathering database info...done

Bootstrapping registry and package to current versions...done

Determining current state...done

Current state of interim SQL patches:

No interim patches found

Current state of release update SQL patches:

Binary registry:

19.17.0.0.0 Release_Update 220924224051: Installed

SQL registry:

Applied 19.17.0.0.0 Release_Update 220924224051 successfully on 23-NOV-22 01.35.36.485193 AM

Adding patches to installation queue and performing prereq checks...done

Installation queue:

No interim patches need to be rolled back

No release update patches need to be installed

No interim patches need to be applied

SQL Patching tool complete on Fri Nov 25 21:50:04 2022

编译失效对象

只在一个节点中的数据库中执行

sqlplus /nolog

conn / as sysdba

@?/rdbms/admin/utlrp.sql

标准输出

SQL> @?/rdbms/admin/utlrp.sql

Session altered.

TIMESTAMP

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

COMP_TIMESTAMP UTLRP_BGN 2022-11-25 22:02:38

DOC> The following PL/SQL block invokes UTL_RECOMP to recompile invalid

DOC> objects in the database. Recompilation time is proportional to the

DOC> number of invalid objects in the database, so this command may take

DOC> a long time to execute on a database with a large number of invalid

DOC> objects.

DOC>

DOC> Use the following queries to track recompilation progress:

DOC>

DOC> 1. Query returning the number of invalid objects remaining. This

DOC> number should decrease with time.

DOC> SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);

DOC>

DOC> 2. Query returning the number of objects compiled so far. This number

DOC> should increase with time.

DOC> SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;

DOC>

DOC> This script automatically chooses serial or parallel recompilation

DOC> based on the number of CPUs available (parameter cpu_count) multiplied

DOC> by the number of threads per CPU (parameter parallel_threads_per_cpu).

DOC> On RAC, this number is added across all RAC nodes.

DOC>

DOC> UTL_RECOMP uses DBMS_SCHEDULER to create jobs for parallel

DOC> recompilation. Jobs are created without instance affinity so that they

DOC> can migrate across RAC nodes. Use the following queries to verify

DOC> whether UTL_RECOMP jobs are being created and run correctly:

DOC>

DOC> 1. Query showing jobs created by UTL_RECOMP

DOC> SELECT job_name FROM dba_scheduler_jobs

DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>

DOC> 2. Query showing UTL_RECOMP jobs that are running

DOC> SELECT job_name FROM dba_scheduler_running_jobs

DOC> WHERE job_name like 'UTL_RECOMP_SLAVE_%';

DOC>#

PL/SQL procedure successfully completed.

TIMESTAMP

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

COMP_TIMESTAMP UTLRP_END 2022-11-25 22:02:53

DOC> The following query reports the number of invalid objects.

DOC>

DOC> If the number is higher than expected, please examine the error

DOC> messages reported with each object (using SHOW ERRORS) to see if they

DOC> point to system misconfiguration or resource constraints that must be

DOC> fixed before attempting to recompile these objects.

DOC>#

OBJECTS WITH ERRORS

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

0

DOC> The following query reports the number of exceptions caught during

DOC> recompilation. If this number is non-zero, please query the error

DOC> messages in the table UTL_RECOMP_ERRORS to see if any of these errors

DOC> are due to misconfiguration or resource constraints that must be

DOC> fixed before objects can compile successfully.

DOC> Note: Typical compilation errors (due to coding errors) are not

DOC> logged into this table: they go into DBA_ERRORS instead.

DOC>#

ERRORS DURING RECOMPILATION

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

0

Function created.

PL/SQL procedure successfully completed.

Function dropped.

PL/SQL procedure successfully completed.

SQL>

验证

检查各个组件版本:

[root@racdb1 soft]# su - grid

Last login: Mon Nov 28 17:13:07 CST 2022

[grid@racdb1 ~]$ /u01/app/19.3.0/grid/OPatch/opatch lspatches

34580338;TOMCAT RELEASE UPDATE 19.0.0.0.0 (34580338)

34444834;OCW RELEASE UPDATE 19.17.0.0.0 (34444834)

34428761;ACFS RELEASE UPDATE 19.17.0.0.0 (34428761)

34419443;Database Release Update : 19.17.0.0.221018 (34419443)

33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)

OPatch succeeded.

本文由 mdnice 多平台发布

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值