Oracle 19.29

参考文档:Oracle® Database Patch 38298204 - GI Release Update 19.29.0.0.251021

2.1.1.1 OPatch Utility Information

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

2.1.1.2 Validation of Oracle Inventory

分别在GI和Oracle Home下执行

$ <ORACLE_HOME>/OPatch/opatch lsinventory -detail -oh <ORACLE_HOME>

复制代码
su - grid
/u01/app/19.0.0/grid/OPatch/opatch lsinventory -detail -oh /u01/app/19.0.0/grid

su - oracle
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch lsinventory -detail -oh /u01/app/oracle/product/19.0.0/db_1

2.1.1.4 Run OPatch Conflict Check

复制代码
su - grid 
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38291812
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38322923
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38311528
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38380425
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/36758186

su - oracle 
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38291812
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /psu/38298204/38322923

2.1.1.5 Run OPatch System Space Check

复制代码
su - grid 
cat /tmp/patch_list_gihome.txt

/psu/38298204/38291812
/psu/38298204/38322923
/psu/38298204/38311528
/psu/38298204/38380425
/psu/38298204/36758186


/u01/app/19.0.0/grid/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txt


su - oracle 
cat /tmp/patch_list_dbhome.txt

/psu/38298204/38291812
/psu/38298204/38322923

/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_dbhome.txt

2.1.4 OPatchAuto Out-of-Place Patching

-- 一次性打GI和DB home的补丁

To patch the Grid home and all Oracle RAC database homes of the same version:

opatchauto apply <UNZIPPED_PATCH_LOCATION>/38298204

-- 分开打GI和DB的补丁

To patch only the Grid home:

opatchauto apply <UNZIPPED_PATCH_LOCATION>/38298204 -oh <GI_HOME>

To patch one or more Oracle RAC database homes:

opatchauto apply <UNZIPPED_PATCH_LOCATION>/38298204 -oh <oracle_home1_path>,<oracle_home2_path>

复制代码
su - root 
/u01/app/19.0.0/grid/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/19.0.0/grid
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/oracle/product/19.0.0/db_1

-- log 节点1 grid

复制代码
[root@node19c01 psu]# /u01/app/19.0.0/grid/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/19.0.0/grid

OPatchauto session is initiated at Thu Oct 23 09:55:37 2025

System initialization log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2025-10-23_09-55-43AM.log.

Session log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/opatchauto2025-10-23_09-55-56AM.log
The id for this session is PMNU

Executing OPatch prereq operations to verify patch applicability on home /u01/app/19.0.0/grid
Patch applicability verified successfully on home /u01/app/19.0.0/grid


Executing patch validation checks on home /u01/app/19.0.0/grid
Patch validation checks successfully completed on home /u01/app/19.0.0/grid


Performing prepatch operations on CRS - bringing down CRS service on home /u01/app/19.0.0/grid
Prepatch operation log file location: /u01/app/grid/crsdata/node19c01/crsconfig/crs_prepatch_apply_inplace_node19c01_2025-10-23_10-02-49AM.log
CRS service brought down successfully on home /u01/app/19.0.0/grid


Start applying binary patch on home /u01/app/19.0.0/grid
Binary patch applied successfully on home /u01/app/19.0.0/grid


Running rootadd_rdbms.sh on home /u01/app/19.0.0/grid
Successfully executed rootadd_rdbms.sh on home /u01/app/19.0.0/grid




Performing postpatch operations on CRS - starting CRS service on home /u01/app/19.0.0/grid
Postpatch operation log file location: /u01/app/grid/crsdata/node19c01/crsconfig/crs_postpatch_apply_inplace_node19c01_2025-10-23_10-17-17AM.log
CRS service started successfully on home /u01/app/19.0.0/grid

OPatchAuto successful.

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

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

Host:node19c01
CRS Home:/u01/app/19.0.0/grid
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /psu/38298204/36758186
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_09-56-18AM_1.log
Reason: /psu/38298204/36758186 is not required to be applied to oracle home /u01/app/19.0.0/grid


==Following patches were SUCCESSFULLY applied:

Patch: /psu/38298204/38291812
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-03-44AM_1.log

Patch: /psu/38298204/38311528
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-03-44AM_1.log

Patch: /psu/38298204/38322923
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-03-44AM_1.log

Patch: /psu/38298204/38380425
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-03-44AM_1.log



