Uninstall DB2 on Linux from Command Line

Have you ever had to uninstalled DB2 on Linux ??  Unlike the GUI screen for installing DB2, there is no GUI screen for uninstalling. IBM must have figured if they don’t provide a GUI uninstall users won’t uninstall DB2 !!   Well…below are the command line method.  I recommend you taking a backup of the database before you uninstall just incase you felt like you needed them back.


1. Shutdown DB2 and DB2ADMIN by issuing  db2stop and db2admin stop


2. sudo to root, and change directory to /opt/db2/ibm/V9.7/instance  or to your db2 install path /instance.


3. using db2idrop command drop all the instances . Eg: db2idrop db2inst1. If you want t o see all the available instances execute db2ilist


4. change directory to /opt/db2/ibm/V9.7/install


5. execute db2_deinstall -a .  This will uninstall db2 installation from your linux system.


6. You can optionally remove the install , db2 home directory and db2 instance related userid.


rm -fR /opt/db2/ibm/V9.7
userdel -r db2inst1
userdel -r dasusr1

userdel -r db2fenc1


from: http://techsatwork.com/blog/?p=558

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值