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:
- Log in with the user ID that was used to install the DB2 database product.
- Navigate to the $HOME/sqllib/install directory,
where $HOME is your home directory.
- Run the db2_deinstall command.
Note: - If you run the db2_deinstall command with the -a option,
the DB2 database program files
are removed, but any configuration files are left behind in a backup
directory called sqllib_bk.
- If you run the db2_deinstall command with the -a
-f sqllib option, the entire sqllib subdirectory
in your home directory will be removed. If you have any files in sqllib you
want to keep, be sure to copy them elsewhere before running db2_deinstall
-a -f sqllib.
- As with root installations, running the db2_deinstall command
with the -F option against a non-root installation
allows the non-root user to remove specific DB2 features.