After fixing the problem that caused DB2 Universal Database to revert to an OFFLINE table space state, perform the following steps to return the state to ONLINE:
RESTART DATABASE database-alias [USER user-name [USING password]] [DROP PENDING TABLESPACES tablespace-name1, tablespace-name2, tablespace-nameN]
In case of circular logging, a damaged or missing table space (either temporary or permanent) causes a restart database failure. Option DROP PENDING TABLESPACES can be used by explicitly telling the database manager to make the database restart successfully, even if you may lose these table spaces.
A list of troubled table space names can be found in db2diag.log if a restart database fails because of container problems.
If there is only one temporary table space in the database and it is in DROP PENDING state, a new temporary table space must be created right after a successful database restart.
If the database is only restarted on a single node within an MPP system, a message may be returned on a subsequent database query indicating that the database needs to be restarted on other nodes. This requirement occurs because the database partition on a node on which the query depends must also be restarted. Restarting the database on all nodes solves the problem.
If a problem occurs with containers of table spaces, specified in DROP PENDING option of RESTART DATABASE command, during the restart process, the corresponding table space is in DROP PENDING state after the successful restart.
Once a table space is in DROP PENDING state, the only operation available is to drop it.
DROP PENDING table space state applies only to circular logging.
DROP TABLESPACE allows you to drop a table space that shares a table with other table spaces.
In DB2 Universal Database Version 6, new table space status is valuable to circular logging. For log retain, the current logic is applied without change. However, for circular logging, there are two situations to be considered.
db2 RESTART sample [USER user1 [USING passwd]] [DROP PENDING TABLESPACES (tsname1, tsname2, ...tsnameN)]