Following are the steps to remove DB2 from Unix/Linux:
1.Remove DB【首先删除数据库】
(1)su - db2inst1
(2) db2 list db directory
(3)db2 drop db NG2_APP5
ps:db2 drop db 这个命令需要在连接上数据库以后使用,如果此时输入命令,显示数据库正在使用,可以用db2 force applications all 来强制杀掉所有连接的应用进程,
这个命令是异步的,可以多杀几次。
2.Remove Instance【删除实例】
(1)su - root
(2) cd <db2 dir>/instance
(3) ./db2ilist
./db2idrop -f <instance name>
3.Remove das【删除das】
(1)su - root
(2)cd <db2 dir>/instance
(3)./daslist
(4) ./dasdrop <das user>
4.Uninstall【卸载】
(1)su - root
(2)cd <db2 dir>/install
(3) ./db2_deinstall -a
5.Remove user ( db2inst1,db2fenc1,dasusr1)【删除用户】
userdel -r <username>
please lookinto the file /etc/passwd before and after you deleted users
安装:
http://blog.csdn.net/TUBER727/article/details/17117109
http://blog.csdn.net/beyondchx/article/details/6774880