卸载db2 v9.7 ~ V10.5

Following are the steps to remove DB2 from Unix/Linux:

 cyper: Ubuntu 12.04LTS测试通过

1.Remove DB[首先删除数据库]
(1)su - db2inst1
(2)db2 list db directory
(3)db2 drop db <db name>
2.Remove Instance【删除实例】
(1)su - root
(2)cd <db2 dir>/instance
(3)./db2ilist
(4)./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

Cyper windows7下:
1)DB2命令窗口 - Administrator
C:\IBM\SQLLIB\BIN>

db2 list db directory
db2start
db2 drop database <database name>

db2stop
db2ilist
db2idrop DB2

db2unins

删除目录C:/DB2
删除目录:C:\ProgramData\IBM\DB2
删除目录C:/program files/SQLLIB如果存在(我的是c:/IBM/SQLLIB),

你可能感兴趣的:(db2,uninstall)