Appendix D. Uninstalling your DB2 product
Uninstalling your DB2 product (Windows)
This task provides steps for completely removing your DB2 product from your
Windows operating system. You should only perform this task if you no longer
require existing your DB2 instances and databases.
If you are uninstalling the DB2 default copy, and you have other DB2 copies on
your system, you should use the db2swtch command to choose a new default
copy before you proceed with the uninstallation. Also, if your database
administration server (DAS) is running under the copy being removed, you should
move your DAS to a copy that is not being removed. Otherwise, you will have to
recreate the DAS using db2admin create command after the uninstall and you
might have to reconfigure the DAS for some functionality to work.
Procedure:
To remove your DB2 product from Windows:
1. Drop all databases. You can drop databases using the Control Center or drop
database command. If you drop your databases, all of your data will be gone.
2. Stop all DB2 processes and services. This can be done through the Windows
Services panel or by issuing the db2stop command. If DB2 services and
processes are not stopped before attempting to remove your DB2 product, you
will receive a warning containing a list of processes and services that are
holding DB2 DLLs in memory.
3. You have two options for removing your DB2 product:
Add/Remove Programs
Accessible through the Windows Control Panel, use the Add/Remove
Programs window to remove your DB2 product. Refer to your
operating system’s help for more information about removing software
products from your Windows operating system.
db2unins command
You can run the db2unins command to remove your DB2 product.
Using this command, you can uninstall multiple DB2 products at the
same time using the /p parameter. You can also silently uninstall DB2
products by using /u parameter which will remove the DB2 products
specified in the response file. For more information, see the db2unins
command topic.
Unfortunately,
your DB2 product cannot always be removed by using the Control
Panel - Add/Remove Programs facility or using the db2unins /p command or the
db2unins /u command. The following uninstallation option should ONLY be
attempted if the above method fails.
To forcefully remove all DB2 copies from your Windows system, run the db2unins
/f command. This command will perform a brute force uninstallation of ALL DB2
copies on the system. Everything except user data, such as DB2 databases, will be
forcefully deleted.
Related tasks:
© Copyright IBM Corp. 1993, 2006 73