oracle gi版本升级,如何升级ORACLE GI 12.1.0.1到12.1.0.2

如何升级ORACLE GI 12.1.0.1到12.1.0.2

原GI版本是12.1.0.1,安装目录为/u01/12.1.0.2/crs,现计划升级GI到12.1.0.2,目录为/u02/12.1.0.2/crs.

先停止数据库相关资源,但是不需要停GI

检查版本信息

[root@rac1 grid]# crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [12.1.0.1.0]

安装前检查

[grid@rac1 grid]$  ./runcluvfy.sh  stage -pre crsinst -upgrade -src_crshome /u01/12.1.0.2/crs -dest_crshome /u02/12.1.0.2/crs -dest_version 12.1.0.2.0 -verbose

Performing pre-checks for cluster services setup

Checking node reachability...

Check: Node reachability from node "rac1"

Destination Node                      Reachable?

------------------------------------  ------------------------

rac1                                  yes

rac2                                  yes

Result: Node reachability check passed from node "rac1"

Checking user equivalence...

...............................................

输出长长的一串

升级过程中保证所有节点都在线,CRS的所有服务都不能停

[root@rac1 grid]# crsctl check cluster -all

**************************************************************

rac1:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

rac2:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

在真正升级之前,需要消除GRID的ORACLE_HOME,ORACLE_BASE,两个节点都需要执行

[grid@rac1 grid]$ unset ORACLE_HOME

[grid@rac1 grid]$ unset ORACLE_BASE

运行安装程序,选择upgrade GI, 后续都是体力活

[grid@rac1 grid]$ ./runInstaller

根据安装提示在两个节点分别执行

[root@rac1 grid]# /u02/12.1.0.2/crs/rootupgrade.sh

Performing root user operation.

The following environment variables are set as:

ORACLE_OWNER= grid

.........................................

当第一个节点跑rootupgrade.sh脚本后,软件版本情况,软件已经更新,不过活动版本没有更新.

[root@rac1 grid]# crsctl query crs softwareversion

Oracle Clusterware version on node [rac1] is [12.1.0.2.0]

[root@rac1 grid]# crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [12.1.0.1.0]

第二个节点执行rootupgrade.sh后会执行活动版本更新

.......................................

Successfully taken the backup of node specific configuration in OCR.

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

2016/05/20 17:01:14 CLSRSC-478: Setting Oracle Clusterware active version on the last node to be upgraded

2016/05/20 17:01:14 CLSRSC-482: Running command: '/u02/12.1.0.2/crs/bin/crsctl set crs activeversion'

........................................

等待脚本完成后,可以看出活动版本已经到最新版本了.

[root@rac1 grid]# crsctl query crs activeversion

Oracle Clusterware active version on the cluster is [12.1.0.2.0]

[root@rac1 grid]# crsctl query crs softwareversion

Oracle Clusterware version on node [rac1] is [12.1.0.2.0]

重新设置所有节点的GRID的ORACLE_HOME,ORACLE_BASE到新路径下,至此升级GI完成.

[root@rac1 grid]# crsctl check cluster -all

**************************************************************

rac1:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

rac2:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

阅读(2155) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值