当前位置:网站首页>Oracle technology sharing Oracle 19.14 upgrade 19.15
Oracle technology sharing Oracle 19.14 upgrade 19.15
2022-06-26 03:52:00 【cqszpx】
System :CentOS7.9
Environmental Science :oracle 19.14 + rac
explain :1-9 Step both nodes need to be executed
1、 Backup directory
[[email protected] ~]# tar -zcvPf oraclebase.tar.gz /u01/app/oracle >/dev/null
[[email protected] ~]# tar -zcvPf oraInventory.tar.gz /u01/app/oraInventory >/dev/null
[[email protected] ~]# tar -zcvPf gridbase.tar.gz /u01/app/grid >/dev/null
[[email protected] ~]# tar -zcvPf gridhome.tar.gz /u01/app/11.2.0/grid >/dev/null
2、 install OPatch
explain :19.15 DB Of RU The number is :33806152,GI Of RU The number is :33803476,OPatch Version at least 12.2.0.1.29
sftp> cd /tmp
sftp> lcd F:\installmedium\19c\19.15
sftp> put
p6880880_190000_Linux-x86-64.zip
[[email protected]:/tmp]$ unzip -q -o
p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
[[email protected]:/tmp]$ unzip -q -o
p6880880_190000_Linux-x86-64.zip -d $ORACLE_HOME
[[email protected] tmp]$ opatch version
OPatch Version: 12.2.0.1.30
OPatch succeeded.
[[email protected] tmp]$ opatch version
OPatch Version: 12.2.0.1.30
OPatch succeeded.
3、 verification Oracle Inventory
Check DB Home and Grid Home The consistency of patches in the patch list .
[[email protected]:/home/grid]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
[[email protected]:/home/oracle]$ $ORACLE_HOME/OPatch/opatch lsinventory -detail -oh $ORACLE_HOME
4、 Download and unzip Patch
[[email protected] /]# mkdir /upgrade
[[email protected] /]# chown -R grid:oinstall /upgrade
sftp> lcd F:\installmedium\19c\19.15
sftp> cd /home/grid
sftp> put
p33803476_190000_Linux-x86-64.zip
[[email protected] ~]$ unzip -q
p33803476_190000_Linux-x86-64.zip -d /upgrade
5、 function opatch Conflict check
Determine whether the currently installed one-time patch matches this patch 33803476 Conflict
grid user :
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33806152
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33815596
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33815607
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33911149
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33575402
oracle user :
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33806152
% $ORACLE_HOME/OPatch/opatch prereq
CheckConflictAgainstOHWithDetail -phBaseDir /upgrade/33803476/33815596
6、 function OPatch Check system space
Check ORACLE_HOME Whether the file system has enough free space , In order to apply the patch :
6.1、grid user
[[email protected]:/home/grid]$ vi
/tmp/patch_lists_gihome.txt
/upgrade/33803476/33806152
/upgrade/33803476/33815596
/upgrade/33803476/33815607
/upgrade/33803476/33911149
/upgrade/33803476/33575402
Run the following command to check Grid Infrastructure home Is there enough space .
[[email protected]:/home/grid]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile
/tmp/patch_lists_gihome.txt
6.2、oracle user
[[email protected]:/home/oracle]$ vi
/tmp/patch_lists_dbhome.txt
/upgrade/33803476/33806152
/upgrade/33803476/33815596
Run the following command to check oracle home Is there enough space .
[[email protected]:/home/oracle]$ $ORACLE_HOME/OPatch/opatch prereq CheckSystemSpace -phBaseFile
/tmp/patch_list_dbhome.txt
7、 One time patch conflict detection and resolution
[[email protected] ~]#
/u01/app/19.3.0/grid/OPatch/opatchauto apply /upgrade/33803476 -analyze
[[email protected] ~]#
/u01/app/19.3.0/grid/OPatch/opatchauto rollback /upgrade/33803476 -analyze
8、 Automatic patch installation
[[email protected] ~]# export PATH=$
PATH:/u01/app/19.3.0/grid/OPatch ( explain :/u01/app/19.3.0/grid by GRID_HOME)
[[email protected] ~]# opatchauto apply /upgrade/33803476
9、 Check grid Patch
[[email protected] ~]$ opatch lspatches
33911149;TOMCAT RELEASE UPDATE 19.0.0.0.0 (33911149)
33815607;ACFS RELEASE UPDATE 19.15.0.0.0 (33815607)
33815596;OCW RELEASE UPDATE 19.15.0.0.0 (33815596)
33806152;Database Release Update : 19.15.0.0.220419 (33806152)
33575402;DBWLM RELEASE UPDATE 19.0.0.0.0 (33575402)
OPatch succeeded.
[[email protected] ~]$ sqlplus -version
SQL*Plus: Release 19.0.0.0.0 - Production
Version 19.15.0.0.0
10、 load SQL
explain : This step is for loading changes SQL To the database ,RAC The environment only needs to be on the node 1 perform .
[[email protected]
hisdb1:/u01/app/oracle/product/19.3.0/db/OPatch]$ ./datapatch -verbose
11、 Processing invalid objects
Because before datapatch The command will load SQL, This process may result in invalid objects , node 1 perform @utlrp.sql Script processing invalid object
SQL> @?/rdbms/admin/utlrp.sql

边栏推荐
- Evaluation - analytic hierarchy process
- R语言与机器学习
- MySQL高級篇第一章(linux下安裝MySQL)【下】
- 在出海获客这件事上,数字广告投放之外,广告主还能怎么玩儿?
- 力扣79单词搜索
- 【Flink】Flink Sort-Shuffle写流程简析
- 外包干了四年,人直接废了。。。
- Procédures stockées MySQL
- How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
- User control custom DependencyProperty
猜你喜欢

Can string be changed?

Uni app custom selection date 1 (September 16, 2021)

C # knowledge structure
![[paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours](/img/fe/f8208747e03133f4a66e73598409d5.png)
[paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours

Machine learning notes - trend components of time series

Uni app custom drop-down selection list

DETR3D 多2d图片3D检测框架

Open camera anomaly analysis (I)

阿里云函数计算服务一键搭建Z-Blog个人博客

How to prepare for a moving wedding
随机推荐
使用SOAPUI访问对应的esb工程
Uni app custom navigation bar component
Is the waiting insurance record a waiting insurance evaluation? What is the relationship between the two?
2020 summary: industrial software development under Internet thinking
MySQL common statements
MySQL advanced part (IV: locking mechanism and SQL optimization)
When the tiflash function is pushed down, it must be known that it will become a tiflash contributor in ten minutes
View of MySQL
JS to achieve the effect of text marquee
Dynamic segment tree leetcode seven hundred and fifteen
Andorid hide the title bar of the system
[MySQL] MySQL export database
JS array array JSON de duplication
816. 模糊坐标
763. dividing alphabetic intervals
【LOJ#6718】九个太阳「弱」化版(循环卷积,任意模数NTT)
Binary search
高性能算力中心 — RoCE — Overview
How to solve the problem that iterative semi supervised training is difficult to implement in ASR training? RTC dev Meetup
[LOJ 6718] nine suns' weakened version (cyclic convolution, arbitrary modulus NTT)