升级过程分为三部分:

1、升级grid

2、升级rdbms

3、升级数据字典

前期准备:

新建grid_home和oracle_home

升级前 升级后
版本 11.2.0.1 11.2.0.4
grid_base /u01/app/grid /u01/app/grid
grid_home /u01/app/11.2.0/grid /u01/app/11.2.0.4/grid
oracle_base /u01/app/oracle /u01/app/oracle
oracle_home /u01/app/oracle/product/11.2.0/db_1 /u01/app/oracle/product/11.2.0.4/db_1

2、升级前检查:

./runcluvfy.sh stage -pre crsinst -upgrade -n zmkj1,zmkj2 -rolling -src_crshome /u01/app/11.2.0/grid -dest_crshome /u01/app/11.2.0.4/grid -dest_version 11.2.0.4.0 -fixup -fixupdir /tmp -verbose

根据检查结果需要升级cuvqdisk、安装补丁9413827 或 9706490

Checking for Oracle patch "9413827 or 9706490" in home "/u01/app/11.2.0/grid".Node Name     Applied                   Required                  Comment   ------------  ------------------------  ------------------------  ----------zmkj2         missing                   9413827 or 9706490        failed    zmkj1         missing                   9413827 or 9706490        failed
Result: Check for Oracle patch "9413827 or 9706490" in home "/u01/app/11.2.0/grid" failedCheck: Package existence for "cvuqdisk" Node Name     Available                 Required                  Status    ------------  ------------------------  ------------------------  ----------zmkj2         cvuqdisk-1.0.7-1          cvuqdisk-1.0.9-1          failed    zmkj1         cvuqdisk-1.0.7-1          cvuqdisk-1.0.9-1          failed
Result: Package existence check failed for "cvuqdisk"

根据提示在两个节点都执行/tmp/CVU_11.2.0.4.0_grid/runfixup.sh,进行配置:

Fixup information has been generated for following node(s):
zmkj2,zmkj1
Please run the following script on each node as "root" user to execute the fixups:
'/tmp/CVU_11.2.0.4.0_grid/runfixup.sh'Pre-check for cluster services setup was unsuccessful on all the nodes. 

执行结果如下:

[root@zmkj1 ~]# /tmp/CVU_11.2.0.4.0_grid/runfixup.sh
Response file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.enable
Log file location: /tmp/CVU_11.2.0.4.0_grid/orarun.log
Installing Package /tmp/CVU_11.2.0.4.0_grid//cvuqdisk-1.0.9-1.rpm
Preparing...                          ################################# [100%]
Updating / installing...1:cvuqdisk-1.0.9-1                 ################################# [ 50%]
Cleaning up / removing...2:cvuqdisk-1.0.7-1                 ################################# [100%]
[root@zmkj1 ~]#

Oracle补丁9413827 或 9706490需要手工进行安装,在两个几点都需要打补丁,打补丁的方法可以参考 9413827 或 9706490安装。

3、升级grid

将安装包p13390677_112040_Linux-x86-64_3of7.zip解压,使用grid用户进行升级

[grid@zmkj1 grid]$ cd /tmp
[grid@zmkj1 grid]$ unzip p13390677_112040_Linux-x86-64_3of7.zip
[grid@zmkj1 grid]$ cd /tmp/grid
[grid@zmkj1 grid]$ unset ORACLE_SID
[grid@zmkj1 grid]$ unset ORACLE_BASE
[grid@zmkj1 grid]$ unset ORACLE_HOME

export DISPLAY=192.168.10.143:0.0,执行runInstaller,开始升级

software location 选择新版本所在的目录:

两个节点分别使用root用户执行脚本:/u01/app/11.2.0.4/grid/rootupgrade.sh

