修改关闭Oracle集群配置项

命令功能

通过脚本修改配置项,在Agent配置需要关闭数据库的时候,用户可以选择是否同时关闭集群。

命令格式

sh checkcfg.sh write {0|1}

参数说明

0:Agent配置项为不关闭Oracle集群。

1:Agent配置项为关闭Oracle集群。

操作步骤

  1. 使用“PuTTY”,采用“root”用户登录安装eReplication Agent的应用服务器。
  2. 执行TMOUT=0命令,防止“PuTTY”超时退出。

    执行该命令后,当前系统在无操作时会保持运行状态,存在安全风险,为了确保系统安全,请在完成相应操作后,执行exit退出当前系统。

  3. 执行su - rdadmin命令,切换用户 。
  4. 执行cd /home/rdadmin/Agent/sbin命令,进入脚本存放路径。
  5. 执行以下命令,可选择在Agent配置项为关闭Oracle数据库时是否关闭Oracle集群。

    修改配置项时,需要将Oracle集群中的所有节点均执行该操作,保持所有节点配置一致。

    • 执行sh checkcfg.sh write 1命令,选择Agent配置项为关闭Oracle集群,回显信息如下。
      Writing the value of the configuration item of RAC to 1 is successful.
    • 执行sh checkcfg.sh write 0命令,选择Agent配置项为不关闭Oracle集群,回显信息如下。
      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.

版权所有 © 华为技术有限公司