You can remove an existing table space by issuing a DROP TABLESPACE statement. This can
be useful if you plan to change the table space name or plan to recreate the table space with a
different set of attributes.
Ensure that if you are removing the a table space, you do not break the requirements of the
database access types. Some database access types require at least one table space. Also, ensure
that any tables that are assigned to the table space are not affected.
Procedure
-
Issue an ALTER DATABASE statement to identify the database in which you plan to modify.
-
Issue a DROP TABLESPACE statement. Ensure that you also provide the IN keyword to reference it
to the database it belongs to.
-
Issue any ALTER TABLE statements to move any tables you need to a different table space (data
set group).
-
Issue a COMMIT DDL statement.