当前位置:  数据库>oracle

Oracle RAC 10.2.0.1升级至10.2.0.4操作笔记

    来源: 互联网  发布时间:2017-06-03

    本文导语: ============================================================Oracle® Database 10g Release 2 (10.2.0) RAC for RedHat4Oracle Rac 10.2.0.1升级至10.2.0.4============================================================升级集群件-滚动升级 升级数据库软件-停用后升级 升级数据库 共...

============================================================
Oracle® Database 10g Release 2 (10.2.0) RAC for RedHat4
Oracle Rac 10.2.0.1升级至10.2.0.4
============================================================
升级集群件-滚动升级

升级数据库软件-停用后升级

升级数据库

共计耗时5小时Orz... 

第一部分:集群件滚动升级【OUI crs_home】 

1、系统环境 

操作系统版本

[10:42:13oracle@node1 ~]uname -a

Linux node1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

[10:42:17oracle@node1 ~] 

集群件版本

[10:42:18oracle@node1 ~]crsctl query crs softwareversion

CRS software version on node [node1] is [10.2.0.1.0]

[10:42:27oracle@node1 ~]

 

数据库版本

[10:43:08oracle@node1 ~]sqlplus / as sysdba

 

SQL*Plus: Release 10.2.0.1.0 - Production on Fri May 28 10:43:11 2010

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

 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

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

 

SYS@NODE1:null1>select * from v$version;

 

BANNER

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

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

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

 

集群状态

[10:44:55oracle@node1 ~]crs_stat -t

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node1

ora....name.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE ONLINE node2

ora....l1.inst application ONLINE ONLINE node1

ora....l2.inst application ONLINE ONLINE node2

ora.dba.rac.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE ONLINE node1

ora....ll2.srv application ONLINE ONLINE node2

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

 

2、关闭节点1

 

关闭节点1 dbconsole

[11:14:47oracle@node1 db_1]emctl stop dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

http://node1.wang.com:1158/em/console/aboutApplication

Stopping Oracle Enterprise Manager 10g Database Control ...

... Stopped.

 

关闭节点1 isqlplus

[11:15:03oracle@node1 db_1]isqlplusctl stop

iSQL*Plus 10.2.0.1.0

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

getnameinfo failed

getnameinfo failed

getnameinfo failed

getnameinfo failed

iSQL*Plus instance on port 5560 is not running ...

 

关闭节点1 instance

[11:15:26oracle@node1 db_1]srvctl stop instance -d dba -i null1

 

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node1

ora....name.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE ONLINE node2

ora....l1.inst application OFFLINE OFFLINE

ora....l2.inst application ONLINE ONLINE node2

ora.dba.rac.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE OFFLINE

ora....ll2.srv application ONLINE ONLINE node2

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

关闭节点1 ASM

[11:17:22oracle@node1 db_1]srvctl stop asm -n node1

 

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node1

ora....name.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE ONLINE node2

ora....l1.inst application OFFLINE OFFLINE

ora....l2.inst application ONLINE ONLINE node2

ora.dba.rac.cs application ONLINE ONLINE node1

ora....ll1.srv application ONLINE OFFLINE

ora....ll2.srv application ONLINE ONLINE node2

ora....SM1.asm application OFFLINE OFFLINE

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

关闭节点1 NODEAPPS

[11:18:27oracle@node1 db_1]srvctl stop nodeapps -n node1

 

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node2

ora....name.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node2

ora....l1.inst application OFFLINE OFFLINE

ora....l2.inst application ONLINE ONLINE node2

ora.dba.rac.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE OFFLINE

ora....ll2.srv application ONLINE ONLINE node2

ora....SM1.asm application OFFLINE OFFLINE

ora....E1.lsnr application OFFLINE OFFLINE

ora.node1.gsd application OFFLINE OFFLINE

ora.node1.ons application OFFLINE OFFLINE

ora.node1.vip application OFFLINE OFFLINE

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

3、升级节点1 集群件

 

[11:23:39oracle@node1 oracle_linux_64]unzip p6810189_10204_Linux-x86-64.zip

 

[11:23:58oracle@node1 Disk1]./runInstaller

 

To complete the installation of this patchset, you must perform the following tasks on each node:

 

1.Log in as the root user.

