linux下DB2的安裝和卸載

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章