记一次配置dmmal.ini文件后导致达梦数据库服务启动异常的案例,错误如下:
[root@localhost bin]# ./DmServiceDMSERVER start
Starting DmServiceDMSERVER: 上一次登录:二 2月 23 15:32:04 CST 2021
[ FAILED ]
file dm.key not found, use default license!
MAL_INST_NAME:[DMSERVER] is duplicated in [/soft/dmdb/data/DAMENG/dmmal.ini]!
Read ini file(/soft/dmdb/data/DAMENG/dmmal.ini) error in line 7, code(-801)
MAL sys initialization failed!
dmserver startup failed, code = -801 [Duplicate ini config option]
nsvr_ini_file_read failed, [code: -801]
配置目的:目的是为了配置达梦到达梦数据库的外部链接,需要开启mal系统。在dm.ini中开启mal_ini为1,配置dmmal.ini,内容如下:
[MAL_INST1]
MAL_INST_NAME = DMSERVER
MAL_HOST = 192.168.26.1
MAL_PORT = 5537
[MAL_INST2]
MAL_INST_NAME = DMSERVER
MAL_HOST = 192.168.26.142
MAL_PORT = 5537
报错原因分析:看报错基本就能定位出来,提示MAL_INST_NAME:[