如何卸载dm8软件
基础环境
操作系统:Red Hat Enterprise Linux Server release 7.9 (Maipo)
数据库版本:DM Database Server 64 V8
架构:单实例
1 关闭数据库服务
[root@test1 ~]# systemctl status DmServiceDMSVR01.service
● DmServiceDMSVR01.service - DM Instance Service
Loaded: loaded (/usr/lib/systemd/system/DmServiceDMSVR01.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2023-06-17 07:41:01 PDT; 10min ago
Process: 1187 ExecStart=/dm8/bin/DmServiceDMSVR01 start (code=exited, status=0/SUCCESS)
Main PID: 1317 (dmserver)
Tasks: 48
CGroup: /system.slice/DmServiceDMSVR01.service
└─1317 /dm8/bin/dmserver path=/dm8/data/DM01/dm.ini -noconsole
Jun 17 07:40:46 test1 systemd[1]: Starting DM Instance Service...
Jun 17 07:41:01 test1 DmServiceDMSVR01[1187]: [38B blob data]
Jun 17 07:41:01 test1 systemd[1]: Started DM Instance Service.
[root@test1 ~]# systemctl stop DmServiceDMSVR01.service
[root@test1 ~]# systemctl status DmServiceDMSVR01.service
● DmServiceDMSVR01.service - DM Instance Service
Loaded: loaded (/usr/lib/systemd/system/DmServiceDMSVR01.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2023-06-17 07:51:28 PDT; 9s ago
Process: 3862 ExecStop=/dm8/bin/DmServiceDMSVR01 stop (code=exited, status=0/SUCCESS)
Process: 1187 ExecStart=/dm8/bin/DmServiceDMSVR01 start (code=exited, status=0/SUCCESS)
Main PID: 1317 (code=exited, status=0/SUCCESS)
Jun 17 07:40:46 test1 systemd[1]: Starting DM Instance Service...
Jun 17 07:41:01 test1 DmServiceDMSVR01[1187]: [38B blob data]
Jun 17 07:41:01 test1 systemd[1]: Started DM Instance Service.
Jun 17 07:51:23 test1 systemd[1]: Stopping DM Instance Service...
Jun 17 07:51:28 test1 DmServiceDMSVR01[3862]: [38B blob data]
Jun 17 07:51:28 test1 systemd[1]: Stopped DM Instance Service.
2 卸载数据库软件
[dmdba@test1 ~]$ cd /dm8/
[dmdba@test1 dm8]$ ls
arch1 bin data doc include jdk license_zh.txt samples tool uninstall.sh
arch2 bin2 desktop drivers jar license_en.txt log script uninstall web
[dmdba@test1 dm8]$ ./uninstall.sh
Root用户执行,执行后选择【OK】
[root@test1 ~]# /dm8/root_uninstaller.sh
Delete DmAPService service
Removed symlink /etc/systemd/system/multi-user.target.wants/DmAPService.service.
Delete DmServiceDMSVR01 service
Removed symlink /etc/systemd/system/multi-user.target.wants/DmServiceDMSVR01.service.
Delete /etc/dm_svc.conf
选择【Yes】
选择 【Finish(F)】
3 查看服务
[root@test1 ~]# ps -ef | grep dmserver
root 4955 3515 0 07:59 pts/1 00:00:00 grep --color=auto dmserver
[root@test1 ~]#
[root@test1 ~]# systemctl list-unit-files | grep Dm
4 删除残留安装文件及目录
[root@test1 /]# rm -rf /dm8/
5 删除用户、用户组
userdel -r dmdba
groupdel dinstall
—dm8 清理完毕
谨记:心存敬畏,行有所止。