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

[python] view plaincopy print?
  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

转载于:https://www.cnblogs.com/andy6/p/5877384.html

Oracle 11g RAC oc4j/gsd Offline相关推荐

  1. Oracle 11g RAC 添加新节点及故障解决案例

    Oracle 11g RAC 添加新节点及故障解决案例 系统环境: 操作系统:RedHat EL55 集群:      Oracle 11g GI Oracle:   Oracle 11gR2 一.配 ...

  2. Oracle 11g RAC 修改IP

    Oracle 11g RAC 修改IP 在RAC环境下修改ip地址,会造成数据库停机,所以在搭建.配置RAC前,必须做好ip规划,而主机名是不允许修改的,如果修改必须重新安装CRS. 系统环境: 操作 ...

  3. Centos 7.7下Oracle 11g RAC

    Centos 7.7下Oracle 11g RAC部署 操作系统环境 1.1linux操作系统配置 两台主机IP规划信息如下: rac1 rac2 Ip:192.168.198.180 Ip:192. ...

  4. Oracle Study之--Oracle 11g RAC添加节点错误

    Oracle Study之--Oracle 11g RAC添加节点错误 系统环境:     操作系统:RedHat EL5     Cluster:  Oracle 11gR2 Grid     Or ...

  5. VMware下Oracle 11g RAC环境搭建

    主机操作系统:windows 10  虚拟机VMware12:两台Oracle Linux R6 U3 x86_64  Oracle Database software: Oracle11gR2  C ...

  6. Oracle 11g RAC搭建(VMware环境)

    Oracle 11g RAC搭建(VMware环境) Oracle 11g RAC搭建(VMware环境) 安装环境与网络规划 安装环境 网络规划 环境配置 1. 通过SecureCRT建立命令行连接 ...

  7. VMWARE下Oracle 11g RAC搭建

    Oracle 11g RAC搭建(VMware环境) Oracle 11g RAC搭建VMware环境 安装环境与网络规划 安装环境 网络规划 环境配置 通过SecureCRT建立命令行连接 关闭防火 ...

  8. Oracle 11g RAC 修改服务器各类ip地址【转载】

    此文转载自"架构君" ,地址:https://javajgs.com/archives/72358 此文说明较为详细,所以留作参考,详细内容如下. Oracle 11g RAC 修 ...

  9. Oracle 11g RAC CRS-4535/ORA-15077

    分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 新安装了 ...

  10. Oracle 11g RAC 原地升级到 19c

    作者 | JiekeXu 来源 |公众号 JiekeXu DBA之路(ID: JiekeXu_IT) 如需转载请联系授权 | (个人微信 ID:JiekeXu_DBA) 大家好,我是 JiekeXu, ...

最新文章

  1. Python中输出字体的颜色设置
  2. 5G NGC — N3IWF 非 3GPP 互通功能
  3. 《Linux 就是这个范儿 - 阅读笔记2》 融于心而表于行(1)
  4. 怎么把框架栏变颜色 html,如何修改easyui框架颜色,求指点_html/css_WEB-ITnose
  5. 前端er应该掌握的数据可视化技术
  6. Windows 安装PHP SG11插件
  7. 那些高中时曾经背得烂熟的古文(滕王阁序,阿房宫赋, 兰亭集序 , 师说,蜀道难 ...)再一次读读吧,慢慢的读,突然很想哭...有些岁月果真不曾忘怀
  8. pageadmin 网站建设教程:如何添加自定义页面
  9. /NOENTRY在VS里面的设置位置
  10. MySQL有哪些“饮鸩止渴”提高性能的方法?
  11. 用HTML5实现十里桃花歌词的打印(一)
  12. Java关于身份证验证的实现
  13. 云原生系列 六【轻松入门容器基础操作】
  14. 美学心得(第二百一十七集) 罗国正 (2020年12月)
  15. 玩转X-CTR100 l STM32F4 l DSP指令集性能测试
  16. 关于计算机网络实训室的申请书,计算机网络技术综合实训室建设方案.doc
  17. 学物理赶不上计算机,高二上学期物理为何这么难?
  18. tomcat报错405
  19. Windows Embedded Compact 7可定制化互联网电视
  20. WIN10 下 “java -cp“ 命令解析

热门文章

  1. 特征选择的基本方法概述
  2. python 生成可执行文件.exe
  3. mean shift
  4. ENVI学习总结(十四)——高光谱地物识别
  5. Windows安装apache+php的nts版本
  6. php收集信息,PHP获取收集相关信息
  7. 利用并查集+贪心解决 Hdu1232
  8. python时间处理方法_基于python时间处理方法(详解)
  9. 收银机打印数据截取_自助收银机大大节约了人力成本
  10. extern关键字的作用_一文搞懂static关键字与链接性