Uninstalling DB2 UDB
Uninstalling DB2 UDB
Uninstalling DB2 UDB
This task provides steps for removing DB2 Version 8 from your UNIX operating system.
This task is not required to install a new version of DB2. Each version of DB2 on UNIX
has a different installation path and can therefore coexist on the same computer.
Procedure
1. Optional: Drop all databases. You can drop databases using the Control
Center or the drop database command.
2. Stop the DB2 Administration Server.
3. Remove the Administration Server.
4. Stop DB2 instances.
5. Remove DB2 instances.
6. Remove DB2 products.
You must stop the DB2 administration server (DAS) before you remove DB2 on UNIX.
Procedure
You must remove the DB2 administration server (DAS) before you remove DB2.
Procedure
You must stop all DB2 instances before you remove DB2.
Procedure
and
3. Log out.
4. Log back in as the owner of the instance you want to stop.
5. Run the start up script:
6. . INSTHOME/sqllib/db2profile (bash, Bourne, or Korn shells)
7. source INSTHOME/sqllib/db2cshrc (C shell)
You can remove some or all of the DB2 version 8 instances on your system. Once an
instance is removed, all the DB2 databases owned by the instance, if any, will not be
usable. Remove DB2 instances only if you are not planning to use DB2 Version 8
products, or if you do not want to migrate existing instances to a later version of DB2.
Procedure
To remove an instance:
The db2idrop command removes the instance entry from the list of instances and
removes the INSTHOME/sqllib directory, where INSTHOME is the home
directory of the instance and where InstName is the login name of the instance. If
you are storing any files in /sqllib directory, these files will be removed by this
action. If you still need these files, you must make a copy of them before
dropping the instance.
4. Optional: As a user with root authority, remove the instance owner's user ID and
group (if used only for that instance). Do not remove these if you are planning to
re-create the instance.
This step is optional since the instance owner and the instance owner group may
be used for other purposes.
This task provides steps for removing DB2 Version 8 products using the db2_deinstall
command. The db2_deinstall command removes all DB2 products from your system. If
you want to remove a subset of DB2 products, use your operating system's native tools to
remove DB2 components, packages, or file sets.
Prerequisites
Ensure that you have performed all steps outlined in Removing DB2 on UNIX
before removing DB2 products from your UNIX system.
You must have root authority to remove DB2 products.
You will need your product CD-ROM to use the db2_deinstall command. The
db2_deinstall command is found in the root directory on the DB2 Version 8
product CD-ROM.
Procedure
This command will remove all DB2 products from your system.
There are alternative methods for removing DB2 products from your operating system.
You may employ one of these methods if you only want to remove a subset of DB2
products from your system. Alternative methods for removing DB2 products include:
AIX
You can use the System Management Interface Tool (SMIT) to remove some or
all DB2 products. If you use SMIT to remove DB2, DB2 Version 8 products can
be identified by their prefix of db2_08_01. You can also remove all DB2 products
from AIX systems using the installp command by entering installp -u
db2_08_01.
HP-UX
You can use the swremove command to remove some or all DB2 products.
Linux
You can use the rpm command to remove some or all DB2 products.
Solaris Operating Environment
You can remove some or all DB2 products using the pkgrm command.