在11.2 和12.1 rac中,启动关闭CRS, OHAS, ASM, RDBMS & ACFS Services的步骤

在11.2 和12.1 rac中,启动关闭CRS, OHAS, ASM, RDBMS & ACFS Services的步骤
来源于:
Steps To Shutdown(stop)/Startup(start) CRS, OHAS, ASM, RDBMS & ACFS Services on a RAC Cluster 11.2 & 12.1 Configuration (文档 ID 1355977.1)
适用于:
Oracle Database - Enterprise Edition - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.
***Checked for relevance on 21-Jan-2014***
目标:
本文提供了在11.2 和12.1 rac中,启动关闭CRS, OHAS, ASM, RDBMS & ACFS Services的步骤
解决方案:
第一步: 
连接到第一个节点,检查CRS/OHAS 等服务是否被设置为autostart(然后在其他的节点重复本步骤)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl config crs  
第二步:
如果没有,可以使用如下的命令设置为自动启动(然后在其他的节点重复本步骤)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl enable crs  
第三步:
在每个节点执行如下命令,来关闭服务
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl stop crs  
第四步:
确认服务是否已经关闭(然后在其他的节点重复本步骤)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl status resource -t  
第五步:---从本步骤开始,是启动过程。
在第一个节点启动服务(仅仅在第一个节点上操作)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl start crs  
第六步:
等待1分钟,然后验证服务已经启动,验证磁盘组被mount(仅仅在第一个节点上操作)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl status resource -t  
第七步:
在第二个节点上启动服务:
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl start crs  
第八步:
等待一分钟,然后验证服务已经启动,验证磁盘组被mount(仅仅在第二个节点上操作)
[html] view plaincopy
# $GRID_ORACLE_HOME/bin/crsctl status resource -t  
第九步:
若是rac有更多的节点,请重复(第七步和第八步)
第十步:
然后用下面的命令 全局的 检查Clusterware的状态:
[html] view plaincopy
# crsctl check cluster -all  
注意1:
另外一种方法:你可以全局的关闭和启动cluster:
[html] view plaincopy
stop:  
[root@asmgrid1 ~]# crsctl stop cluster  -all   [-f]  
  
start:  
[root@asmgrid1 ~]# crsctl start cluster  -all  
注意2:
对于RAC ACFS配置,请检查下面的信息:
http://docs.oracle.com/cd/E11882_01/readmes.112/e22488/toc.htm#CACCIEID
2.19.3Oracle ACFS and Oracle Clusterware Stack Shut Down 
When attempting to shut down Oracle Clusterware, 
the Oracle Clusterware stack may report that it did not successfully stop on selected nodes (reference Bug 8651848). 
If the database home is on Oracle ACFS, then you may receive the following error:
CRS-5014: Agent orarootagent.bin timed out starting process acfsmount for action
This error can be ignored.
Alternatively, the Oracle Clusterware stack may report that it did not successfully stop on selected nodes due to the inability to shut down the Oracle ACFS resources. 
If this occurs, take the following steps:
1.Ensure that all file system activity to Oracle ACFS mount points is quiesced by shutting down programs or processes and retry the shutdown.
2.If the ora.registry.acfs resource check function times out, or the resource exhibits a state of UNKNOWN or INTERMEDIATE, 
then this may indicate an inability to access the Oracle Cluster Registry (OCR). 
The most common cause of this is a network failure. 
The commands "acfsutil registry" and "ocrcheck" may give you a better indicator of the specific error. 
Clear this error and attempt to stop Oracle Clusterware again.
当使用ACFS文件系统时的额外步骤:
注意3:
当ACFS文件系统被使用时,那么ACFS文件系统要首先被dismount,这是因为如果你尝试dismount 一个正在被访问的ACFS文件系统(或者任何其他的常规的Unix/Linux文件系统),你会得到一个“Resource Busy”的错误,因此,"crsctl stop crs"语句会失败。
你需要执行下面的额外步骤:
A)以root用户执行: dismount 运行在cluster中的所有的ACFS文件系统
[html] view plaincopy
# srvctl stop filesystem -d volume_device_name [-n node_name] [-f]  
[html] view plaincopy
<p>Where:  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
-d  <volume_device_name>  :The Oracle ACFS volume device name  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
-n  <node_name>  : The name of a node</p><p>If you do not specify this option, then the utility stops the volume resource on all active nodes in the cluster.  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
-f  : This option stops the file system and also stops any databases or other resources that depend on this file system.  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</p>  
 
举例:
[html] view plaincopy
[root@asmgrid1 ~]# df -k | grep asm  
/dev/asm/volnew1-347  14680064    159700  14520364   2% /u01/app/grid/acfsmounts/acfsdgnew_volnew1  
/dev/asm/vol_oh1-115  35651584   4590104  31061480  13% /u04acfs  
#  srvctl stop filesystem -d  /dev/asm/volnew1-347   -f  
#  srvctl stop filesystem -d  /dev/asm/vol_oh1-115   -f  


B)确认ACFS文件系统在所有节点上被dismount
[html] view plaincopy
# df -k | grep asm  
C)执行本文中上面所描述的步骤。

你可能感兴趣的:(在11.2 和12.1 rac中,启动关闭CRS, OHAS, ASM, RDBMS & ACFS Services的步骤)