1、得到linux安装包 dm7_neoky6_64.tar.gz
2、上传到linux工控机
3、解压缩安装包,得到一个文件夹 dm7_neoky6_64
4、创建用户组
groupadd dinstall
5、创建用户
useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba
6、给dmdba设置密码
passwd dmdba
root123
7、建立数据库文件和elog所在的文件夹
mkdir dm7disk
chown -R dmdba:dinstall dm7disk/
mkdir dm7data
chown -R dmdba:dinstall dm7data/
mkdir elog
chown -R dmdba:dinstall elog
8、切换用户为dmdba,开始安装数据库
./DMInstall.bin -i
9、初始化数据库
cd /opt/dmdbms/bin
./dminit
su - dmdba
10、进一步配置数据库
cd /opt/dm7disk/dm7data/gb18030/
找到dm.ini文件
11、切换用户为root
cd /opt/dmdbms/script/root/
./dm_service_installer.sh -i /opt/dm7disk/dm7data/gb18030/dm.ini -t DMSERVER -p gb18030
12、启动数据库
service DmServicegb18030 start
./dm_service_installer.sh -dm_ini /opt/dm7disk/dmgbase/dm.ini -t DMSERVER -p utf8
Created symlink /etc/systemd/system/multi-user.target.wants/DmServiceutf8.service → /usr/lib/systemd/system/DmServiceutf8.service.
创建服务(DmServiceutf8)完成
service DmServiceutf8 start
./dminit
initdb V8
db version: 0x7000b
file dm.key not found, use default license!
License will expire on 2021-09-04
input system dir: /opt/dm7disk
input db name: dmgbase
input port num: 5236
input page size(4, 8, 16, 32): 4
input extent size(16, 32, 64): 64
input sec priv mode(0, 1, 2): 0
input err , input again:+14:00
string case sensitive? ([Y]es, [N]o): N
which charset to use? (0[GB18030], 1[UTF-8], 2[EUC-KR]): 0
length in char? ([Y]es, [N]o): Y
enable database encrypt? ([Y]es, [N]o): N
input slice size(512, 4096): 512
page check mode? (0/1/2): 0
input elog path: /opt/elog
only create huge table with delta? (0/1): 0
rlog generate for huge? (0/1):0
pseg_mgr_flag (0/1): 0
auto_overwrite mode? (0/1/2): 0
log file path: /opt/dm7disk/dmgbase/dmgbase01.log
log file path: /opt/dm7disk/dmgbase/dmgbase02.log
write to dir [/opt/dm7disk/dmgbase].
create dm database success.
达梦数据库环境
/home/dmdba/dmdbms/tool
启动
./manager