- Installing DB2 UDB Servers
- Before You Begin
- Installing DB2 UDB
- Installed Directory Structure
- Considerations in an NIS Environment
- Distributed Installation
- Sample Response Files
- Creating a Response File
- Distributed Installation with a Response File
- Installing DB2 with db2_install
- DB2 UDB Environment Definitions
- DB2 Profile Registry
- Managing the DB2 Profile Registry
- The db2set Command
- Environment Variables
- Hierarchy of the DB2 UDB Environment
- DB2 Administration Server (DAS)
- DAS Process
- DB2 Instances
- Creating the Sample Database
- Using the Command Line Processor (CLP)
- Uninstalling DB2 Products
- Stopping the DAS Instance
- Stopping All DB2 Instances
- Removing the DAS Instance
- Removing DB2 Instances
- Removing DB2 Products
Removing DB2 Instances
You can optionally remove some or all 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 unless you recatalog them with a new instance. 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. To remove an instance, perform the following steps:
Log in as a user with root authority.
Back up files in the INSTHOME/sqllib directory, if needed, where INSTHOME is the home directory of the instance owner. You might want to save the database manager configuration file, db2systm, the db2nodes.cfg file (if you installed DB2 UDB Enterprise-Extended Edition), or the user-defined function or fenced stored procedure applications in INSTHOME/sqllib/function, where INSTHOME is the home directory of the instance owner. You can also export instance configuration information with the db2cfexp command.
Remove the instance by entering the following command:
where DB2DIR = /opt/IBM/db2/V8.1, and where InstName is the instance name.
Optionally, as a user with root authority, remove the instance owner's userid 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 instance owner group may be used for other purposes.
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.