Removing Db2 instances (Linux and UNIX)
This task explains how to remove some or all of the root instances on your system. Remove Db2 instances only if you are not planning to use your Db2 database products, or if you do not want to upgrade existing instances to a later version of the Db2 database product.
About this task
If you are removing your last Db2 Version 9 copy, you can remove the Db2 instances before you remove your database product. If you are removing a Version 9 copy, but have other Version 9 copies, you can run the db2iupdt command from the Db2 copy that you would like to have the instances associated with.
Once an instance is removed, you can use the Db2 databases owned by the instance if you catalog them under another instance of the same release. Even though you remove the instance, the databases are still intact and can be reused unless the database files are expressly deleted.
Upgrading requires that both the new and old Db2 database versions are still installed. You cannot upgrade an instance if the Db2 copy it is associated with has been removed.
Restrictions
This task does not apply to non-root installations. To remove a non-root instance, you must uninstall your Db2 database product.
Procedure
To remove an instance: