Oracle 11g RAC oc4j/gsd Offline
Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形。即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用。GSD则是用于支持dbca,srvctl,oem等的交互工具。本文描述将这两个服务切换到online。
- 1、环境
- [root@linux2 ~]# cat /etc/issue
- Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
- Kernel \r on an \m
- [root@linux2 bin]# ./crsctl query crs activeversion
- Oracle Clusterware active version on the cluster is [11.2.0.1.0]
- 2、oc4j与所有的gsd处于offline
- [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
- ora.gsd ora.gsd.type OFFLINE OFFLINE
- ora.linux1.gsd application OFFLINE OFFLINE
- ora.linux2.gsd application OFFLINE OFFLINE
- ora.oc4j ora.oc4j.type OFFLINE OFFLINE
- 3、启动oc4j服务
- #使用srvctl 来启动oc4j服务
- [grid@linux2 ~]$ srvctl start oc4j
- OC4J could not be started
- PRCR-1079 : Failed to start resource ora.oc4j
- CRS-2501: Resource 'ora.oc4j' is disabled #提示该服务处于disable状态
- #尝试使用crsctl来启动,依然失败
- [grid@linux2 ~]$ crsctl start res ora.oc4j -init
- CRS-2613: Could not find resource 'ora.oc4j'.
- CRS-4000: Command Start failed, or completed with errors.
- #下面先将状态置为enable状态
- [grid@linux2 ~]$ srvctl enable oc4j
- #再次启动成功
- [grid@linux2 ~]$ srvctl start oc4j
- [grid@linux2 ~]$ crs_stat -t | grep oc4j
- ora.oc4j ora.oc4j.type ONLINE ONLINE linux2
- 4、启动gsd服务
- #查看节点linux1上所有的资源状态,可以看到输出的信息表明GSD也被disable了
- [grid@linux2 ~]$ srvctl status nodeapps -n linux1
- -n <node_name> option has been deprecated.
- VIP linux1-vip is enabled
- VIP linux1-vip is running on node: linux1
- Network is enabled
- Network is running on node: linux1
- GSD is disabled
- GSD is not running on node: linux1
- ONS is enabled
- ONS daemon is running on node: linux1
- eONS is enabled
- eONS daemon is running on node: linux1
- #下面查看节点linux2上所有的资源状态,也可以看到输出的信息表明GSD也被disable了
- [grid@linux2 ~]$ srvctl status nodeapps -n linux2
- -n <node_name> option has been deprecated.
- VIP linux2-vip is enabled
- VIP linux2-vip is running on node: linux2
- Network is enabled
- Network is running on node: linux2
- GSD is disabled
- GSD is not running on node: linux2
- ONS is enabled
- ONS daemon is running on node: linux2
- eONS is enabled
- eONS daemon is running on node: linux2
- #将所有的服务置于enable状态
- [grid@linux2 ~]$ srvctl enable nodeapps
- PRKO-2415 : VIP is already enabled on node(s): linux1,linux2
- PRKO-2416 : Network resource is already enabled.
- PRKO-2417 : ONS is already enabled on node(s): linux1,linux2
- PRKO-2418 : eONS is already enabled on node(s): linux1,linux2
- #再次查看GSD的状态已经变成enable了
- [grid@linux2 ~]$ srvctl status nodeapps
- VIP linux1-vip is enabled
- VIP linux1-vip is running on node: linux1
- VIP linux2-vip is enabled
- VIP linux2-vip is running on node: linux2
- Network is enabled
- Network is running on node: linux1
- Network is running on node: linux2
- GSD is enabled
- GSD is not running on node: linux1
- GSD is not running on node: linux2
- ONS is enabled
- ONS daemon is running on node: linux1
- ONS daemon is running on node: linux2
- eONS is enabled
- eONS daemon is running on node: linux1
- eONS daemon is running on node: linux2
- [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
- ora.gsd ora.gsd.type OFFLINE OFFLINE
- ora.linux1.gsd application OFFLINE OFFLINE
- ora.linux2.gsd application OFFLINE OFFLINE
- #启动GSD服务
- [grid@linux2 ~]$ srvctl start nodeapps
- PRKO-2421 : Network resource is already started on node(s): linux1,linux2
- PRKO-2420 : VIP is already started on node(s): linux1,linux2
- PRKO-2420 : VIP is already started on node(s): linux1,linux2
- PRKO-2422 : ONS is already started on node(s): linux1,linux2
- PRKO-2423 : eONS is already started on node(s): linux1,linux2
- #验证GSD服务
- [grid@linux2 ~]$ crs_stat -t | grep OFFLINE
- [grid@linux2 ~]$ crs_stat -t | grep gsd
- ora.gsd ora.gsd.type ONLINE ONLINE linux1
- ora.linux1.gsd application ONLINE ONLINE linux1
- ora.linux2.gsd application ONLINE ONLINE linux2
- #Author : Robinson
- #Blog : http://blog.csdn.net/robinson_0612
- 5、关于GSD
- The Global Services Daemon (GSD) runs on each node with one GSD process per node.
- The GSD coordinates with the cluster manager to receive requests from clients such as the DBCA, EM,
- and the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown.
- The GSD is not an Oracle instance background process and is therefore not started with the Oracle instance.
- GSD与rac的管理工具dbca srvctl oem进行交互,用来完成实例的启动关闭等管理任务。
- 为了保证这些管理工具运行正常必须在所有的节点上先启动 gsd。
- 一个GSD进程支持在一个节点的多个rac.gsd进程,位于$ORACLE_HOME/bin目录下。
- 其log文件为$oracle_home /srvm/log/gsdaemon.log。
- 例如:
- 假设使用oem工具来启动一个实例,oem把该任务传递给相应的智能引擎,该智能引擎生成一个包含SRVCTL命令的脚本文件,
- GSD进程读取该脚本文件并且执行该脚本,最后GSD把执行结果返回给智能引擎,近而智能引擎返回给OEM。
- 又例如假设使用srvctl工具关闭所有的实例,GSD进程接受来自SRVCTL工具发出的请求,并
- 在本地节点上执行该请求,然后把执行结果返回给SRVCTL会话。
- 转:http://blog.csdn.net/leshami/article/details/8471546
Oracle 11g RAC oc4j/gsd Offline的更多相关文章
- Oracle 11g RAC环境下Private IP修改方法及异常处理
Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...
- Oracle 11g RAC 修改各类IP地址
Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...
- Oracle 11g RAC 环境下单实例非缺省监听及端口配置
如果在Oracle 11g RAC环境下使用dbca创建单实例数据库后,Oracle会自动将其注册到缺省的1521端口及监听器.大多数情况下我们使用的为非缺省监听器以及非缺省的监听端口.而且在Orac ...
- Oracle 11g Rac 用rman实现把本地数据文件迁移到ASM共享存储中
在Oracle Rac环境中,数据文件都是要存放在ASM共享存储上的,这样两个节点才能同时访问.而当你在某一节点下把数据文件创建在本地磁盘的时候,那么在另一节点上要访问该数据文件的时候就会报错,因为找 ...
- Oracle 11g RAC运维总结
转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...
- 【Oracle 集群】Oracle 11G RAC教程之集群安装(七)
Oracle 11G RAC集群安装(七) 概述:写下本文档的初衷和动力,来源于上篇的<oracle基本操作手册>.oracle基本操作手册是作者研一假期对oracle基础知识学习的汇总. ...
- Oracle 11g RAC 应用补丁简明版
之前总结过<Oracle 11.2.0.4 RAC安装最新PSU补丁>, 这次整理为简明版,忽略一切输出的显示,引入一些官方的说明,增加OJVM PSU的补丁应用. 环境:RHEL6.5 ...
- Oracle 11g RAC停止和启动步骤
关闭前备份控制文件/参数文件: sqlplus / as sysdba alter database backup controlfile to '/home/oracle/control.ctl ...
- 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 ...
随机推荐
- Eclipse Java EE 编译器设置JSP默认编码
在windows-preferences-web-jsp files-encoding那里设置默认编码.如下图所示:
- android-non-ui-to-ui-thread-communications-part-4-of-5
In parts 1-3 of this series, I have explored three different means for an Android non-UI thread to c ...
- C逻辑型变量——时控灯例子
在C99标准颁布之前,我们通常都是用1或者0来表示逻辑的真与假,因此,当我们需要在程序中传递这种逻辑数据时,我们都是用整型数据类型int来表示这种逻辑型数据.然而,使用整型数据类型int来表示逻辑型变 ...
- haproxy.cfg
# this config needs haproxy-1.1.28 or haproxy-1.2.1 global log 127.0.0.1 local0 log 127.0.0.1 local1 ...
- keil MDK中如何生成*.bin格式的文件
在Realview MDK的集成开发环境中,默认情况下可以生成*.axf格式的调试文件和*.hex格式的可执行文件.虽然这两个格式的文件非常有利于ULINK2仿真器的下载和调试,但是ADS的用户更习惯 ...
- CodeBlocks ubuntu常见问题及小技巧
1.安装完后没有快捷键的设置: http://blog.csdn.net/sjwbcb/article/details/4797785 感谢这哥,原来是包没有装全. codeblocks用ubuntu ...
- python操作json
概念 序列化(Serialization):将对象的状态信息转换为可以存储或可以通过网络传输的过程,传输的格式可以是JSON.XML等.反序列化就是从存储区域(JSON,XML)读取反序列化对象的状态 ...
- Redhat6下安装QEMU
Redhat6下安装QEMU 1.下载QEUM:http://wiki.qemu.org/Download 2.解压qemu-1.6.1.tar.bz2到/tmp目录(也可以是其他目录)下,并进入解压 ...
- git checkout not discard changes
1. checkout one branch, show status user@vbox:/mnt/tmp$ git checkout masterSwitched to branch 'maste ...
- 加密解密(5)SSL形象比喻
转自: http://blog.csdn.net/cloverphp/article/details/11737433 前言: 关于公钥,私钥请看前几篇文章 SSL 协议既用到了公钥加密技术(握手 ...