Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形。即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用。GSD则是用于支持dbca,srvctl,oem等的交互工具。本文描述将这两个服务切换到online。

  1. 1、环境
  2. [root@linux2 ~]# cat /etc/issue
  3. Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
  4. Kernel \r on an \m
  5. [root@linux2 bin]# ./crsctl query crs activeversion
  6. Oracle Clusterware active version on the cluster is [11.2.0.1.0]
  7. 2、oc4j与所有的gsd处于offline
  8. [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
  9. ora.gsd        ora.gsd.type   OFFLINE   OFFLINE
  10. ora.linux1.gsd application    OFFLINE   OFFLINE
  11. ora.linux2.gsd application    OFFLINE   OFFLINE
  12. ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE
  13. 3、启动oc4j服务
  14. #使用srvctl 来启动oc4j服务
  15. [grid@linux2 ~]$ srvctl start oc4j
  16. OC4J could not be started
  17. PRCR-1079 : Failed to start resource ora.oc4j
  18. CRS-2501: Resource 'ora.oc4j' is disabled    #提示该服务处于disable状态
  19. #尝试使用crsctl来启动,依然失败
  20. [grid@linux2 ~]$ crsctl start res ora.oc4j -init
  21. CRS-2613: Could not find resource 'ora.oc4j'.
  22. CRS-4000: Command Start failed, or completed with errors.
  23. #下面先将状态置为enable状态
  24. [grid@linux2 ~]$ srvctl enable oc4j
  25. #再次启动成功
  26. [grid@linux2 ~]$ srvctl start oc4j
  27. [grid@linux2 ~]$ crs_stat -t | grep oc4j
  28. ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    linux2
  29. 4、启动gsd服务
  30. #查看节点linux1上所有的资源状态,可以看到输出的信息表明GSD也被disable了
  31. [grid@linux2 ~]$ srvctl status nodeapps -n linux1
  32. -n <node_name> option has been deprecated.
  33. VIP linux1-vip is enabled
  34. VIP linux1-vip is running on node: linux1
  35. Network is enabled
  36. Network is running on node: linux1
  37. GSD is disabled
  38. GSD is not running on node: linux1
  39. ONS is enabled
  40. ONS daemon is running on node: linux1
  41. eONS is enabled
  42. eONS daemon is running on node: linux1
  43. #下面查看节点linux2上所有的资源状态,也可以看到输出的信息表明GSD也被disable了
  44. [grid@linux2 ~]$ srvctl status nodeapps -n linux2
  45. -n <node_name> option has been deprecated.
  46. VIP linux2-vip is enabled
  47. VIP linux2-vip is running on node: linux2
  48. Network is enabled
  49. Network is running on node: linux2
  50. GSD is disabled
  51. GSD is not running on node: linux2
  52. ONS is enabled
  53. ONS daemon is running on node: linux2
  54. eONS is enabled
  55. eONS daemon is running on node: linux2
  56. #将所有的服务置于enable状态
  57. [grid@linux2 ~]$ srvctl enable nodeapps
  58. PRKO-2415 : VIP is already enabled on node(s): linux1,linux2
  59. PRKO-2416 : Network resource is already enabled.
  60. PRKO-2417 : ONS is already enabled on node(s): linux1,linux2
  61. PRKO-2418 : eONS is already enabled on node(s): linux1,linux2
  62. #再次查看GSD的状态已经变成enable了
  63. [grid@linux2 ~]$ srvctl status nodeapps
  64. VIP linux1-vip is enabled
  65. VIP linux1-vip is running on node: linux1
  66. VIP linux2-vip is enabled
  67. VIP linux2-vip is running on node: linux2
  68. Network is enabled
  69. Network is running on node: linux1
  70. Network is running on node: linux2
  71. GSD is enabled
  72. GSD is not running on node: linux1
  73. GSD is not running on node: linux2
  74. ONS is enabled
  75. ONS daemon is running on node: linux1
  76. ONS daemon is running on node: linux2
  77. eONS is enabled
  78. eONS daemon is running on node: linux1
  79. eONS daemon is running on node: linux2
  80. [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
  81. ora.gsd        ora.gsd.type   OFFLINE   OFFLINE
  82. ora.linux1.gsd application    OFFLINE   OFFLINE
  83. ora.linux2.gsd application    OFFLINE   OFFLINE
  84. #启动GSD服务
  85. [grid@linux2 ~]$ srvctl start nodeapps
  86. PRKO-2421 : Network resource is already started on node(s): linux1,linux2
  87. PRKO-2420 : VIP is already started on node(s): linux1,linux2
  88. PRKO-2420 : VIP is already started on node(s): linux1,linux2
  89. PRKO-2422 : ONS is already started on node(s): linux1,linux2
  90. PRKO-2423 : eONS is already started on node(s): linux1,linux2
  91. #验证GSD服务
  92. [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
  93. [grid@linux2 ~]$ crs_stat -t | grep gsd
  94. ora.gsd        ora.gsd.type   ONLINE    ONLINE    linux1
  95. ora.linux1.gsd application    ONLINE    ONLINE    linux1
  96. ora.linux2.gsd application    ONLINE    ONLINE    linux2
  97. #Author : Robinson
  98. #Blog   : http://blog.csdn.net/robinson_0612
  99. 5、关于GSD
  100. The Global Services Daemon (GSD) runs on each node with one GSD process per node.
  101. The GSD coordinates with the cluster manager to receive requests from clients such as the DBCA, EM,
  102. and the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown.
  103. The GSD is not an Oracle instance background process and is therefore not started with the Oracle instance.
  104. GSD与rac的管理工具dbca srvctl oem进行交互,用来完成实例的启动关闭等管理任务。
  105. 为了保证这些管理工具运行正常必须在所有的节点上先启动 gsd。
  106. 一个GSD进程支持在一个节点的多个rac.gsd进程,位于$ORACLE_HOME/bin目录下。
  107. 其log文件为$oracle_home /srvm/log/gsdaemon.log。
  108. 例如:
  109. 假设使用oem工具来启动一个实例,oem把该任务传递给相应的智能引擎,该智能引擎生成一个包含SRVCTL命令的脚本文件,
  110. GSD进程读取该脚本文件并且执行该脚本,最后GSD把执行结果返回给智能引擎,近而智能引擎返回给OEM。
  111. 又例如假设使用srvctl工具关闭所有的实例,GSD进程接受来自SRVCTL工具发出的请求,并
  112. 在本地节点上执行该请求,然后把执行结果返回给SRVCTL会话。
  113. 转:http://blog.csdn.net/leshami/article/details/8471546

Oracle 11g RAC oc4j/gsd Offline的更多相关文章

  1. Oracle 11g RAC环境下Private IP修改方法及异常处理

    Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...

  2. Oracle 11g RAC 修改各类IP地址

    Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...

  3. Oracle 11g RAC 环境下单实例非缺省监听及端口配置

    如果在Oracle 11g RAC环境下使用dbca创建单实例数据库后,Oracle会自动将其注册到缺省的1521端口及监听器.大多数情况下我们使用的为非缺省监听器以及非缺省的监听端口.而且在Orac ...

  4. Oracle 11g Rac 用rman实现把本地数据文件迁移到ASM共享存储中

    在Oracle Rac环境中,数据文件都是要存放在ASM共享存储上的,这样两个节点才能同时访问.而当你在某一节点下把数据文件创建在本地磁盘的时候,那么在另一节点上要访问该数据文件的时候就会报错,因为找 ...

  5. Oracle 11g RAC运维总结

    转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...

  6. 【Oracle 集群】Oracle 11G RAC教程之集群安装(七)

    Oracle 11G RAC集群安装(七) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总. ...

  7. Oracle 11g RAC 应用补丁简明版

    之前总结过<Oracle 11.2.0.4 RAC安装最新PSU补丁>, 这次整理为简明版,忽略一切输出的显示,引入一些官方的说明,增加OJVM PSU的补丁应用. 环境:RHEL6.5 ...

  8. Oracle 11g RAC停止和启动步骤

    关闭前备份控制文件/参数文件:   sqlplus / as sysdba alter database backup controlfile to '/home/oracle/control.ctl ...

  9. oracle 11g RAC安装节点二执行结果错误CRS-5005: IP Address: 192.168.1.24 is already in use in the network

    [root@testdb11b ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInvento ...

随机推荐

  1. HDU5569/BestCoder Round #63 (div.2) C.matrix DP

    matrix Problem Description Given a matrix with n rows and m columns ( n+m is an odd number ), at fir ...

  2. Java IO(二)

    字节流 字符流: FileReader FileWriter BufferedReader BufferedWriter 字节流: FileInputStream FileOutputStream B ...

  3. Java常用类库

    System System:类中的方法和属性都是静态的. out:标准输出,默认是控制台. in:标准输入,默认是键盘. System描述系统一些信息.获取系统属性信息:Properties getP ...

  4. WebSocket API简介

    WebSocket是html5新增加的一种通信协议,目前流行的浏览器都支持这个协议,例如Chrome,Safari,Firefox,Opera,IE等等,对该协议支持最早的应该是chrome,从chr ...

  5. jmeter 异步子请求测试随笔

    好久没写技术类的博客了,都不知道自己都在忙啥.... 最近陆续遇到了一些异步子请求的测试需求,比如打开某一个页面A,A页面里的js会再调用B,C,D,E等请求,针对这个页面的测试,我最近做了一些思考: ...

  6. Android核心分析之二十四Android GDI之显示缓冲管理

    Android GDI之屏幕设备管理-动态链接库 万丈高楼从地起,从最根源的硬件帧缓冲区开始.我们知道显示FrameBuffer在系统中就是一段内存,GDI的工作就是把需要输出的内容放入到该段内存的某 ...

  7. JSX架构及注释

    一.架构 二.注释 <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset=&q ...

  8. React的CSS

    1.代码 <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="U ...

  9. Android百度地图开发05之公交信息检索 + 路线规划

    在上一篇blog中介绍过POI检索的使用,本篇blog主要介绍公交信息检索和线路规划的内容. 公交信息检索 实际上,公交信息检索与POI检索.在线建议检索非常相似,也是把你需要检索的信息发送给百度地图 ...

  10. Mac 的“任务管理器” —— 活动监视器

    昨天关机时,提示说 Safari 阻止了关机程序,请先关闭 Safari .再看 Safari 的退出按钮已灰.知道是 Safari 的进程僵死了. 根据对 Windows 使用的经验,首先想到了“任 ...