节点1:
[root@zmkj1 ~]# /u01/app/11.2.0.4/grid/rootupgrade.sh
Performing root user operation for Oracle 11g The following environment variables are set as:ORACLE_OWNER= gridORACLE_HOME=  /u01/app/11.2.0.4/gridEnter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: yCopying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: yCopying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File AnalyzerASM upgrade has started on first node.CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'zmkj1'
CRS-2673: Attempting to stop 'ora.crsd' on 'zmkj1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'zmkj1'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.zmkj.db' on 'zmkj1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.zmkj1.vip' on 'zmkj1'
CRS-2677: Stop of 'ora.zmkj1.vip' on 'zmkj1' succeeded
CRS-2672: Attempting to start 'ora.zmkj1.vip' on 'zmkj2'
CRS-2676: Start of 'ora.zmkj1.vip' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.zmkj.db' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'zmkj1'
CRS-2677: Stop of 'ora.DATADG.dg' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'zmkj1'
CRS-2677: Stop of 'ora.asm' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.eons' on 'zmkj1'
CRS-2677: Stop of 'ora.ons' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'zmkj1'
CRS-2677: Stop of 'ora.net1.network' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.eons' on 'zmkj1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'zmkj1' has completed
CRS-2677: Stop of 'ora.crsd' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.evmd' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.asm' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'zmkj1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.asm' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'zmkj1'
CRS-2677: Stop of 'ora.cssd' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'zmkj1'
CRS-2673: Attempting to stop 'ora.diskmon' on 'zmkj1'
CRS-2677: Stop of 'ora.gpnpd' on 'zmkj1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'zmkj1'
CRS-2677: Stop of 'ora.gipcd' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.diskmon' on 'zmkj1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'zmkj1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
OLR initialization - successful
Replacing Clusterware entries in inittabclscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@zmkj1 ~]# 节点2:
[root@zmkj2 ~]# /u01/app/11.2.0.4/grid/rootupgrade.sh
Performing root user operation for Oracle 11g The following environment variables are set as:ORACLE_OWNER= gridORACLE_HOME=  /u01/app/11.2.0.4/gridEnter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: yCopying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
[n]: yCopying coraenv to /usr/local/bin ...Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/11.2.0.4/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'zmkj2'
CRS-2673: Attempting to stop 'ora.crsd' on 'zmkj2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'zmkj2'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.CRS.dg' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.zmkj.db' on 'zmkj2'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'zmkj2'
CRS-2677: Stop of 'ora.scan1.vip' on 'zmkj2' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'zmkj1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.zmkj2.vip' on 'zmkj2'
CRS-2677: Stop of 'ora.zmkj2.vip' on 'zmkj2' succeeded
CRS-2672: Attempting to start 'ora.zmkj2.vip' on 'zmkj1'
CRS-2676: Start of 'ora.scan1.vip' on 'zmkj1' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'zmkj1'
CRS-2676: Start of 'ora.zmkj2.vip' on 'zmkj1' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'zmkj1' succeeded
CRS-2677: Stop of 'ora.CRS.dg' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.zmkj.db' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'zmkj2'
CRS-2677: Stop of 'ora.DATADG.dg' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'zmkj2'
CRS-2677: Stop of 'ora.asm' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.eons' on 'zmkj2'
CRS-2677: Stop of 'ora.ons' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'zmkj2'
CRS-2677: Stop of 'ora.net1.network' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.eons' on 'zmkj2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'zmkj2' has completed
CRS-2677: Stop of 'ora.crsd' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.evmd' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.asm' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'zmkj2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.asm' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'zmkj2'
CRS-2677: Stop of 'ora.cssd' on 'zmkj2' succeeded
CRS-2673: Attempting to stop 'ora.diskmon' on 'zmkj2'
CRS-2673: Attempting to stop 'ora.gipcd' on 'zmkj2'
CRS-2677: Stop of 'ora.diskmon' on 'zmkj2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'zmkj2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'zmkj2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
OLR initialization - successful
Replacing Clusterware entries in inittab
clscfg: EXISTING configuration version 5 detected.
clscfg: version 5 is 11g Release 2.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Started to upgrade the Oracle Clusterware. This operation may take a few minutes.
Started to upgrade the CSS.
Started to upgrade the CRS.
The CRS was successfully upgraded.
Successfully upgraded the Oracle Clusterware.
Oracle Clusterware operating version was successfully set to 11.2.0.4.0ASM upgrade has finished on last node.Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@zmkj2 ~]# 

grid升级完成。

升级完成后检查grid的版本:

[grid@zmkj2 ~]$ crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [11.2.0.4.0]
[root@zmkj2 ~]# crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [11.2.0.4.0]
[root@zmkj2 ~]# crsctl query crs softwareversion
Oracle Clusterware version on node [zmkj2] is [11.2.0.4.0]
[grid@zmkj2 ~]$

2、升级rdbms

[oracle@zmkj1 database]$ unset ORACLE_SID
[oracle@zmkj1 database]$ unset ORACLE_BASE
[oracle@zmkj1 database]$ unset ORACLE_HOME[oracle@zmkj1 database]$ ./runInstaller
Starting Oracle Universal Installer...Checking Temp space: must be greater than 120 MB.   Actual 3736 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 12266 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-11-01_02-09-00PM. Please wait ...[oracle@zmkj1 database]$ [root@zmkj1 ~]#

选择upgrade and existing database:

选择新的安装目录:

两节点分别执行root.sh。

3、升级数据字典

在节点1执行,shutdown节点2

升级完成

