查询Oracle集群配置项

命令功能

查询当前配置项,在Agent配置需要关闭数据库的时候,集群是否会同时关闭。

命令格式

sh checkcfg.sh read

参数说明

无。

操作步骤

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

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

  3. 执行su - rdadmin命令,切换用户 。
  4. 执行cd /home/rdadmin/Agent/sbin命令,进入脚本存放路径。
  5. 执行命令sh checkcfg.sh read查看当前配置项内容。

    • 当Agent配置项为关闭数据库,但不关闭集群时,回显信息如下:
      Reading the configuration item of RAC is successful, and the configuration item of RAC is 0.
    • 当Agent配置项为关闭数据库,同时关闭集群时,回显信息如下:
      Reading the configuration item of RAC is successful, and the configuration item of RAC is 1.

使用实例

linux87:/home/rdadmin/Agent/sbin/sh checkcfg.sh read 
Reading the configuration item of RAC is successful, and the configuration item of RAC is 0.

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