oracle 11g rac 无法自动启动
How to set auto start resources in 11G RAC
Changing Resource Attributes in 11gR2 Grid Infrastructure
Restore indicates whether Oracle Clusterware should automatically start a resource after a cluster restart. Valid AUTO_START values are:
-always—Causes the resource to restart when the node restarts regardless of the resource‘s state when the node stopped.
-restore—Does not start the resource at restart time if it was in an offline state, such as STATE=OFFLINE, TARGET=OFFLINE, when the node stopped. The resource is restored to its state when the node went down. The resource is started only if it was online before and not otherwise.
-never—Oracle Clusterware never restarts the resource regardless of the resource‘s state when the node stopped.
Action Plan:
将ora.FRA.dg 等资源的 AUTO_START属性修改为 Always
如:
crsctl modify resource "ora.FRA.dg" -attr "AUTO_START=always"
crsctl modify resource "ora.FRA01.dg" -attr "AUTO_START=always"
1. Check the current auto start values
# crsctl stat res -p NAME=ora.FLASH.dg TYPE=ora.diskgroup.type ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-- ACTION_FAILURE_TEMPLATE= ACTION_SCRIPT= AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX% ALIAS_NAME= AUTO_START=never NAME=ora.DATA.dg TYPE=ora.diskgroup.type ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-- ACTION_FAILURE_TEMPLATE= ACTION_SCRIPT= AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX% ALIAS_NAME= AUTO_START=never NAME=ora.clusdb.db TYPE=ora.database.type ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-- ACTION_FAILURE_TEMPLATE= ACTION_SCRIPT= ACTIVE_PLACEMENT=1 AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX% AUTO_START=restore
2. Since ASM diskgroup that database depend on will never auto start database will also be unavailable.
3. Change the resource start attribute with
# crsctl modify resource "ora.FLASH.dg" -attr "AUTO_START=always" # crsctl modify resource "ora.DATA.dg" -attr "AUTO_START=always" # crsctl modify resource ora.clusdb.db -attr "AUTO_START=always"
Auto start must be upper case if not command will fail
crsctl modify resource ora.clusdb.db -attr "auto_start=always" CRS-0160: The attribute ‘auto_start‘ is not supported in this resource type. CRS-4000: Command Modify failed, or completed with errors.
4. Verify the status change with
# crsctl stat res -p NAME=ora.clusdb.db TYPE=ora.database.type ACL=owner:oracle:rwx,pgrp:oinstall:rwx,other::r-- ACTION_FAILURE_TEMPLATE= ACTION_SCRIPT= ACTIVE_PLACEMENT=1 AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX% AUTO_START=always
Oracle 10gR2 RAC参考以下的内容修改资源AUTO_START属性。
使用命令 crs_register resource_name -update [option ...] [-o option,...] -q
如:修改资源ora.dbrac.dbrac2.inst 中 AUTO_START值 0,表示:启动到资源重启之前的状态
1,表示: 启动资源
2,表示:不启动资源
修改属性名称采用第一个字母表示,如 AUTO_START = as
#crs_register resource_name -update -o as=2
./crs_register ora.rkywk.db -update -o as=1
./crs_register ora.rkcxk.db -update -o as=1
crs_register ora.rkywk.db -update -o as=always
crs_register ora.rkcxk.db -update -o as=always
Restore indicates whether Oracle Clusterware should automatically start a resource after a cluster restart. Valid AUTO_START values are:
-always—Causes the resource to restart when the node restarts regardless of the resource‘s state when the node stopped.
-restore—Does not start the resource at restart time if it was in an offline state, such as STATE=OFFLINE, TARGET=OFFLINE, when the node stopped. The resource is restored to its state when the node went down. The resource is started only if it was online before and not otherwise.
-never—Oracle Clusterware never restarts the resource regardless of the resource‘s state when the node stopped.
Action Plan:
将ora.FRA.dg 等资源的 AUTO_START属性修改为 Always
如:
crsctl modify resource "ora.FRA.dg" -attr "AUTO_START=always"
crsctl modify resource "ora.FRA01.dg" -attr "AUTO_START=always"
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。