Oracle 11.2.0.1 rac升级到11.2.0.4相关推荐

  1. oracle 10.2 64位,Oracle 10.2.0.5 x64升级到11.2.0.3 x64

    说明:11g数据库现在新部署的数量也很多的,对于10g数据库,现在整理一下10g到11g的升级过程.10.2.0.2以上版本才能升级到11.2.0.3版本. 升级说明:10.2.0.5(64)-> ...

  2. aix oracle 10.2.0.1 升级 10.2.0.4,AIX Oracle RAC 升级到10.2.0.4.0要特别注意的问题 - 爱肯的专栏 ......

    AIX Oracle RAC 升级到10.2.0.4.0过程有如下报错(直接升级到10.2.0.4不需要应用Patch:6160398): root@bwgl_db2:/u01/app/oracle/ ...

  3. AIX Oracle RAC 升级到10.2.0.4.0要特别注意的问题

    AIX Oracle RAC 升级到10.2.0.4.0过程有如下报错(直接升级到10.2.0.4不需要应用Patch:6160398):  root@bwgl_db2:/u01/app/oracle ...

  4. 手动升级oracle,ORACLE 10.2.0.1手动升级到10.2.0.4

    ORACLE 10.2.0.1手动升级到10.2.0.4 1.解压zip包以及查看目录权限 p6810189_10204_Linux-x86-64.zip oracle@single-10g:/u01 ...

  5. 华为emui10.0能升级鸿蒙吗,华为正式发布EMUI 11,后续可优先升级到鸿蒙2.0

    原标题:华为正式发布EMUI 11,后续可优先升级到鸿蒙2.0 ZAKER 科技 9 月 10 日讯 今天下午,华为在东莞举行了 2020 年度华为开发者大会,并正式发布了鸿蒙系统 2.0 和 EMU ...

  6. oracle数据库升级失败,Oracle 11.2.0.1 rac 升级失败后,数据库降级方案(flashback database)...

    升级失败后,数据库降级方案(flashback database) 环境:Oracle 11.2.0.1 rac on redhat 5.8 Flashback database 准备工作 查看是否f ...

  7. oracle 9.2.0.2,在RedHat enterprise server 3 安装oracle9i 2.0.0.1 并升级到9.2.0.6

    oracle9i 2.0.4上个月从oracle网站下载没有安装在els3上. 参考了网上的一些文章,并根据文章的提示找了一些资料和补丁,完成了这次的安装.[@more@] 1.安装RedHat EL ...

  8. oracle 12.1.0.2.0 通过 DBBP 升级到 12.1.0.2.190416

    os: centos 7.4 db: oracle 12.1.0.2 oracle 12.1.0.2 开始提供了 DBBP 的升级方式(Database Proactive Bundle Patch) ...

  9. oracle 之 安装10.2.0.1 且 升级到 10.2.0.4

    一. centos 6.5 安装 oracle 10.2.0.1 1.安装操作系统,选择桌面环境 2.配置本地yum源 , 可参考 http://blog.csdn.net/zhang12345645 ...

最新文章

  1. Python 函数学习
  2. 网络推广离不开关键词的精准挖掘
  3. 杭电 HOJ 2553 N皇后问题 解题报告
  4. 华为云计算——FusionCompute创建虚拟机
  5. 帝国cms调用相关文章若没有则调取最新文章
  6. mysql relay_技术分享 | MySQL:产生大量小 relay log 的故障一例
  7. 字符指针+结构体排序(后缀子串排序)
  8. Ajax链接输出数据库
  9. python获取当前日期的前一天爆炸_python蒙特卡洛脚本模拟—挑战者号爆炸概率
  10. Android小白关于Activity,Fragment,Adapter之间传值的一些记录
  11. java远程获取linux文件_Java远程连接操作linux服务器,scp获取文件
  12. Transformer-XL 2
  13. Docker零基础入门指南(一):Docker介绍
  14. 神策分析 2.1 重磅上线!报警诊断、多主体分析、渠道追踪等赋能企业数字化经营...
  15. python实现多语言语种识别_Python检测多国语言
  16. Linux Puppet基础知识
  17. CVE和NVD的关系
  18. inner join 和 outer join 的区别
  19. vs2008链接错误的解决方法1:fatal error C1047,fatal error LNK1257
  20. 公共基础知识:笔的演变

热门文章

  1. linux deploy镜像容量扩容
  2. Vue+Element UI 树形控件整合下拉功能菜单(tree + dropdown +input)
  3. Oracle数据库上机练习2
  4. mysql处理emoji表情_Mysql处理emoji表情
  5. 任意斜率的中点画线算法
  6. 洛谷P1053篝火晚会题解--zhengjun
  7. 这几个视频提取音频的方法很实用,快来学习
  8. 视频提取音频 - 手机视频在线提取音频提取器
  9. 为什么说华为云WeLink是“最硬核”的协同办公工具?
  10. cobaltstrike如何安装使用(包含CS联动MSF详细用法!)? (゚益゚メ) 渗透测试