您好,登錄后才能下訂單哦!
啟動達夢數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進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。