OPatchauto session completed at Thu Oct 23 10:20:24 2025
Time taken to complete the session 24 minutes, 41 seconds
[root@node19c01 psu]# 

-- 节点1 oracle

复制代码
[root@node19c01 psu]# /u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/oracle/product/19.0.0/db_1

OPatchauto session is initiated at Thu Oct 23 10:23:02 2025

System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2025-10-23_10-23-06AM.log.

Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2025-10-23_10-23-19AM.log
The id for this session is S52A

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/db_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.0.0/db_1


Executing patch validation checks on home /u01/app/oracle/product/19.0.0/db_1
Patch validation checks successfully completed on home /u01/app/oracle/product/19.0.0/db_1


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


Preparing to bring down database service on home /u01/app/oracle/product/19.0.0/db_1
Successfully prepared home /u01/app/oracle/product/19.0.0/db_1 to bring down database service


Bringing down database service on home /u01/app/oracle/product/19.0.0/db_1
Database service successfully brought down on home /u01/app/oracle/product/19.0.0/db_1


Performing prepatch operation on home /u01/app/oracle/product/19.0.0/db_1
Prepatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Start applying binary patch on home /u01/app/oracle/product/19.0.0/db_1
Binary patch applied successfully on home /u01/app/oracle/product/19.0.0/db_1


Running rootadd_rdbms.sh on home /u01/app/oracle/product/19.0.0/db_1
Successfully executed rootadd_rdbms.sh on home /u01/app/oracle/product/19.0.0/db_1


Performing postpatch operation on home /u01/app/oracle/product/19.0.0/db_1
Postpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Starting database service on home /u01/app/oracle/product/19.0.0/db_1
Database service successfully started on home /u01/app/oracle/product/19.0.0/db_1


Preparing home /u01/app/oracle/product/19.0.0/db_1 after database service restarted
No step execution required.........
 

Trying to apply SQL patch on home /u01/app/oracle/product/19.0.0/db_1
No SQL patch operations are required on local node for this home

OPatchAuto successful.

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

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

Host:node19c01
RAC Home:/u01/app/oracle/product/19.0.0/db_1
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /psu/38298204/38311528
Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /psu/38298204/36758186
Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /psu/38298204/38380425
Reason: This patch is not applicable to this specified target type - "rac_database"


==Following patches were SUCCESSFULLY applied:

Patch: /psu/38298204/38291812
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-32-41AM_1.log

Patch: /psu/38298204/38322923
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-32-41AM_1.log


Patching session reported following warning(s): 
_________________________________________________

[WARNING] The database instance 'test1' from '/u01/app/oracle/product/19.0.0/db_1', in host'node19c01' is not running. SQL changes, if any,  will not be applied.
To apply. the SQL changes, bring up the database instance and run the command manually from any one node (run as oracle).
Refer to the readme to get the correct steps for applying the sql changes.




OPatchauto session completed at Thu Oct 23 10:47:46 2025
Time taken to complete the session 24 minutes, 40 seconds
[root@node19c01 psu]# 

-- 节点2 grid

复制代码
[root@node19c02 psu]# /u01/app/19.0.0/grid/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/19.0.0/grid

OPatchauto session is initiated at Thu Oct 23 10:54:41 2025

System initialization log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2025-10-23_10-54-45AM.log.

Session log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/opatchauto2025-10-23_10-54-55AM.log
The id for this session is UKWI

Executing OPatch prereq operations to verify patch applicability on home /u01/app/19.0.0/grid
Patch applicability verified successfully on home /u01/app/19.0.0/grid


Executing patch validation checks on home /u01/app/19.0.0/grid
Patch validation checks successfully completed on home /u01/app/19.0.0/grid


Performing prepatch operations on CRS - bringing down CRS service on home /u01/app/19.0.0/grid
Prepatch operation log file location: /u01/app/grid/crsdata/node19c02/crsconfig/crs_prepatch_apply_inplace_node19c02_2025-10-23_11-01-54AM.log
CRS service brought down successfully on home /u01/app/19.0.0/grid


Start applying binary patch on home /u01/app/19.0.0/grid
Binary patch applied successfully on home /u01/app/19.0.0/grid


Running rootadd_rdbms.sh on home /u01/app/19.0.0/grid
Successfully executed rootadd_rdbms.sh on home /u01/app/19.0.0/grid




Performing postpatch operations on CRS - starting CRS service on home /u01/app/19.0.0/grid
Postpatch operation log file location: /u01/app/grid/crsdata/node19c02/crsconfig/crs_postpatch_apply_inplace_node19c02_2025-10-23_11-17-10AM.log
CRS service started successfully on home /u01/app/19.0.0/grid

