Create SAMPLE database in DB2
db2_deinstall error : DBI20081E The installer detected that there is not enough free disk space
During DB2 client uninstall you can encounter error DBI20081E The installer detected that there is not enough free disk space in "/tmp". Free space detected in "/tmp" is: "1811268" (measured in kilobytes). Space needed is: "2000000" (measured in kilobytes). If free size in /tmp is less than 2000000 KB you will hit this error even though /tmp space requirement is only 512 MB for non pureScale environment as per IBM Knowledge Center. I successfully reproduced this issue with DB2 11.1 FP 2b and 11.5.4 client.
DB2 installation issue : The hostname is invalid
During DB2 installation you might get error The hostname is invalid. We get this error if your hostname is not properly configured and mapped to an IP Address which is reachable.
While performing DB2 installation using db2setup command you might get below error screen.
Same solution is valid for error during installation with db2_install command.
DB2 11.1 GUI Installation on Linux
Uninstall DB2 on Linux
As part of server decommissioning, cleanup of old DB2 product, you might need to uninstall DB2. In this blog we will go through steps to uninstall DB2 on Linux.
Step 1: Verify DB2 instance association with DB2 product
You can use db2ilist command and execute it from <DB2 Installation Path>/instance with root privilege to get DB2 instance associated with that DB2 installation
./db2ilist
If there is no DB2 instance associated with it then skip next step
db2idrop issue : The specified instance does not exist
You might come across scenario where db2ilist return DB2 instance name but that instance does not exist. Such situation might arise due to failed db2idrop, sqllib directory missing in DB2 instance user home directory or someone messed up with your instance home directory.
db2ilist