1、创建一个新的数据库并记住路径和端口名(此处路径为/home/dmdba/data,端口为5236)
./dminit path=/home/dmdba/data page_size=16 DB_NAME=DMHS port_num=5236
2、进入DmService,修改INI_PATH的路径
3、将DmService文件复制到bin目录下,方便之后使用
cp -r /home/dmdba/bin/service_template/DmService .
4、启动DmService
5、将bin文件拖入/home/dmdba/data/DMHS路径下,修改权限
chmod 777 /home/dmdba/data/DMHS/bin/*
chown dmdba:dinstall /home/dmdba/data/DMHS/bin/*
6、修改dm.ini配置文件
ARCH_INI = 1
RLOG_APPEND_LOGIC = 1
FAST_COMMIT = 0
7、重启使其生效
8、配置dmhs.hs
<?xml version="1.0" encoding="GB2312"?>
<dmhs>
<base>
<lang>en</lang>
<mgr_port>5355</mgr_port>
<chk_interval>2</chk_interval>
<ckpt_interval>45</ckpt_interval>
<siteid>4</siteid>
<version>2.0</version>
</base>
<exec>
<recv>
<data_port>5356</data_port>
</recv>
<db_type>dm8</db_type>
<db_server>192.168.30.133</db_server>
<db_user>dmhs</db_user>
<db_pwd>dmhs</db_pwd>
<db_port>5236</db_port>
<exec_mode>1</exec_mode>
<exec_thr>1</exec_thr>
<exec_sql>512</exec_sql>
<exec_trx> 5000 </exec_trx>
<exec_rows>250</exec_rows>
<msg_col_size>8000</msg_col_size>
<level>0</level>
</exec>
</dmhs>
9、启动DM端
10、另起一个窗口
[dmdba@192 bin]$ ./dmhs_console
DMHS console tool: V4.1.29-Build(2021.07.16-100822trunc)_D64
Copyright (c) 2020, DMHS. All rights reserved.
Type ? or "help" for help, type "quit" to quit console.
Connected to DMHS: 127.0.0.1:5355
execute success
Dameng HS Server V4.1.29-Build(2021.07.16-100822trunc)_D64
DMHS> connect 192.168.30.133:5355
execute success
DMHS> start exec
execute success
DMHS>
至此,DMHS搭建完成。
更多资讯请上达梦技术社区了解: https://eco.dameng.com