广告
返回顶部
首页 > 资讯 > 数据库 >启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在的处理过程
  • 540
分享到

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

2024-04-02 19:04:59 540人浏览 薄情痞子
摘要

启动达梦数Watcher服务时,提示dmwatcher.ctl文件不存在,如下所示: [dmdba@localhost DAMENG]$ /etc/rc.d/init.d/DmServ

启动达梦数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
您可能感兴趣的文档:

--结束END--

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

本文链接: https://www.lsjlt.com/news/49894.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作