通过脚本修改配置项,在Agent配置需要关闭数据库的时候,用户可以选择是否同时关闭集群。
sh checkcfg.sh write {0|1}
0:Agent配置项为不关闭Oracle集群。
1:Agent配置项为关闭Oracle集群。
执行该命令后,当前系统在无操作时会保持运行状态,存在安全风险,为了确保系统安全,请在完成相应操作后,执行exit退出当前系统。
修改配置项时,需要将Oracle集群中的所有节点均执行该操作,保持所有节点配置一致。
Writing the value of the configuration item of RAC to 1 is successful.
Writing the value of the configuration item of RAC to 0 is successful.
linux87:/home/rdadmin/Agent/sbin/sh checkcfg.sh write 1 Writing the value of the configuration item of RAC to 1 is successful.