ORACLE 19C RAC 19.7升级到19.19

基本步骤
1.升级AHF
2 升级GI及DB
2.1 拷贝所需文件
2.2 升级OPatch
2.3 升级GI与DB
2.4 应用SQL变更
3 升级OJVM
3.1 解压补丁
3.2执行补丁冲突检查:
3.3 升级OJVM
3.4 应用SQL变更
4 最终验证
-------------升级AHF
19.19开始,首先需要升级AHF,否则后续GI升级会报错
cd /software
 unzip AHF-LINUX_v23.6.0.zip
chown -R grid:oinstall /software
su - gird


[grid@zw-rac01n1:/home/grid]$cd $ORACLE_HOME/OPatch
[grid@zw-rac01n1:/oracle/app/19c/grid/OPatch]$./opatch lspatches
30898856;TOMCAT RELEASE UPDATE 19.0.0.0.0 (30898856)
30894985;OCW RELEASE UPDATE 19.7.0.0.0 (30894985)
30869304;ACFS RELEASE UPDATE 19.7.0.0.0 (30869304)
30869156;Database Release Update : 19.7.0.0.200414 (30869156)
----------------备份grid和oracle目录
具体操作如下:
备份GRID家目录
# cd /oracle/app/19c/
tar -pzcvf gihome.tar.gz grid

备份ORACLE家目录
# cd /oracle/app/oracle/product/19c
tar -pzcvf orahome.tar.gz db_1
----------------升级opatch
#所有节点操作
OPatch Utility Information(查看当前OPatch版本),版本过低,则需要替换版本

 su - grid -c "\$ORACLE_HOME/OPatch/opatch version"
 su - oracle -c "\$ORACLE_HOME/OPatch/opatch version"

cd /oracle/app/19c/grid;mv OPatch/ OPatchbak
chown -R grid:oinstall /software
unzip -q -o /software/p6880880_190000_Linux-x86-64.zip -d /oracle/app/19c/grid/
chown -R grid:oinstall /oracle/app/19c/grid/OPatch

cd /oracle/app/oracle/product/19c/db_1;mv OPatch/ OPatchbak
unzip -q -o /software/p6880880_190000_Linux-x86-64.zip -d /oracle/app/oracle/product/19c/db_1/
chown -R oracle:oinstall OPatch

 su - grid -c "\$ORACLE_HOME/OPatch/opatch version"
 su - oracle -c "\$ORACLE_HOME/OPatch/opatch version"
------------------------解压补丁包(所有节点操作)
unzip -q /software/p35037840_190000_Linux-x86-64.zip -d /software/
chown -R grid:oinstall /software
-------------包兼容性检查(所有节点)
su - grid
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /software/35037840/35042068
$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /software/35037840/35050331
$ORACLE_HOME/OPatch/opatch prereq Ch

你可能感兴趣的:(ORACLE,oracle,数据库)