RU 19.24 Standalone(GI和DB分开打)

news/2024/12/31 1:19:17/

参考文档:Oracle® Database Patch 36582629 - GI Release Update 19.24.0.0.240716


2.1.1.1 OPatch Utility Information
12.2.0.1.42 or later 

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/gridsu - 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 /stage/36582629/36582781
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36587798
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36590554
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36648174
/u01/app/19.0.0/grid/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36758186su - oracle 
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36582781
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /stage/36582629/36587798

2.1.1.5 Run OPatch System Space Check

su - grid 
cat /tmp/patch_list_gihome.txt
/stage/36582629/36582781
/stage/36582629/36587798
/stage/36582629/36590554
/stage/36582629/36648174
/stage/36582629/36758186/u01/app/19.0.0/grid/OPatch/opatch prereq CheckSystemSpace -phBaseFile /tmp/patch_list_gihome.txtsu - oracle 
cat /tmp/patch_list_dbhome.txt
/stage/36582629/36582781
/stage/36582629/36587798/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>/36582629

-- 分开打GI和DB的补丁

To patch only the Grid home:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/36582629 -oh <GI_HOME>To patch one or more Oracle RAC database homes:
# opatchauto apply <UNZIPPED_PATCH_LOCATION>/36582629 -oh <oracle_home1_path>,<oracle_home2_path>su - root 
/u01/app/19.0.0/grid/OPatch/opatchauto apply /stage/36582629 -oh /u01/app/19.0.0/grid
/u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /stage/36582629 -oh /u01/app/oracle/product/19.0.0/db_1

-- log

[root@asm19c stage]# /u01/app/19.0.0/grid/OPatch/opatchauto apply /stage/36582629 -oh /u01/app/19.0.0/gridOPatchauto session is initiated at Tue Oct 15 21:00:00 2024System initialization log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchautodb/systemconfig2024-10-15_09-00-21PM.log.Session log file is /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/opatchauto2024-10-15_09-00-31PM.log
The id for this session is XBRQExecuting 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/gridExecuting patch validation checks on home /u01/app/19.0.0/grid
Patch validation checks successfully completed on home /u01/app/19.0.0/gridPerforming 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/asm19c/crsconfig/hapatch_2024-10-15_09-05-19PM.log
CRS service brought down successfully on home /u01/app/19.0.0/gridStart applying binary patch on home /u01/app/19.0.0/grid
Binary patch applied successfully on home /u01/app/19.0.0/gridRunning rootadd_rdbms.sh on home /u01/app/19.0.0/grid
Successfully executed rootadd_rdbms.sh on home /u01/app/19.0.0/gridPerforming postpatch operations on CRS - starting CRS service on home /u01/app/19.0.0/grid
Postpatch operation log file location: /u01/app/grid/crsdata/asm19c/crsconfig/hapatch_2024-10-15_09-18-35PM.log
CRS service started successfully on home /u01/app/19.0.0/gridOPatchAuto successful.--------------------------------Summary--------------------------------Patching is completed successfully. Please find the summary as follows:Host:asm19c
SIHA Home:/u01/app/19.0.0/grid
Version:19.0.0.0.0
Summary:==Following patches were SUCCESSFULLY applied:Patch: /stage/36582629/36582781
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-06-01PM_1.logPatch: /stage/36582629/36587798
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-06-01PM_1.logPatch: /stage/36582629/36590554
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-06-01PM_1.logPatch: /stage/36582629/36648174
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-06-01PM_1.logPatch: /stage/36582629/36758186
Log: /u01/app/19.0.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-06-01PM_1.logOPatchauto session completed at Tue Oct 15 21:20:28 2024
Time taken to complete the session 20 minutes, 8 seconds
[root@asm19c stage]# 
[root@asm19c stage]# /u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /stage/36582629 -oh /u01/app/oracle/product/19.0.0/db_1OPatchauto session is initiated at Tue Oct 15 21:21:13 2024System initialization log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchautodb/systemconfig2024-10-15_09-21-31PM.log.Session log file is /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/opatchauto2024-10-15_09-21-44PM.log
The id for this session is A579Executing 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_1Executing 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_1Verifying 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_1Preparing 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 serviceBringing down database service on home /u01/app/oracle/product/19.0.0/db_1
Following database has been 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_1Start 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_1Running 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_1Starting 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_1Preparing 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_1OPatchAuto successful.--------------------------------Summary--------------------------------Patching is completed successfully. Please find the summary as follows:Host:asm19c
SIDB Home:/u01/app/oracle/product/19.0.0/db_1
Version:19.0.0.0.0
Summary:==Following patches were SKIPPED:Patch: /stage/36582629/36590554
Reason: This patch is not applicable to this specified target type - "oracle_database"Patch: /stage/36582629/36758186
Reason: This patch is not applicable to this specified target type - "oracle_database"Patch: /stage/36582629/36648174
Reason: This patch is not applicable to this specified target type - "oracle_database"==Following patches were SUCCESSFULLY applied:Patch: /stage/36582629/36582781
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-28-14PM_1.logPatch: /stage/36582629/36587798
Log: /u01/app/oracle/product/19.0.0/db_1/cfgtoollogs/opatchauto/core/opatch/opatch2024-10-15_21-28-14PM_1.logOPatchauto session completed at Tue Oct 15 21:53:46 2024
Time taken to complete the session 32 minutes, 16 seconds
[root@asm19c stage]# 

