下面的操作是一套基于Redhat 5.4 上面安装的 oracle 11g R2 11.2.0.3  rac来执行的。

通过观察命令的输出信息,我们可以分析出,oracle grid堆栈的关闭过程。

[root@node2-11gr2-rac ~]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.crsd' on 'node2-11gr2-rac'  ==先停止ora.crsd
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.jerry.db' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.oc4j' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.cvu' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.node2-11gr2-rac.vip' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.scan1.vip' on 'node2-11gr2-rac' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'node1-11gr2-rac'
CRS-2677: Stop of 'ora.node2-11gr2-rac.vip' on 'node2-11gr2-rac' succeeded
CRS-2672: Attempting to start 'ora.node2-11gr2-rac.vip' on 'node1-11gr2-rac'
CRS-2677: Stop of 'ora.jerry.db' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'node2-11gr2-rac'
CRS-2676: Start of 'ora.scan1.vip' on 'node1-11gr2-rac' succeeded
CRS-2676: Start of 'ora.node2-11gr2-rac.vip' on 'node1-11gr2-rac' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'node1-11gr2-rac'
CRS-2677: Stop of 'ora.DATADG.dg' on 'node2-11gr2-rac' succeeded
CRS-2677: Stop of 'ora.registry.acfs' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.GRIDDG.dg' on 'node2-11gr2-rac'
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'node1-11gr2-rac' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'node2-11gr2-rac' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'node1-11gr2-rac'
CRS-2677: Stop of 'ora.cvu' on 'node2-11gr2-rac' succeeded
CRS-2672: Attempting to start 'ora.cvu' on 'node1-11gr2-rac'
CRS-2676: Start of 'ora.cvu' on 'node1-11gr2-rac' succeeded
CRS-2676: Start of 'ora.oc4j' on 'node1-11gr2-rac' succeeded
CRS-2677: Stop of 'ora.GRIDDG.dg' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.asm' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.ons' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.net1.network' on 'node2-11gr2-rac' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'node2-11gr2-rac' has completed
CRS-2677: Stop of 'ora.crsd' on 'node2-11gr2-rac' succeeded
===这个这里ora.crsd相关的服务关闭结束
CRS-2673: Attempting to stop 'ora.mdnsd' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.ctssd' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.evmd' on 'node2-11gr2-rac'
CRS-2673: Attempting to stop 'ora.asm' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.evmd' on 'node2-11gr2-rac' succeeded                 ==关闭ora.evmd
CRS-2677: Stop of 'ora.ctssd' on 'node2-11gr2-rac' succeeded                ==关闭ora.ctssd
CRS-2677: Stop of 'ora.mdnsd' on 'node2-11gr2-rac' succeeded                ==关闭ora.mdnsd
CRS-2677: Stop of 'ora.drivers.acfs' on 'node2-11gr2-rac' succeeded         ==关闭ora.drivers.acfs
CRS-2677: Stop of 'ora.asm' on 'node2-11gr2-rac' succeeded                  ==关闭asm实例
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'node2-11gr2-rac'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'node2-11gr2-rac' succeeded  ==关闭haip
CRS-2673: Attempting to stop 'ora.cssd' on 'node2-11gr2-rac'                     
CRS-2677: Stop of 'ora.cssd' on 'node2-11gr2-rac' succeeded                    ==关闭ora.cssd
CRS-2673: Attempting to stop 'ora.gipcd' on 'node2-11gr2-rac'                  ==关闭ora.gipcd
CRS-2677: Stop of 'ora.gipcd' on 'node2-11gr2-rac' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'node2-11gr2-rac'                  ==关闭ora.gpnpd
CRS-2677: Stop of 'ora.gpnpd' on 'node2-11gr2-rac' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'node2-11gr2-rac' has completed
CRS-4133: Oracle High Availability Services has been stopped.                  ==关闭ohasd.bin

通过上面的日志可以判断oracle grid infrastructure关闭的过程大致如下:

1、先关闭ora.crsd服务,这个过程中所有依赖于crsd的服务必须关闭,这包括

Listener/SCAN_Listener/VIP/Database Instance/SCAN VIP/ASM DISKGROUP(不包含OCR和VOTING DISK的磁

盘组)

2、在crsd服务停止后,对ASM实例执行shutdown immediate操作,这样OCR和Voting Disk所在的VG也就dismount,这个时候ASM的实例才关闭完成。

3、接下来依次关闭ora.evmd ora.ctssd ora.mdnsd ora.drivers.acfs haip ora.cssd等服务

4、最后关闭ora.gipcd ora.gpnpd ohasd.bin

查看asm的告警日志知道asm instance的关闭过程:

SQL> ALTER DISKGROUP DATADG DISMOUNT 
NOTE: cache dismounting (clean) group 1/0x3AE4D6AC (DATADG)
NOTE: messaging CKPT to quiesce pins Unix process pid: 26078, image: oracle@node1-11gr2-rac (TNS V1-V3)
Tue Apr 17 15:54:07 2012
NOTE: LGWR doing clean dismount of group 1 (DATADG)
NOTE: LGWR closing thread 2 of diskgroup 1 (DATADG) at ABA 23.2504
NOTE: LGWR released thread recovery enqueue
Tue Apr 17 15:54:07 2012
freeing rdom 1
Tue Apr 17 15:54:07 2012
NOTE: client +ASM1:asmvol deregistered
Tue Apr 17 15:54:07 2012
NOTE: detached from domain 1
NOTE: cache dismounted group 1/0x3AE4D6AC (DATADG)
Tue Apr 17 15:54:07 2012
GMON dismounting group 1 at 7 for pid 32, osid 26078
NOTE: Disk  in mode 0x8 marked for de-assignment
SUCCESS: diskgroup DATADG was dismounted   ==关闭database使用的DG比较顺利
NOTE: cache deleting context for group DATADG 1/0x3ae4d6ac
SUCCESS: ALTER DISKGROUP DATADG DISMOUNT 
SQL> ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:54:18 2012
GMON querying group 2 at 8 for pid 18, osid 25835
Tue Apr 17 15:54:18 2012
NOTE: Instance updated compatible.asm to 11.2.0.0.0 for grp 2
Tue Apr 17 15:54:18 2012
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDDG" precludes its dismount

==因为OCR还在使用,因此这个DG无法dismount
ERROR: ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:54:28 2012
SQL> ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:54:38 2012
GMON querying group 2 at 9 for pid 18, osid 25835
Tue Apr 17 15:54:38 2012
NOTE: Instance updated compatible.asm to 11.2.0.0.0 for grp 2
Tue Apr 17 15:54:38 2012
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDDG" precludes its dismount
ERROR: ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:54:48 2012
SQL> ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:54:58 2012
GMON querying group 2 at 10 for pid 18, osid 25835
Tue Apr 17 15:54:58 2012
NOTE: Instance updated compatible.asm to 11.2.0.0.0 for grp 2
Tue Apr 17 15:54:58 2012
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDDG" precludes its dismount
ERROR: ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:55:08 2012
SQL> ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:55:18 2012
GMON querying group 2 at 11 for pid 18, osid 25835
Tue Apr 17 15:55:18 2012
NOTE: Instance updated compatible.asm to 11.2.0.0.0 for grp 2
Tue Apr 17 15:55:18 2012
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDDG" precludes its dismount
ERROR: ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:55:28 2012
SQL> ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:55:38 2012
GMON querying group 2 at 12 for pid 18, osid 25835
Tue Apr 17 15:55:38 2012
NOTE: Instance updated compatible.asm to 11.2.0.0.0 for grp 2
Tue Apr 17 15:55:38 2012
ORA-15032: not all alterations performed
ORA-15027: active use of diskgroup "GRIDDG" precludes its dismount
ERROR: ALTER DISKGROUP GRIDDG DISMOUNT 
Tue Apr 17 15:55:49 2012
NOTE: client exited [25870]

Tue Apr 17 15:55:50 2012
NOTE: ASMB process exiting due to lack of ASM file activity for 1 seconds

在ora.crsd关闭后,确认没有人使用asm了,就开始关闭实例。
Tue Apr 17 15:55:50 2012
Shutting down instance (immediate)
Shutting down instance: further logons disabled
Stopping background process MMNL
Stopping background process MMON
License high water mark = 7
SQL> ALTER DISKGROUP ALL DISMOUNT
NOTE: cache dismounting (clean) group 2/0x3AE4D6AD (GRIDDG)
NOTE: messaging CKPT to quiesce pins Unix process pid: 25845, image: oracle@node1-11gr2-rac (TNS V1-V3)
Tue Apr 17 15:55:54 2012
NOTE: LGWR doing clean dismount of group 2 (GRIDDG)
NOTE: LGWR closing thread 2 of diskgroup 2 (GRIDDG) at ABA 28.222
NOTE: LGWR released thread recovery enqueue
Tue Apr 17 15:55:54 2012
freeing rdom 2
Tue Apr 17 15:55:55 2012
NOTE: detached from domain 2
NOTE: cache dismounted group 2/0x3AE4D6AD (GRIDDG)
Tue Apr 17 15:55:55 2012
GMON dismounting group 2 at 13 for pid 23, osid 25845
NOTE: Disk  in mode 0x8 marked for de-assignment
NOTE: Disk  in mode 0x8 marked for de-assignment
NOTE: Disk  in mode 0x8 marked for de-assignment
SUCCESS: diskgroup GRIDDG was dismounted  ==OCR所在的磁盘组可以dismount了,asm实例可以关闭了。
NOTE: cache deleting context for group GRIDDG 2/0x3ae4d6ad
SUCCESS: ALTER DISKGROUP ALL DISMOUNT
Tue Apr 17 15:55:56 2012
Stopping background process VKTM
Tue Apr 17 15:56:00 2012
NOTE: client +ASM1:asmvol registered, osid 26290, mbr 0x0
NOTE: client +ASM1:asmvol deregistered
Tue Apr 17 15:56:01 2012
freeing rdom 0
Tue Apr 17 15:56:04 2012
Instance shutdown complete

