This task provides steps for removing DB2® database products or DB2 database components using the db2_deinstall and doce_deinstall commands.
About this task
This
task applies to DB2 database
products that were installed with root user authority. To uninstall DB2 database products that were installed without
root user authority, see Uninstalling non-root DB2 database products (Linux and UNIX).
The db2_deinstall command
removes DB2 database products
from your system.
The doce_deinstall command
removes the DB2 Information
Center that is in the same install path as the doce_deinstall tool.
Restrictions
- You cannot remove DB2 database
products using a native operating system utility, such as rpm or SMIT.
- The doce_deinstall command is available only
on Linux operating systems
(Linux x32 and x64).
Procedure
To remove DB2 database
products, features or the DB2 Information
Center from a specific path:
- Log in with root user authority.
- Access the path where the DB2 database
products are located. To locate the path of the DB2 database product to remove,
see Listing DB2 database products installed on your system (Linux and UNIX).
- Run one of the following commands:
- To remove a feature from an installed DB2 database product in the current location,
run the db2_deinstall -F command from the DB2DIR/install directory.
- To remove all installed DB2 database
products in the current location, run the db2_deinstall -a command
from the DB2DIR/install directory.
- To remove a DB2 database
product using a response file, run the db2_deinstall -r response_file command
from the DB2DIR/install directory.
You can use a sample response file to uninstall the product. For example, doce_deinstall
-r db2un.rsp
- To remove the DB2 Information
Center in the current location, run the doce_deinstall
-a from the DB2DIR/install directory.
- To remove the DB2 Information Center using a response
file, run the doce_deinstall -r response_file
from the DB2DIR/install directory.
You can use the sample response file to uninstall the Information
Center. For example, doce_deinstall -r doceun.rsp
where DB2DIR is the location that you specified
when you installed your DB2 database
product.