2.As the root user, perform the following tasks:

 

a.Shutdown the CRS daemons by issuing the following command:

/u01/app/oracle/product/10.2.0/crs/bin/crsctl stop crs

b.Run the shell script located at:

/u01/app/oracle/product/10.2.0/crs/install/root102.sh

This script will automatically start the CRS daemons on the

patched node upon completion.

 

3.After completing this procedure, proceed to the next node and repeat.

 

 

[11:31:04root@node1 ~]crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

 

[11:31:27root@node1 ~]/u01/app/oracle/product/10.2.0/crs/install/root102.sh

Creating pre-patch directory for saving pre-patch clusterware files

Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs

Relinking some shared libraries.

 

Relinking of patched files is complete.

WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root

WARNING: directory '/u01/app/oracle/product' is not owned by root

WARNING: directory '/u01/app/oracle' is not owned by root

WARNING: directory '/u01/app' is not owned by root

WARNING: directory '/u01' is not owned by root

Preparing to recopy patched init and RC scripts.

Recopying init and RC scripts.

Startup will be queued to init within 30 seconds.

/etc/profile: line 55: ulimit: max user processes: cannot modify limit: Operation not permitted

Starting up the CRS daemons.

Waiting for the patched CRS daemons to start.

This may take a while on some systems.

.

10204 patch successfully applied.

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

Successfully accumulated necessary OCR keys.

Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.

node :

node 1: node1 node1-priv node1

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

Operation successful.

clscfg -upgrade completed successfully

[11:35:41root@node1 ~]

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node2

ora....name.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node2

ora....l1.inst application ONLINE ONLINE node1

ora....l2.inst application ONLINE ONLINE node2

ora.dba.rac.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....ll2.srv application ONLINE ONLINE node2

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

4、关闭节点2

[11:42:41root@node1 ~]su - oracle

[11:42:43oracle@node1 db_1]ssh node2

Last login: Thu May 27 11:14:50 2010 from node2.wang.com

 

关闭节点2 dbconsole

[11:42:45oracle@node2 ~]emctl stop dbconsole

TZ set to PRC

Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0

Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.

http://node1.wang.com:1158/em/console/aboutApplication

Stopping Oracle Enterprise Manager 10g Database Control ...

... Stopped.

[11:43:05oracle@node2 ~]

 

关闭节点2 isqlplus

[11:43:07oracle@node2 ~]isqlplusctl stop

iSQL*Plus 10.2.0.1.0

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

getnameinfo failed

getnameinfo failed

getnameinfo failed

getnameinfo failed

iSQL*Plus instance on port 5560 is not running ...

 

关闭节点2 instance

[11:43:37oracle@node2 ~]srvctl stop instance -d dba -i null2

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node2

ora....name.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....l1.inst application ONLINE ONLINE node1

ora....l2.inst application OFFLINE OFFLINE

ora.dba.rac.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....ll2.srv application ONLINE OFFLINE

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application ONLINE ONLINE node2

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

关闭节点2 ASM

[11:45:25oracle@node2 ~]srvctl stop asm -n node2

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node2

ora....name.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....l1.inst application ONLINE ONLINE node1

ora....l2.inst application OFFLINE OFFLINE

ora.dba.rac.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....ll2.srv application ONLINE OFFLINE

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application OFFLINE OFFLINE

ora....E2.lsnr application ONLINE ONLINE node2

ora.node2.gsd application ONLINE ONLINE node2

ora.node2.ons application ONLINE ONLINE node2

ora.node2.vip application ONLINE ONLINE node2

============================================================

 

关闭节点2 NODEAPPS

[11:46:45oracle@node2 ~]srvctl stop nodeapps-n node2

============================================================

Name Type Target State Host

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

ora.dba.db application ONLINE ONLINE node2

ora....name.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....l1.inst application ONLINE ONLINE node1

ora....l2.inst application OFFLINE OFFLINE

ora.dba.rac.cs application ONLINE ONLINE node2

ora....ll1.srv application ONLINE ONLINE node1

ora....ll2.srv application ONLINE OFFLINE

ora....SM1.asm application ONLINE ONLINE node1

ora....E1.lsnr application ONLINE ONLINE node1

ora.node1.gsd application ONLINE ONLINE node1

ora.node1.ons application ONLINE ONLINE node1

