Reconfigure HAS and CSS for nonRAC ASM on 11.2
Posted tianlesoftware
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Reconfigure HAS and CSS for nonRAC ASM on 11.2相关的知识,希望对你有一定的参考价值。
This document provides a procedure to configure/reconfigure the ( High Availability Service ) HAS and CSS resource on Oracle Grid Infrastructure for nonRAC setup
Solution
1) When you install grid infrastructure for single instance, at the end we run root.sh, that directs you to run the following script from root login:
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl
This script configures the ohasd daemon ( inittab and rc.d entries ) and start the followings:
# ps -ef|grep ohas
root 17162 1 0 17:05 ? 00:00:00 /bin/sh /etc/init.d/init.ohasd run
grid 17186 1 0 17:05 ? 00:00:00 /oracle/grid/bin/ohasd.bin reboot
If there is a need to reconfigure HAS then, we can run the following scripts from root login:
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl -delete
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl
请注意,“roothas.pl -delete”将停止 cssd 和 diskmon 资源(以及它们的依赖资源,如 ASM、Diskgroup、RDBMS),然后取消配置 HAS。
2009-09-15 19:03:33: 检查超级用户权限
2009-09-15 19:03:33: 用户具有超级用户权限
2009-09-15 19:03:33: 使用配置参数文件解析主机名
: /oracle/grid/crs/install/crsconfig_params
CRS-2673: 尝试在 db112
CRS-2677 上停止 ora.cssd: 在 db112 上停止 ora.cssd 成功
CRS-2791: 开始关闭 db112 上的 Oracle 高可用性服务托管资源
CRS-2673:尝试在“db112”CRS-2677
上停止“ora.diskmon”:在“db112”上停止“ora.diskmon”成功 CRS-2793
:关闭“db112”上的Oracle高可用性服务托管资源已完成
CRS-4133:Oracle高可用性服务已停止。
ACFS-9200:支持
已成功取消配置的 Oracle 重新启动堆栈
如果 crs 安装格式不正确且 CRS 未运行,则需要运行 rootcrs.pl,并使用强制选项 roothas.pl -deconfig,如下所示:
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl -deconfig -force
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl -delete -force
<GridHome>/perl/bin/perl -I<GridHome>/perl/lib -I<GridHome>/crs/install <GridHome>/crs/install/roothas.pl
我们还可以停止/启动,disable_auto_start/启用 HAS,我们使用以下命令:
# cd <Grid Home>/bin
# ./crsctl stop has
# ./crsctl start has
# ./crsctl disable has
# ./crsctl enable has
这里还维护了对HAS的ora.cssd和ora.diskmon依赖性。您也可以在perl脚本运行中使用-d选项,以防您希望调试脚本(需要perl专业知识)。
2)与10.2 / 11.1不同,CSS和Diskmon进程现在是OCR中的资源。
$ crsctl status resource -t
--------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------
Cluster Resources
------------------
ora.cssd 1 ONLINE ONLINE db112
ora.diskmon 1 ONLINE ONLINE db112
守护进程不再从 ../init.d scripts:
网格 26182 1 0 20:11 ?00:00:00 /oracle/grid/bin/diskmon.bin -d -f
grid 26091 1 0 20:09 ?00:00:00 /oracle/grid/bin/cssdagent
grid 26126 1 0 20:09 ?00:00:00 /oracle/grid/bin/ocssd.bin
不应使用以下命令从 OCR 中删除/添加 CSS 资源
#./crsctl delete resource ora.cssd
#./crsctl add resource ora.cssd -type
相反,使用 HAS 的 delete and add 命令来删除/添加 CSS/Diskmon。
以上是关于Reconfigure HAS and CSS for nonRAC ASM on 11.2的主要内容,如果未能解决你的问题,请参考以下文章
Rails has_and_belongs_to_many 迁移
has_and_belongs_to_many 或多态 has_many :through?
VueJS Conditional Props and CSS:如何在一行文本的末尾有条件地显示 svg?
collection_select 和 has_and_belongs_to_many 关系