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 ...
随机推荐
- hdu 1538 A Puzzle for Pirates 博弈论
很经典的问题,思路转载自http://blog.csdn.net/ACM_cxlove?viewmode=contents 题目:这是一个经典问题,有n个海盗,分m块金子,其中他们会按一定的顺序提出自 ...
- hdu 4061 A Card Game
思路: 分析:假设取的牌顺序是一个序列,那么这种序列在末尾为1时是和取牌序列一一对应的,且是符合“游戏结束时牌恰好被取完”的一种情况. 简证:1.在序列中,任一数 i 的后一个数 j 是必然要放在第 ...
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?,
错误:配置web.xml时,出现红色叉叉,提示 The content of element type "web-app" must match "(icon?,disp ...
- (KEIL)MDK5安装与JLINK问题解决方法(支持代码自动补全)
MDK V5在10月8日发布,昨天终于没忍住装上使用了一下,尝了尝鲜. 安装和破解的方法相信各位高手都不在话下,实在不会的可以参考keil4的安装步骤,keil5 和 keil4的安装没有的区别. ...
- WordPress定位当前使用模版
把下面代码插入到wp-includes/template-loader.php,66行 if($_GET[tpl]=='die'){ die($template); } 浏览任意页面,在网址后加上&a ...
- PHP高级特性二之文件处理
PHP中的文件处理也是一个相当重要的模块,这一篇的主要内容就是PHP中文件系统的简介. 文件系统用途 1. 项目处理都离不开文件处理 2. 可以用文件长时间保存数据 3. 建立缓存,在服务器中进行文件 ...
- Linux驱动修炼之道-RTC子系统框架与源码分析【转】
转自:http://helloyesyes.iteye.com/blog/1072433 努力成为linux kernel hacker的人李万鹏原创作品,为梦而战.转载请标明出处 http://bl ...
- OpenMp之sections用法
section语句是用在sections语句里用来将sections语句里的代码划分成几个不同的段 #pragma omp [parallel] sections [子句] { #pragma ...
- Python 中 os.path模板
os.path.abspath(path) #返回绝对路径 os.path.basename(path) #返回文件名 os.path.commonprefix(list) #返回list(多个路径) ...
- 在cmd中登录ftp服务器
http://jingyan.baidu.com/article/0bc808fc8778ee1bd485b93b.html C:\Users\Administrator>ftpftp> ...