[转帖]达梦数据库 DM8 中 注册服务 说明

数据库,dm8,注册,服务,说明 · 浏览次数 : 0

小编点评

**DM8 数据库服务注册说明** **注册步骤:** 1. 登录到您的 DM8 数据库服务器。 2. 打开命令行或终端。 3. 运行以下命令: ``` ./dm_service_installer.sh -t dmserver -p dave -dm_ini /dm/dmdbms/data/dave/dm.ini ``` **参数说明:** * `-t dmserver`:指定服务类型为 `dmserver`。 * `-p dave`:指定服务用户名为 `dave`。 * `-dm_ini`:指定 `dm.ini` 文件的路径。 **注意:** * `dm_service_installer.sh` 文件需要在您本地安装之前存在。 * 确保 `/dm/dmdbms/data/dave/dm.ini` 文件存在。 * 此命令会创建一个 symlink 从 `/etc/systemd/system/multi-user.target.wants/DmServicedave.service` 到 `/usr/lib/systemd/system/DmServicedave.service.Finished` 中。

正文

 

2019-10-29 19:3830480原创DM 达梦

达梦数据库 DM8 中 注册服务 说明

 

在之前的博客我们了解了DM7中的服务注册,如下:

 

DM7 达梦数据库 通过dminit 创建 并 注册 数据库实例
https://www.cndba.cn/dave/article/3580

在DM8中,注册服务命令的使用有所变化。

我们先看帮助:

 

[dmdba@dm8 root]$ pwd
/dm/dmdbms/script/root
[dmdba@dm8 root]$ ./dm_service_installer.sh -h
Must run the script by root!
[dmdba@dm8 root]$ exit
logout
[root@www.cndba.cn system]# cd /dm/dmdbms/script/root
[root@www.cndba.cn root]# ./dm_service_installer.sh -h
Usage: dm_service_installer.sh -t service_type [-p service_name_postfix] [-dm_ini dm_ini_file]
        [-watch_ini watch_ini_file ] [-wmon_ini wmon_ini_file] [-rww_ini rww_ini_file]
        [-watcher_ini watcher_ini_file ] [-monitor_ini monitor_ini_file] [-cssm_ini cssm_ini_file]
        [-dfs_ini dfs_ini_file] [-dcr_ini dcr_ini_file]
        [-dss_ini dss_ini_file] [-drs_ini drs_ini_file] [-dras_ini dras_ini_file] [-dcs_ini dcs_ini_file] [-server server_info]
        [-m open|mount] [-y dependent_service]
  or dm_service_installer.sh [-s service_file_path]
  or dm_service_installer.sh -h

   -t               Service Type, include: dmimon,dmap,dmserver,dmwatcher,dmmonitor,dmcss,dmcssm,dmasmsvr,dmdcs,dmdrs,dmdras,dmdss.
   -p               Service Name Postfix, is invalid for dmimon,dmap.
   -dm_ini          The path of the dm.ini file.
   -watch_ini       The path of the dmwatch.ini file.
   -wmon_ini        The path of the dmwmon.ini file.
   -rww_ini         The path of the dmrww.ini file.
   -watcher_ini     The path of the dmwatcher.ini file.
   -monitor_ini     The path of the dmmonitor.ini file.
   -dcr_ini         The path of the dmdcr.ini file.
   -cssm_ini        The path of the dmcssm.ini file.
   -dss_ini         The path of the dss.ini file.
   -drs_ini         The path of the drs.ini file.
   -dras_ini        The path of the dras.ini file.
   -dcs_ini         The path of the dcs.ini file.
   -dfs_ini         The path of the dfs.ini file.
   -server          server info
   -m               Set the start modeof the server, include:open or mount, is valid for dmserver only, select.
   -y               Set the dependent service, this parameter is valid for dmserver,dmasmsvr in systemd service environment.
   -s               The path of the service script file, if set this parameter and ignore other parameter but -y.
   -h               Help
[root@www.cndba.cn root]#

脚本中参数部分变化比较明显,不同的类型有独立的参数对应。 在注册时对应上就好。我们这里注册一个DM8的单实例:

 

注册:

[root@www.cndba.cn root]# ./dm_service_installer.sh -t dmserver -p dave -dm_ini /dm/dmdbms/data/dave/dm.ini 
Created symlink from /etc/systemd/system/multi-user.target.wants/DmServicedave.service to /usr/lib/systemd/system/DmServicedave.service.
Finished to create the service (DmServicedave)
[root@www.cndba.cn root]# 
[root@www.cndba.cn root]# systemctl start DmServicedave.service 
[root@www.cndba.cn log]# ps -ef|grep dm.ini
dmdba     7501     1  0 13:55 ?        00:00:00 /dm/dmdbms/bin/dmserver /dm/dmdbms/data/dave/dm.ini -noconsole
root      7587  5538  0 13:57 pts/4    00:00:00 grep --color=auto dm.ini
[root@www.cndba.cn log]#

