启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在,如下所示:
[dmdba@localhost DAMENG]$ /etc/rc.d/init.d/DmServiceWatcher start Starting DmServiceWatcher: [ FAILED ] dmwatcher.ctl not exist in path: /dmdbs/data/DAMENG fail to read ini file DMWATCHER[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]$ ls dmwatcher.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 start Starting DmServiceWatcher: [ OK ]
附:dmctlcvt工具使用说明详情。
DMCTLCVT V7.6.0.199-Build(2019.09.16-112854)ENT Format: ./dmctlcvt KEYWORD=value Note: 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 file SRC Source file DEST Destination file DCR_INI the path of dmdcr.ini HELP 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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。