OPatchAuto successful.

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

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

Host:node19c02
CRS Home:/u01/app/19.0.0/grid
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /psu/38298204/36758186
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_10-55-13AM_1.log
Reason: /psu/38298204/36758186 is not required to be applied to oracle home /u01/app/19.0.0/grid


==Following patches were SUCCESSFULLY applied:

Patch: /psu/38298204/38291812
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-02-50AM_1.log

Patch: /psu/38298204/38311528
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-02-50AM_1.log

Patch: /psu/38298204/38322923
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-02-50AM_1.log

Patch: /psu/38298204/38380425
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-02-50AM_1.log



OPatchauto session completed at Thu Oct 23 11:21:21 2025
Time taken to complete the session 26 minutes, 37 seconds
[root@node19c02 psu]# 

-- 节点2 oracle

复制代码
[root@node19c02 psu]# 
[root@node19c02 psu]# /u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /psu/38298204 -oh /u01/app/oracle/product/19.0.0/db_1

OPatchauto session is initiated at Thu Oct 23 11:23:27 2025

System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2025-10-23_11-23-31AM.log.

Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2025-10-23_11-23-46AM.log
The id for this session is ERMS

Executing OPatch prereq operations to verify patch applicability on home /u01/app/oracle/product/19.0.0/db_1
Patch applicability verified successfully on home /u01/app/oracle/product/19.0.0/db_1


Executing patch validation checks on home /u01/app/oracle/product/19.0.0/db_1
Patch validation checks successfully completed on home /u01/app/oracle/product/19.0.0/db_1


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


Preparing to bring down database service on home /u01/app/oracle/product/19.0.0/db_1
Successfully prepared home /u01/app/oracle/product/19.0.0/db_1 to bring down database service


Bringing down database service on home /u01/app/oracle/product/19.0.0/db_1
Following database(s) and/or service(s) are stopped and will be restarted later during the session: test
Database service successfully brought down on home /u01/app/oracle/product/19.0.0/db_1


Performing prepatch operation on home /u01/app/oracle/product/19.0.0/db_1
Prepatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Start applying binary patch on home /u01/app/oracle/product/19.0.0/db_1
Binary patch applied successfully on home /u01/app/oracle/product/19.0.0/db_1


Running rootadd_rdbms.sh on home /u01/app/oracle/product/19.0.0/db_1
Successfully executed rootadd_rdbms.sh on home /u01/app/oracle/product/19.0.0/db_1


Performing postpatch operation on home /u01/app/oracle/product/19.0.0/db_1
Postpatch operation completed successfully on home /u01/app/oracle/product/19.0.0/db_1


Starting database service on home /u01/app/oracle/product/19.0.0/db_1
Database service successfully started on home /u01/app/oracle/product/19.0.0/db_1


Preparing home /u01/app/oracle/product/19.0.0/db_1 after database service restarted
No step execution required.........
 

Trying to apply SQL patch on home /u01/app/oracle/product/19.0.0/db_1
SQL patch applied successfully on home /u01/app/oracle/product/19.0.0/db_1

OPatchAuto successful.

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

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

Host:node19c02
RAC Home:/u01/app/oracle/product/19.0.0/db_1
Version:19.0.0.0.0
Summary:

==Following patches were SKIPPED:

Patch: /psu/38298204/38311528
Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /psu/38298204/36758186
Reason: This patch is not applicable to this specified target type - "rac_database"

Patch: /psu/38298204/38380425
Reason: This patch is not applicable to this specified target type - "rac_database"


==Following patches were SUCCESSFULLY applied:

Patch: /psu/38298204/38291812
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-39-24AM_1.log

Patch: /psu/38298204/38322923
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2025-10-23_11-39-24AM_1.log



OPatchauto session completed at Thu Oct 23 11:59:50 2025
Time taken to complete the session 36 minutes, 19 seconds
[root@node19c02 psu]# 

-- 验证

复制代码
[grid@node19c01 OPatch]$ ./opatch lspatches
38380425;TOMCAT RELEASE UPDATE 19.0.0.0.0 (38380425)
38322923;OCW RELEASE UPDATE 19.29.0.0.0 (38322923)
38311528;ACFS RELEASE UPDATE 19.29.0.0.0 (38311528)
38291812;Database Release Update : 19.29.0.0.251021 (38291812)
36758186;DBWLM RELEASE UPDATE 19.0.0.0.0 (36758186)

