First, check the machine environment and check whether there are any residual database installation directories and related users. If they are found, they will be deleted.
Check whether the/opt/IBM directory contains db2 files.
Next, let's look at the user directories under/home. The corresponding users are still not there. If they are not there, simply delete the directories, delete the users, and then delete the directories. The userdel command
# Mkgroup id = 999 db2iadm1
# Mkgroup id = 998 db2fadm1
# Mkgroup id = 997 dasadm1
#
# Mkuser id = 1004 pgrp = db2iadm1 groups = db2iadm1 home =/home/db2inst1 core =-1 data = 491519 stack = 32767 rss =-1 fsize =-1 db2inst1
# Mkuser id = 1003 pgrp = db2fadm1 groups = db2fadm1 home =/home/db2fenc1 db2fenc1
# Mkuser id = 1002 pgrp = dasadm1 groups = dasadm1 home =/home/dasusr1 dasusr1
Configure the passwords separately.
After the installation starts, there is a wizard to complete the installation process.