通过asm的告警日志可以看到先关闭了ora.crsd服务后,再关闭ora.asm实例的。

ORACLE 11g R2 RAC群集堆栈的关闭过程分析相关推荐

  1. oracle 11g r2 rac到单实例的dg

    oracle 11g r2 rac到单实例的dg 1 主备环境说明 rac环境--primary CentOS release 6.5 (Final) hostname rac1 rac2 ip 10 ...

  2. Oracle 11g R2+RAC+ASM+redhat安装详解1

    Oracle RAC是Oracle Real Application Cluster的简写,官方中文文档一般翻译为"真正应用集群",它一般有两台或者两台以上同构计算机及共享存储设备 ...

  3. Oracle 11G R2 RAC中的scan ip 的用途和基本原理【转】

    Oracle 11G R2 RAC增加了scan ip功能,在11.2之前,client链接数据库的时候要用vip,假如你的cluster有4个节点,那么客户端的tnsnames.ora中就对应有四个 ...

  4. Oracle 11G R2 RAC 启动报错:ORA-01078 ORA-01565 ORA-17503 ORA-12547 处理方法

    Oracle 11G R2 RAC 启动报错:ORA-01078 ORA-01565 ORA-17503 ORA-12547 处理方法 前几天搭建的RAC测试环境:RedHat 6.8   grid ...

  5. Oracle 11g R2 RAC Hands on Training RAC 性能优化

    教程网址:  Oracle中国公司作品:Oracle 11g R2 RAC Hands on Training - 1 在线播放:http://www.boobooke.com/v/bbk3464 O ...

  6. Oracle 11g R2 RAC 高可用连接特性

    转自-阿里巴巴许春值 1.scan概念 什么叫 SCAN,SCAN (Single Client Access Name) 是 Oracle 从11g R2 开始推出的,客户端可以通过 SCAN 特性 ...

  7. oracle 11g r2 rac中节点时间不同步,Oracle11gR2安装RAC错误之--时钟不同步

    系统环境: 操作系统:RedHat EL5 Cluster: Oracle GI(Grid Infrastructure) Oracle: Oracle 11.2.0.1.0 如图所示:RAC 系统架 ...

  8. oracle 11g r2 rac中节点时间不同步,Oracle 11gR2 安装RAC错误之--时钟不同步

    系统环境: 操作系统:RedHat EL5 Cluster: Oracle GI(Grid Infrastructure) Oracle: Oracle 11.2.0.1.0 如图所示:RAC 系统架 ...

  9. oracle集群rac无法访问,解决Oracle 11g R2 RAC 无法在客户端通过scanIP连接数据库

    安装完11g rac后,在10g的客户端的 tnsnames.ora中配置好,scanip,但是无法访问,报错为目标主机不存在,折腾了很久,没弄明白,后面查到,系统初始化参数里有local_liste ...

最新文章

  1. Android 之Tasks和Back Stack(任务和返回栈)
  2. AI时代,谈数据分析时我们要谈些什么?
  3. _CRT_SECURE_NO_WARNINGS错误提示,解决办法
  4. 【FI模块学习笔记】 固定资产概述(上)
  5. JavaFX教程–基础
  6. linux 磁盘科隆,Linux中ln命令用法详解(硬链接)
  7. RTT的IPC机制篇——邮箱
  8. java c 转换_java和c通信相关的数据类型转换
  9. java多线程编程(三)- 线程的创建
  10. 51Nod-1383 整数分解为2的幂【数列】
  11. MNIST数据集使用详解
  12. c语言打码软件官方下载,触动精灵人工打码软件
  13. c1200 写频软件_金飞讯写频软件-金飞讯a66写频软件(金飞讯a66对讲机写频软件)1.0 一键安装版-东坡下载...
  14. python 邮件分类_python_NLP实战之中文垃圾邮件分类
  15. 惠斯特电桥平衡条件的证明
  16. UI设计中线性图标设计总结
  17. OPENMP学习笔记(1)——简介,模型,运行
  18. 计算机一级字幕设置,字幕怎么用-看电影没字幕怕什么!老司机教你手动设置字幕!...
  19. iphone连接linux系统电脑,为什么iphone连不上电脑 多种解决方法【图文教程】
  20. linux服务安装与配置(二):安装xinetd服务

热门文章

  1. MySQL中获取天、周、月等数据
  2. Nodejs连接mysql的增、删、改、查操作
  3. Mysql 索引的基础(下)
  4. C#递归的应用实例详解
  5. s11.1 lsof:查看进程打开的文件
  6. MySQL(3)数据库用户管理
  7. 支持驱动最好的linux软件,Linux平台设备和驱动
  8. hihocoder#1041 : 国庆出游(DFS)
  9. 宜搭数据量扩容升级公告
  10. 排查指南 | 两个案例学会从埋点排查 iOS 离线包