To remove an instance, perform the following steps:
You might want to save the database manager configuration file, db2systm, the db2nodes.cfg file, or user defined function or fenced stored procedure applications in INSTHOME/sqllib/function, where INSTHOME is the home directory of the instance owner.
DB2DIR/instance/db2idrop InstName
InstName is the login name of the instance.
|
| where DB2DIR | = /usr/lpp/db2_05_00 | on AIX |
|
|
| = /opt/IBMdb2/V5.0 | HP-UX, SCO UnixWare 7, Solaris, or SGI IRIX |
|
|
| = /usr/IBMdb2/V2.1 | on SCO OpenServer |
|
|
| = /opt/IBMdb2/V2.1 | on SINIX |
This step is optional since the instance owner and the 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.