千家信息网

启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在的处理过程

发表于:2024-09-22 作者:千家信息网编辑
千家信息网最后更新 2024年09月22日,启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在,如下所示:[dmdba@localhost DAMENG]$ /etc/rc.d/init.d/DmServiceWatche
千家信息网最后更新 2024年09月22日启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在的处理过程

启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在,如下所示:

[dmdba@localhost DAMENG]$ /etc/rc.d/init.d/DmServiceWatcher startStarting DmServiceWatcher:                                 [ FAILED ]dmwatcher.ctl not exist in path: /dmdbs/data/DAMENGfail to read ini fileDMWATCHER[2.1] V7.6.0.199-Build(2019.09.16-112854)ENT

处理方法:

1、 配置/dmdbs/data/DAMENG/dmwatcher.ini文件,如下所示:

[GRWC1_01]  DW_TYPE                  = GLOBAL  DW_MODE                  = MANUAL  DW_ERROR_TIME            = 30  INST_ERROR_TIME          = 30  INST_RECOVER_TIME        = 60  INST_OGUID               = 45331  INST_INI                 = /dmdbs/data/DAMENG/dm.ini  INST_AUTO_RESTART        = 1  INST_STARTUP_CMD         = /dmdbs/bin/dmserver

2、使用dmctlcvt工具生成dmwatcher.ctl文件。

[dmdba@localhost DAMENG]$ cd /dmdbs/bin[dmdba@localhost bin]$  ./dmctlcvt TYPE=3 SRC=/dmdbs/data/DAMENG/dmwatcher.ini DEST=/dmdbs/data/DAMENG/DMCTLCVT V7.6.0.199-Build(2019.09.16-112854)ENT convert txt to ctl success!

可以看到,已经成功生成dmwatcher.ctl文件,该文件一般存放在DEST参数指定目录下的一个子目录下,这个子目录名一般为/dmdbs/data/DAMENG/dmwatcher.ini中组[GRWC1_01]

中的名字,如此处子目录为GRWC1_01,如下所示。

[dmdba@localhost GRWC1_01]$ pwd/dmdbs/data/DAMENG/GRWC1_01[dmdba@localhost GRWC1_01]$ lsdmwatcher.ctl[dmdba@localhost GRWC1_01]$

将该文件目录下的dmwatcher.ctl文件cp到/dmdbs/data/DAMENG目录下。

[dmdba@localhost DAMENG]$ cp ./dmwatcher.ctl ../

然后再启动梦数Watcher服务:

[dmdba@localhost DAMENG]$ /etc/rc.d/init.d/DmServiceWatcher startStarting DmServiceWatcher:                                 [ OK ]

附:dmctlcvt工具使用说明详情。

DMCTLCVT V7.6.0.199-Build(2019.09.16-112854)ENT  Format:  ./dmctlcvt KEYWORD=valueNote:    ctl file name must be dm.ctl or dmmpp.ctl or dmwatcher.ctl Keyword             Explanation--------------------------------------------------------------------------------TYPE                1 convert ctl file(dm.ctl or dmmpp.ctl) to txt file                    2 convert txt file to ctl file(dm.ctl or dmmpp.ctl)                    3 convert txt file to ctl file(dmwatcher.ctl), the dest_file_path not include file name                    4 convert ctl file(dmwatcher.ctl) to txt fileSRC                 Source fileDEST                Destination fileDCR_INI             the path of dmdcr.iniHELP                Show this help info Example:./dmctlcvt TYPE=1 SRC=/opt/dmdbms/data/dameng/dm.ctl DEST=/opt/dmdbms/data/dameng/dmctl.txt./dmctlcvt TYPE=2 SRC=/opt/dmdbms/data/dameng/dmctl.txt DEST=/opt/dmdbms/data/dameng/dm.ctl./dmctlcvt TYPE=3 SRC=/opt/dmdbms/data/dameng/dmwatcher.txt DEST=/opt/dmdbms/data/dameng./dmctlcvt TYPE=4 SRC=/opt/dmdbms/data/dameng/dmwatcher.ctl DEST=/opt/dmdbms/data/dameng/dmwatcher_ctl.txt
0