你好,游客 登录 注册 搜索
背景:
阅读新闻

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

[日期:2011-05-15] 来源:Linux社区  作者:tianlesoftware [字体:大 中 小]

4.1 停止相关进程

[Oracle@rac1 u01]$ sh crs_stat.sh

Name                           Target     State      Host

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

ora.dave.dave1.inst            ONLINE     OFFLINE

ora.dave.dave2.inst            ONLINE     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              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

[oracle@rac1 u01]$ crs_stop -all

Attempting to stop `ora.rac1.gsd` on member `rac1`

Attempting to stop `ora.rac2.gsd` on member `rac2`

Attempting to stop `ora.rac1.ons` on member `rac1`

Attempting to stop `ora.rac2.ons` on member `rac2`

Stop of `ora.rac1.ons` on member `rac1` succeeded.

Stop of `ora.rac2.gsd` on member `rac2` succeeded.

Stop of `ora.rac1.gsd` on member `rac1` succeeded.

Stop of `ora.rac2.ons` on member `rac2` succeeded.

Attempting to stop `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1`

Attempting to stop `ora.rac1.ASM1.asm` on member `rac1`

Attempting to stop `ora.rac2.ASM2.asm` on member `rac2`

Attempting to stop `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2`

Stop of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded.

Stop of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded.

Attempting to stop `ora.rac1.vip` on member `rac1`

Attempting to stop `ora.rac2.vip` on member `rac2`

Stop of `ora.rac1.vip` on member `rac1` succeeded.

Stop of `ora.rac2.vip` on member `rac2` succeeded.

Stop of `ora.rac1.ASM1.asm` on member `rac1` succeeded.

Stop of `ora.rac2.ASM2.asm` on member `rac2` succeeded.

[oracle@rac1 u01]$ sh crs_stat.sh

Name                           Target     State      Host

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

ora.dave.dave1.inst            ONLINE     OFFLINE

ora.dave.dave2.inst            ONLINE     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

[oracle@rac1 u01]$

4.2用Nomachine 工具连接上服务器,进行升级包的目录,运行runInstaller

在可视化的安装窗口选择ORACLE_HOME。看清楚,不要选错了。然后一下步进行安装。

4. 3  安装结束会提示用root用户在所有节点上运行一个脚本

/u01/app/oracle/product/10.2.0/db_1/root.sh

[root@rac1 ~]# /u01/app/oracle/product/10.2.0/db_1/root.sh

Running Oracle10 root.sh script...

The following environment variables are set as:

ORACLE_OWNER= oracle

ORACLE_HOME=  /u01/app/oracle/product/10.2.0/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying 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.sh script.

Now product-specific root actions will be performed.

五.  升级ASM 和DB 实例

在升级界面选择升级ASM, 它会提示我们的ASM 已经是最新版本了。 因为我们前面已经升级过了Oracle 软件,ASM 实例存在与ORACLE_HOME下。所以ASM 实例已经升级过了。

所以,我们直接选择升级DB 就好了。

这个升级需要1个小时左右的时间。

六.  升级完之后,在验证下ASM 和 DB 版本

6.1  ASM 版本:

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

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

SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 12 22:04:53 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

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

and Real Application Testing options

SYS@+ASM1(rac1)>

6.2  DB 版本

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

SQL*Plus: Release 10.2.0.4.0 - Production on Thu May 12 22:02:26 2011

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production

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

and Real Application Testing options

SYS@dave1(rac1)>

linux
相关资讯       Oracle教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款