DB2 manual uninstallation and cleaning

Some time we end up in uninstalling the problematic DB2 installation when some thing went for toss
Here are the simple steps to clean and UN-installation. Try as root and before that db2stop force command will stop all running instances.
Go to the DB2 installed location /opt/ibm/db2/V9.5/instance
[/opt/ibm/db2/V9.5/instance] >> ./db2idrop db2inst1
DBI1070I  Program db2idrop completed successfully.
NC142132 [/opt/ibm/db2/V9.5/instance] >> ./dasdrop
SQL4410W  The DB2 Administration Server is not active.
DBI1070I  Program dasdrop completed successfully.
NC142132 [/opt/ibm/db2/V9.5/install] >> ./db2_deinstall -a

Once you finished un-installation steps don't forget to delete the db2 related users and groups and their home directories
ex :
userdel -r db2inst1
userdel -r db2fenc1
userdel -r dasuser etc

1 comments to "DB2 manual uninstallation and cleaning"

  • Hello,

    I am very much new to database . I just wanted to do benchmarking for hard disks.
    I have DB2 v9.1 installed in windows7 but when I had problems,I directly uninstalled DB2 and deleted folders containing related files. when I tried to reinstall it,it shows that database still exists!.with this ,I am not able to precompile my '.Sqc' file.
    Please can you tell me how to uninstall it completely?So that I can reinstall it again.

    Thanks a lot in advance!
    your suggestions would be of great help.

    my ID: bgowda008@gmail.com

Post a Comment

Whoever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs, u can at least use Name/URL option which doesn’t even require any sign-in, The good thing is that it can accept your lovely nick name also and the URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")

Popular Posts

Enter your email address:

Buffs ...


Powered by WidgetsForFree