Removing non-root Db2 database products using db2_deinstall (Linux and UNIX)
This task provides steps for removing non-root Db2 database products or components using the db2_deinstall command.
Before you begin
You must stop the non-root instance before running the db2_deinstall command.
About this task
- This task applies to Db2 database products that were installed without root user authority. A separate task exists for uninstalling Db2 database products that were installed with root user authority.
- As with root users, non-root users can use the db2_deinstall command to uninstall Db2 database products. The db2_deinstall command for non-root installations has the same options as root installations, and has an extra option: -f sqllib.
- It is important to note that running db2_deinstall as a non-root user uninstalls the Db2 database product and drops the non-root instance. This is different than root installations, where running db2_deinstall only uninstalls the Db2 database program files.
- You cannot remove Db2 database products using a native operating system utility, such as rpm or SMIT.
Procedure
To uninstall a Db2 database product that was installed by a non-root user: