如何卸载dm8软件

在RedHatEnterpriseLinuxServer7.9上,首先通过systemctl停止并确认DMServiceDMSVR01服务已关闭,然后执行/uninstall.sh脚本卸载数据库软件,移除服务配置和残余文件,最后删除dm8目录、数据库用户及用户组。
摘要由CSDN通过智能技术生成

如何卸载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

选择OK选择 Uinstall(U)选择Yes在这里插入图片描述
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 清理完毕
谨记:心存敬畏,行有所止。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值