-- 验证

[grid@asm19c OPatch]$ ./opatch lspatches
36758186;DBWLM RELEASE UPDATE 19.0.0.0.0 (36758186)
36648174;TOMCAT RELEASE UPDATE 19.0.0.0.0 (36648174)
36590554;ACFS RELEASE UPDATE 19.24.0.0.0 (36590554)
36587798;OCW RELEASE UPDATE 19.24.0.0.0 (36587798)
36582781;Database Release Update : 19.24.0.0.240716 (36582781)OPatch succeeded.
[grid@asm19c OPatch]$ [oracle@asm19c OPatch]$ ./opatch lspatches
36587798;OCW RELEASE UPDATE 19.24.0.0.0 (36587798)
36582781;Database Release Update : 19.24.0.0.240716 (36582781)OPatch succeeded.
[oracle@asm19c 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.12.0.0.210720 (32904851)
APPLY          SUCCESS              Database Release Update : 19.24.0.0.240716 (36582781)SQL> 

END 


http://www.ppmy.cn/news/1539479.html

相关文章

基于Springboot+Vue的电缆行业生产管理系统(含源码数据库)

1.开发环境 开发系统:Windows10/11 架构模式:MVC/前后端分离 JDK版本: Java JDK1.8 开发工具:IDEA 数据库版本: mysql5.7或8.0 数据库可视化工具: navicat 服务器: SpringBoot自带 apache tomcat 主要技术: Java,Springboot,mybatis,mysql,vue 2.视频演示地址 3.功能 管理员…

服务端技术架构演进之路

服务端技术架构演进之路 目录 服务端技术架构演进之路 0.架构中常见概念及理解 1.单机架构 2.应用数据分离架构 3.应用服务器集群架构 4.读写分离/主从分离架构 5.冷热分离架构 6.垂直分库架构 7.微服务架构 8.容器编排架构 本文以一个 " 电子商务 " 应…

什么是单例模式?单例模式的作用?单例模式的使用场景等...

设计模式&#xff08;一&#xff09;单例模式详解 一、单例模式 什么是单例模式&#xff1f; 单例模式是一种设计模式&#xff0c;它确保一个类只有一个实例&#xff0c;并提供一个全局访问点来获取这个实例。在Java中&#xff0c;单例模式通过以下几种方式实现&#xff1a;…

2022年黄河流域旅游资源空间分布数据(shp)

数据介绍 黄河是中华民族的母亲河。黄河流域旅游资源丰富且极具特色。黄河流域旅游资源空间分布数据是黄河流域旅游资源开发与决策的基础。本数据集以县&#xff08;区&#xff09;域行政边界为单元、以国家旅游资源分类标准为依据&#xff0c;收集整理了黄河流域各县&#xf…

【TFT彩屏移植】STM32F4移植1.8寸TFT彩屏简明教程

目录 一.移植说明 二.移植 1.例程 物理接口&#xff1a; 延时函数&#xff1a; 底层驱动文件&#xff1a; GUI界面文件&#xff1a; 测试demo&#xff1a; 2.移植至F4 创建工程&#xff1a; 调试接口选择SW&#xff1a; RCC中HSE选择外部晶振&#xff1a; GPIO配置不变&am…

Golang | Leetcode Golang题解之第468题验证IP地址

题目&#xff1a; 题解&#xff1a; func validIPAddress(queryIP string) string {if sp : strings.Split(queryIP, "."); len(sp) 4 {for _, s : range sp {if len(s) > 1 && s[0] 0 {return "Neither"}if v, err : strconv.Atoi(s); err …

C Programming Basics

1.C语言的基本介绍 Basics of the C Programming Language • C 是一种编程语言&#xff0c;它的发明是为了进行低级别的系统编程工作。C 语言从 B 语言发展而来&#xff0c;是一种非常紧凑(compact)的语言。 • 它是一种通用(general)编程语言&#xff0c;既可以用于系统编程…

Lua 协同程序(coroutine)

Lua 协同程序(coroutine) 概述 Lua 语言以其轻量级和易于嵌入的特点,在游戏开发、脚本编写等领域广受欢迎。Lua 中的协同程序(coroutine)是其并发编程的核心特性之一。协同程序提供了一种不同于多线程的并发执行方式,它允许多个代码段交替执行,而不是同时执行。这种机制…