oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形
2023-09-14 08:59:38 时间
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会话。
Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形。即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用。GSD则是用于支持dbca,srvctl,oem等的交互工具。本文描述将这两个服务切换到online。 [python] view plaincopyprint? 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会话。
云MSP服务案例丨某知名制造集团的Oracle RAC部署实践 随着DT时代到来,移动互联网、物联网开始高速发展,更多的企业意识到了数据库架构选型对业务发展的重要性,如何管理和利用好数据已经变得越来越重要。Oracle作为世界上目前最流行的关系型数据库管理系统之一,市场占有率达40%,且连续多年占据DBMS排行首位。随着云时代到来,传统Oracle用户选择合适的云厂商和云服务商的Oracle上云解决方案显得尤为重要。
云MSP服务案例|云上Oracle RAC部署运维及实践 云数据库产品越来越多,各家云厂商也都推出基于开源MySQL、Postgre等的关系型数据库产品,多副本、高可用、读写分离、分库分表等功能更是集成在各类产品中,降低了机房建设和运维成本,助力更多的客户上云。
Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形。即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, WLM在 11.2.0.2 才可用。GSD则是用于支持dbca,srvctl,oem等的交互工具。本文描述将这两个服务切换到online。 [python] view plaincopyprint? 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会话。
云MSP服务案例丨某知名制造集团的Oracle RAC部署实践 随着DT时代到来,移动互联网、物联网开始高速发展,更多的企业意识到了数据库架构选型对业务发展的重要性,如何管理和利用好数据已经变得越来越重要。Oracle作为世界上目前最流行的关系型数据库管理系统之一,市场占有率达40%,且连续多年占据DBMS排行首位。随着云时代到来,传统Oracle用户选择合适的云厂商和云服务商的Oracle上云解决方案显得尤为重要。
云MSP服务案例|云上Oracle RAC部署运维及实践 云数据库产品越来越多,各家云厂商也都推出基于开源MySQL、Postgre等的关系型数据库产品,多副本、高可用、读写分离、分库分表等功能更是集成在各类产品中,降低了机房建设和运维成本,助力更多的客户上云。
相关文章
- ORA-24329: invalid character set identifier ORACLE 报错 故障修复 远程处理
- 查看Oracle当前状态:一步到位(查看oracle当前状态)
- 位Oracle 截取小数位:实现精确小数取舍(oracle截取小数)
- Oracle中查看索引使用方法(oracle中查看索引)
- 尚观Oracle云服务上百度一体化(尚观oracle百度云)
- 解决Oracle中取重复数据的方法(oracle取重复数据)
- 快速配置Oracle监听服务(oracle配置监听服务)
- Oracle:数据库之父(第一个字符oracle)
- Oracle实现服务自动开启(oracle开启服务)
- 计算Oracle中日期差值的四种函数(oracle日期差函数)
- Oracle 报价单:服务和产品价格一览无余(oracle报价单)
- 利用Oracle实现快速的数字格式化(oracle中数字格式化)
- 如何使用Oracle启动服务命令?(oracle启服务命令)
- Oracle数据库服务收费模式案例分析(oracle 收费方式)
- Oracle公司提供举报邮箱服务(oracle公司举报邮箱)
- Oracle数据库的多种启动状态解析(oracle几种启动状态)
- CRT使用Oracle实现服务优化(crt部署oracle)
- 双赢ARM平台上的Oracle数据库服务(arm版本 oracle)
- 专注于Oracle让我们开启新的未来(oracle主业)
- Oracle云备份架构最大程度保障数据安全(oracle云备份架构)
- 缔造优质专业服务Oracle中国中心升级迭代亮相(oracle中国中心)
- redefinition如何利用Oracle中的dbmsredefinition加速表重定义(oracle中dbms)
- Oracle不支持模糊查询一种漏洞(oracle不为模糊查询)
- Oracle一体机服务实现商业数据优化(oracle一体机服务)
- Oracle 27140智能云服务提升数据分析能力 (oracle 27140)
- 行Oracle 12c命令行实用技巧介绍(oracle 12c命令)
- Oracle 12719 修复持续性中断状态问题(oracle 12719)