oracle 11gR2 安装grid完成后默认的资源组状态

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:174

oracle 11gR2 安装grid完成后默认的资源组状态

在11gR2版本中,rac安装完成后,资源组的状态不是全部online的,有部分是offline的

[font=NSimsun]$ ./crsctl status resource -t
[grid@p520:/grid/app/11.2.0/grid/bin]$./crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.LISTENER.lsnr
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.asm
ONLINE ONLINE p520 Started
ONLINE ONLINE p650 Started
ora.eons
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.gsd
OFFLINE OFFLINE p520
OFFLINE OFFLINE p650
ora.net1.network
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.ons
ONLINE ONLINE p520
ONLINE ONLINE p650
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE p520
ora.oc4j
1 OFFLINE OFFLINE
ora.p520.vip
1 ONLINE ONLINE p520
ora.p650.vip
1 ONLINE ONLINE p650
ora.scan1.vip
1 ONLINE ONLINE p520

[font=新宋体]从上面可以看出,gsd和oc4j服务都是offline的
[font=新宋体]我们可以用srvctl status命令看出具体状态都是disable的

[font=新宋体]srvctl status oc4j
oc4j is disabled
oc4j is not running
[font=新宋体]srvctl status nodeapps
[grid@p520:/grid/app/grid]$srvctl status nodeapps
VIP p520-vip is enabled
VIP p520-vip is running on node: p520
VIP p650-vip is enabled
VIP p650-vip is running on node: p650
Network is enabled
Network is running on node: p520
Network is running on node: p650
GSD is disabled
GSD is not running on node: p520
GSD is not running on node: p650
ONS is enabled
ONS daemon is running on node: p520
ONS daemon is running on node: p650
eONS is enabled
eONS daemon is running on node: p520
eONS daemon is running on node: p650
[font=新宋体]命令看出,oc4j和gsd

如果我们想改为enable,自动启动,则用srvctl enable 命令即可
srvctl enable oc4j
srvctl enable nodeapps

启动oc4j和gsd服务
srvctl start oc4j
srvctl start nodeapps -n p520
srvctl start nodeapps -n p650

然后查看状态,全是online

[grid@p520:/grid/app/grid]$crsctl status resource -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.CRS.dg
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.DGDATA1.dg
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.DGRECOVER.dg
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.DGSYSTEM.dg
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.LISTENER.lsnr
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.asm
ONLINE ONLINE p520 Started
ONLINE ONLINE p650 Started
ora.eons
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.gsd
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.net1.network
ONLINE ONLINE p520
ONLINE ONLINE p650
ora.ons
ONLINE ONLINE p520
ONLINE ONLINE p650
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE p650
ora.oc4j
1 ONLINE ONLINE p650

ora.p520.vip
1 ONLINE ONLINE p520
ora.p650.vip
1 ONLINE ONLINE p650
ora.scan1.vip
1 ONLINE ONLINE p650

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】