ora.node1.vip application ONLINE ONLINE node1

ora....SM2.asm application OFFLINE OFFLINE

ora....E2.lsnr application OFFLINE OFFLINE

ora.node2.gsd application OFFLINE OFFLINE

ora.node2.ons application OFFLINE OFFLINE

ora.node2.vip application OFFLINE OFFLINE


    
 
 

您可能感兴趣的文章:

  • 如何升级Oracle 9i到10g
  • Oracle发布Oracle VM 2.2升级虚拟化平台
  • Oracle数据库在Linux AS4升级
  • Oracle10201 RAC升级到10204后导出数据时报EXP-00056错误
  • Oracle RAC 10.2.0.1升级到10.2.0.4
  • VMware中linux环境下oracle安装图文教程(二)ORACLE 10.2.05版本的升级补丁安装
  • oracle9204升级到9206笔记
  • Linux下升级Oracle 10
  • 2008年Oracle错误、备份、升级等最热门问题
  • Oracle 10201 RAC升级到10204
  • 将Oracle表空间升级为本地托管模式
  • Linux下静默安装,升级和删除Oracle客户端
  • ORACLE日期相关操作
  • Linux下如何用C语言操作Oracle数据库相关的图书推荐
  • Oracle终于涉入支持Linux操作系统了
  • Linux平台下Oracle的操作
  • linux c 怎样利用pro*c/c++操作 win2000 下 oracle 谢谢
  • Window客户端通过ADO是否能够连接和操作Unix平台下的Oracle数据库?
  • Oracle将字符编码从GBK转到UTF8,如何操作比较稳妥?
  • 如何设定linux red hat 9的oracle9,让window的电脑可以操作数据库
  • linux oracle数据库删除操作指南
  • Linux环境中Oracle数据导入与导出备份操作
  • Oracle针对数据库某一行进行操作的时候,如何将这一行加行锁
  • oracle的plsql里有没有位操作的功能
  • fedora core5 (FC5) 下面不能装 Oracle 10g 么? (检查操作系统就通不过啊,晕)
  • Linux操作系统下Oracle数据库多实例启动方式及修改内存
  • docker中文入门学习手册 iis7站长之家
  • 一个关于JAVA操作oracle数据库时UPDATE权限的问题
  • Oracle中操作分页
  • Oracle 数据库操作技巧集
  • secureCRT远程连接服务器操作oracle数据库出现的问题
  •  
    本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
    本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • Oracle 免费送出硬纸板的笔记本电脑?!
  • Linux+Oracle学习笔记
  • Oracle 10G进程体系学习笔记
  • Linux 下 Oracle 命令学习笔记
  • Linux下安装oracle问题笔记
  • oracle 技巧学习笔记
  • Oracle数据库基本知识学习笔记
  • 如何在linux + text下安装oracle8/9,我的笔记本是dell latitude d600,我找不到显卡驱动
  • Oracle 下 spfile和pfile使用笔记
  • Linux Oracle 10g 新手笔记
  • Oracle学习笔记(六)
  • Linux下安装Oracle数据库完整笔记
  • ORACLE学习笔记-添加更新数据函数篇
  • Solaris 10 U3安装Oracle 10g R2实例笔记
  • Linux系统下安装Oracle数据库笔记
  • oracle学习笔记(二)
  • ORACLE学习笔记-新建用户及建表篇
  • ORACLE学习笔记-查询篇
  • Oracle笔记之简单查询、限定查询和排序
  • Oracle学习笔记(五)
  • Oracle 12c发布简单介绍及官方下载地址
  • 在linux下安装oracle,如何设置让oracle自动启动!也就是让oracle那个服务自动启动,不是手动的
  • oracle 11g最新版官方下载地址
  • 请问su oracle 和su - oracle有什么不同?
  • Oracle 数据库(oracle Database)Select 多表关联查询方式
  • 虚拟机装Oracle R12与Oracle10g
  • Oracle数据库(Oracle Database)体系结构及基本组成介绍
  • Oracle 数据库开发工具 Oracle SQL Developer
  • 如何设置让Oracle SQL Developer显示的时间包含时分秒
  • Oracle EBS R12 支持 Oracle Database 11g
  • Oracle 10g和Oracle 11g网格技术介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,