卸载:

[root@www.cndba.cn root]# ./dm_service_uninstaller.sh -n DmServicedave
Whether to delete the service(DmServicedave) (Y/y:yes N/n:no): y
Failed to stop DmServicedave.service: Unit DmServicedave.service not loaded.
Failed to execute operation: Bad message
Finished to delete the service file(/usr/lib/systemd/system/DmServicedave.service)
Finished to delete the service(DmServicedave)

如果是其他服务,只需要通过-t和对应的 -xx_ini 来指定信息即可。

与[转帖]达梦数据库 DM8 中 注册服务 说明相似的内容:

[转帖]达梦数据库 DM8 中 注册服务 说明

2019-10-29 19:3830480原创DM 达梦 本文链接:https://www.cndba.cn/dave/article/3753 达梦数据库 DM8 中 注册服务 说明 在之前的博客我们了解了DM7中的服务注册,如下: DM7 达梦数据库 通过dminit 创建 并 注册 数据库实例

[转帖]DM8 达梦数据库 查看数据库版本号 方法

2020-09-28 17:24183572原创DM 达梦 本文链接:https://www.cndba.cn/dave/article/4260 在DM7 中,查询数据库版本号的方法和Oracle 一样,通过v$version 视图可以查询。 [dmdba@www.cndba.cn ~]$ dis

[转帖]达梦数据库部署和性能测试实践

https://eco.dameng.com/community/post/20220513165845Y2127MA8W2LDNV2NTZ 本文主要分享国产数据库达梦数据库的部署、BenchmarkSQL 和 sysbench 性能测试以及在可计算存储 CSD 上的性能表现。部署过程比较细节篇幅较

[转帖]DM 达梦数据库 临时表空间 管理说明

2020-12-01 21:3516090原创DM 达梦 本文链接:https://www.cndba.cn/dave/article/4315 在之前的2篇博客中我们了解了达梦数据库表空间的基本操作,如下: DM7 达梦数据库 表空间 管理 说明https://www.cndba.cn/dave/

[转帖]DM 达梦数据库 记录超长 错误解决方法

2022-08-24 09:423551原创DM 达梦 本文链接:https://www.cndba.cn/dave/article/108596 1 问题说明与分析 在达梦数据库中进行数据库Insert时可能会遇到如下错误: java.sql.SQLException: Record length

[转帖]DM 达梦数据库 忘记 SYSDBA 密码 解决方法

2022-08-04 22:2318321原创DM 达梦 本文链接:https://www.cndba.cn/dave/article/108578 1 背景说明 在其他的关系型数据库中,都有OS认证,所以我们并不担心忘记超级管理员密码的问题。 在达梦数据库中,因为安全的原因,默认并没有启用本地OS

[转帖]龙芯二进制翻译性能的不严谨分析

https://zhuanlan.zhihu.com/p/580008360 先读一下胡老师的大作 节取一些内容如下,下面有官方测试参数: 一通操作猛如虎,一看跑分不如知乎答主: 龙芯UnixBench分高,龙芯说了原因如下: 二进制翻译性如下(LATX就是翻译到X86): 胡老师说spec2000

[转帖]华为欧拉操作系统装机量达 245 万套,跨越生态发展临界点

https://www.ithome.com/0/652/328.htm 好像加上OSV的很多套数了 IT之家 11 月 9 日消息,华为 2022 全联接大会将于 7-9 日举行,涉及华为鸿蒙、华为鲲鹏、昇腾 AI 和欧拉等。 在今日的华为全连接大会上,华为常务董事、ICT 基础设施业务管理委员会

[转帖]远超DDR4,速度可达DDR5 6400!DDR5内存技术、产品解析

https://www.sohu.com/a/326810241_616364 内存是计算机技术的重要组成部分,经历了长时间的竞争更替和路线选择之后,PC内存技术被稳定在以DDR技术为基础的发展路线上。从DDR到DDR2、DDR3,今天主流的内存已进化至DDR4。乐观估计,DDR5将从2019年起降

[转帖]通信圈周盘点:电信业务收入达14504亿元;新华三中国企业网交换机市场份额超三成

http://blog.itpub.net/31545813/viewspace-2930213/ 本周,1~11月电信业务收入累计完成14504亿元;新华三2022前三季度中国企业网交换机市场份额超三成;华为数通跻身2022 Gartner®魔力象限“领导者”;Aruba SD-WAN及云安全产品