Oracle RAC ASM 实例 从10.2.0.1 升级到 10.2.0.4 说明


一. 说明

在官网看到一篇ASM 升级的文档,如下:

How To Upgrade ASM from 10.2 to 11.1 (RAC)

Unable To Open Database After ASM Upgrade From Release 11.1 To Release 11.2

RAC 下数据库的升级参考:

RedHat 5.4 Orcle RAC 数据库 从10.2.0.1升级到 10.2.0.4

几点说明:

1. Clusterware的版本必须要和DB 或者 ASM 的版本一致。 如果说要升级ASM 或者DB,那么就必须先要升级clusterware。

Either the release version of Oracle Clusterware must be equal to the ASM release to which you want to upgrade, or you must first upgrade Oracle Clusterware.   For example, you can upgrade ASM release 11.1.0.6 to 11.1.0.7 if Oracle Clusterware on your system is release 11.1.0.7, but you cannot do this if Oracle Clusterware is 11.1.0.6 or an earlier release.

2. 可以把ASM 和 DB 一起升级,如果只升级ASM 实例的话,就像官网里提供的方法:

(1)将新版本的ASM 安装到其他目录。 即安装数据库软件。

(2)用旧版本的ASM 启动实例实例。

(3)另开一个窗口,重新指定ORACLE_HOME,PATH等参数,指定到新版本的ORACLE软件目录。

(4)在这个窗口运行dbua,选择ASM 实例进行升级。

3. 在这个实验中,我们将DB 和 ASM 一起进行升级。 就不在分开升级。 因为虚拟机的空间不够折腾。 了解这个思路就可以了。

二. 查看RAC 信息

2.1 DB 版本信息

[oracle@rac1 ~]$ export ORACLE_SID=dave1

[oracle@rac1 ~]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 12 15:08:44 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, Real Application Clusters, OLAP and Data Mining options

SYS@dave1(rac1)>select * from  v$version;

BANNER

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

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod

PL/SQL Release 10.2.0.1.0 - Production

CORE    10.2.0.1.0      Production

TNS for Linux: Version 10.2.0.1.0 - Production

NLSRTL Version 10.2.0.1.0 - Production

SYS@dave1(rac1)>

2.2  ASM 实例版本

[oracle@rac1 ~]$ export ORACLE_SID=+ASM1

[oracle@rac1 ~]$ sqlplus / as sysdba;

SQL*Plus: Release 10.2.0.1.0 - Production on Thu May 12 18:19:29 2011

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production

With the Partitioning, Real Application Clusters, OLAP and Data Mining options

SYS@+ASM1(rac1)>

2.3  RAC 进程信息

[oracle@rac1 ~]$ cd /u01

[oracle@rac1 u01]$ sh crs_stat.sh

Name                           Target     State      Host

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

ora.dave.dave1.inst            ONLINE     ONLINE     rac1

ora.dave.dave2.inst            ONLINE     ONLINE     rac2

ora.dave.db                    ONLINE     ONLINE     rac1

ora.dave.taf.cs                ONLINE     ONLINE     rac1

ora.dave.taf.dave1.srv         ONLINE     ONLINE     rac1

ora.dave.taf.dave2.srv         ONLINE     ONLINE     rac2

ora.rac1.ASM1.asm              ONLINE     ONLINE     rac1

ora.rac1.LISTENER_RAC1.lsnr    ONLINE     ONLINE     rac1

ora.rac1.gsd                   ONLINE     ONLINE     rac1

ora.rac1.ons                   ONLINE     ONLINE     rac1

ora.rac1.vip                   ONLINE     ONLINE     rac1

ora.rac2.ASM2.asm              ONLINE     ONLINE     rac2

ora.rac2.LISTENER_RAC2.lsnr    ONLINE     ONLINE     rac2

ora.rac2.gsd                   ONLINE     ONLINE     rac2

ora.rac2.ons                   ONLINE     ONLINE     rac2

ora.rac2.vip                   ONLINE     ONLINE     rac2

三. 升级Clusterware

10.2.0.4的patch number 是:p6810189。

3.1 将升级包mout到linux系统

我的Patch 下到的本地的操作系统,网络又被网管限了速,所以直接就mount到linux上。

用root用户登陆系统,执行如下命令:

mount -o username=administrator,password=12345678 //192.168.3.115/Software /mnt

mount -o username=administrator,password=bailing520 //192.168.3.115/Software /mnt

3.2 停止相关的进程

3.2.1每个节点分别停止 EM和 isqlplus

[oracle@rac1 bin]$ emctl stop dbconsole

[oracle@rac1 bin]$ isqlplusctl stop

3.2.2  停止相关进程

这个可以用srvctl 命令来一个一个进行,也可以用crs_stop -all 进行。

这部分内容参考Blog:

Oracle RAC 启动与关闭

[oracle@rac1 u01]$ sh crs_stat.sh

Name                           Target     State      Host

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

ora.dave.dave1.inst            OFFLINE    OFFLINE

ora.dave.dave2.inst            OFFLINE    OFFLINE

ora.dave.db                    OFFLINE    OFFLINE

ora.dave.taf.cs                OFFLINE    OFFLINE

ora.dave.taf.dave1.srv         OFFLINE    OFFLINE

ora.dave.taf.dave2.srv         OFFLINE    OFFLINE

ora.rac1.ASM1.asm              OFFLINE    OFFLINE

ora.rac1.LISTENER_RAC1.lsnr    OFFLINE    OFFLINE

ora.rac1.gsd                   OFFLINE    OFFLINE

ora.rac1.ons                   OFFLINE    OFFLINE

ora.rac1.vip                   OFFLINE    OFFLINE

ora.rac2.ASM2.asm              OFFLINE    OFFLINE

ora.rac2.LISTENER_RAC2.lsnr    OFFLINE    OFFLINE

ora.rac2.gsd                   OFFLINE    OFFLINE

ora.rac2.ons                   OFFLINE    OFFLINE

ora.rac2.vip                   OFFLINE    OFFLINE

  • 1
  • 2
  • 3
  • 下一页

相关内容