为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:v8
【操作系统】:麒麟V10
【CPU】: Phytium ARMv8 CPU
【问题描述】*:由于内网环境加上无法启动GUI,只能使用命令行 -i安装完成,root也执行了。使用dminit命令方式建立了数据库实例。
安装位置:/dm8
创建实例:
[dmdba@localhost bin]$ ./dminit path=/dm8/dmdbms/data PAGE_SIZE=32 LOG_SIZE=500 CASE_SENSITIVE=Y CHARSET=1 DB_NAME=hbmt
initdb V8
db version: 0x7000c
License will expire on 2025-03-25
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
log file path: /dm8/dmdbms/data/hbmt/hbmt01.log
log file path: /dm8/dmdbms/data/hbmt/hbmt02.log
write to dir [/dm8/dmdbms/data/hbmt].
create dm database success. 2024-12-15 20:14:23
[dmdba@localhost bin]$
但接下来如何启动服务?以便使用工具可以连接达梦数据库?
供参考:
注册服务,
https://eco.dameng.com/document/dm/zh-cn/start/dm-service-registered-linux.html
数据库启停,
https://eco.dameng.com/document/dm/zh-cn/start/dm-start-stop-linux.html
非常感谢两位专家指导,经操作,
1)前台启动正常;
2)注册服务成功,数据库重启失败,请赐教!
非常感谢!
1)目前使用前台启动正常,操作及返回如下:
[dmdba@localhost bin]$ ./dminit path=/dm8/dmdbms/data PAGE_SIZE=32 LOG_SIZE=500 CASE_SENSITIVE=Y CHARSET=1 DB_NAME=hbmt
initdb V8
db version: 0x7000c
License will expire on 2025-03-25
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL
log file path: /dm8/dmdbms/data/hbmt/hbmt01.log
log file path: /dm8/dmdbms/data/hbmt/hbmt02.log
write to dir [/dm8/dmdbms/data/hbmt].
create dm database success. 2024-12-15 20:14:23
[dmdba@localhost bin]$
2.1)注册为系统服务成功,操作及返回如下:
[root@localhost bin]# cd ../script/root/
[root@localhost root]# ls
dm_service_installer.sh dm_service_uninstaller.sh root_installer.sh
[root@localhost root]# ./dm_service_installer.sh -t dmserver -dm_ini /dm8/dmdbms/data/hbmt/dm.ini -p DM
Created symlink /etc/systemd/system/multi-user.target.wants/DmServiceDM.service → /usr/lib/systemd/system/DmServiceDM.service.
创建服务(DmServiceDM)完成
[root@localhost root]#
2.2)数据库重启失败,操作及返回如下:
[root@localhost root]# su - dmdba
上一次登录: 日 12月 15 19:17:02 CST 2024 pts/1 上
[dmdba@localhost ~]$ cd /dm8/bin
[dmdba@localhost bin]$ ./DmServiceDM restart
DmServiceDM service is stopped.
Starting DmServiceDM: [ FAILED ]
[dmdba@localhost bin]$
由于字数限制,日志补充贴上。
请赐教,谢谢!
在bin目录下执行./dmserver /dm8/dmdbms/data/hbmt/dm.ini是前台启动,出现SYSTEM IS READY是启动成功,输入exit是停服务
切换为root用户注册为系统服务:
su - root
cd /dm8/dmdbms/script/root/
./dm_service_installer.sh -t dmserver -dm_ini /dm8/dmdbms/data/hbmt/dm.ini -p DM
注册成功后切换到dmdba用户:
su - dmdba
cd /dm8/dmdbms/bin
./DmServiceDM start
出现[ok]表示启动成功,工具连接需要开放本地防火墙的端口,默认数据库的端口是5236