OPatch succeeded.
[grid@node19c01 OPatch]$ 

[oracle@node19c01 ~]$ cd $ORACLE_HOME/OPatch
[oracle@node19c01 OPatch]$ ./opatch lspatches
38322923;OCW RELEASE UPDATE 19.29.0.0.0 (38322923)
38291812;Database Release Update : 19.29.0.0.251021 (38291812)

OPatch succeeded.
[oracle@node19c01 OPatch]$ 

[grid@node19c02 OPatch]$ ./opatch lspatches
38380425;TOMCAT RELEASE UPDATE 19.0.0.0.0 (38380425)
38322923;OCW RELEASE UPDATE 19.29.0.0.0 (38322923)
38311528;ACFS RELEASE UPDATE 19.29.0.0.0 (38311528)
38291812;Database Release Update : 19.29.0.0.251021 (38291812)
36758186;DBWLM RELEASE UPDATE 19.0.0.0.0 (36758186)

OPatch succeeded.
[grid@node19c02 OPatch]$ 

[oracle@node19c02 ~]$ cd $ORACLE_HOME/OPatch
[oracle@node19c02 OPatch]$ ./opatch lspatches
38322923;OCW RELEASE UPDATE 19.29.0.0.0 (38322923)
38291812;Database Release Update : 19.29.0.0.251021 (38291812)

OPatch succeeded.
[oracle@node19c02 OPatch]$

SQL> set linesize 200
SQL> col action for a14
SQL> col status for a20
SQL> col description for a70
SQL> select action,status,description from dba_registry_sqlpatch;

ACTION         STATUS               DESCRIPTION
-------------- -------------------- ----------------------------------------------------------------------
APPLY          SUCCESS              Database Release Update : 19.3.0.0.190416 (29517242)
APPLY          SUCCESS              Database Release Update : 19.7.0.0.200414 (30869156)
APPLY          SUCCESS              Database Release Update : 19.19.0.0.230418 (35042068)
APPLY          SUCCESS              Database Release Update : 19.20.0.0.230718 (35320081)
APPLY          SUCCESS              Database Release Update : 19.21.0.0.231017 (35643107)
APPLY          SUCCESS              Database Release Update : 19.22.0.0.240116 (35943157)
APPLY          SUCCESS              Database Release Update : 19.23.0.0.240416 (36233263)
APPLY          SUCCESS              Database Release Update : 19.24.0.0.240716 (36582781)
APPLY          SUCCESS              Database Release Update : 19.25.0.0.241015 (36912597)
APPLY          SUCCESS              Database Release Update : 19.26.0.0.250121 (37260974)
APPLY          SUCCESS              Database Release Update : 19.27.0.0.250415 (37642901)

ACTION         STATUS               DESCRIPTION
-------------- -------------------- ----------------------------------------------------------------------
APPLY          SUCCESS              Database Release Update : 19.28.0.0.250715 (37960098)
APPLY          SUCCESS              Database Release Update : 19.29.0.0.251021 (38291812)

13 rows selected.

SQL> 

END

相关推荐
悄悄敲敲敲4 小时前
MySQL表的约束
数据库·mysql
鼠爷ねずみ4 小时前
SpringCloud前后端整体开发流程-以及技术总结文章实时更新中
java·数据库·后端·spring·spring cloud
九皇叔叔5 小时前
MySQL 数据库 Read View 详解
数据库·mysql·mvcc·read view
Elastic 中国社区官方博客6 小时前
Elasticsearch:圣诞晚餐 BBQ - 图像识别
大数据·数据库·elasticsearch·搜索引擎·ai·全文检索
cui_win6 小时前
Prometheus实战教程 - Redis 监控
数据库·redis·prometheus
JIngJaneIL7 小时前
基于java + vue个人博客系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
TG:@yunlaoda360 云老大7 小时前
华为云国际站代理商备份策略设置过程中遇到问题如何解决?
服务器·数据库·华为云
SelectDB7 小时前
Doris Catalog 已上线!性能提升 200x,全面优于 JDBC Catalog,跨集群查询迈入高性能分析时代
数据库·数据分析·apache
TAEHENGV7 小时前
进度跟踪模块 Cordova 与 OpenHarmony 混合开发实战
android·javascript·数据库
神秘面具男037 小时前
MySQL 从基础到实践
数据库·mysql