0

For some reason, I have created a few tablespaces for testing in DB2, I realized that if I didn't specify which tablespace the table should be created in, DB2 will select it for me.

The question is, I want to delete the unused tablespace, but I am afraid I will delete something that I didn't know. I have checked the tables, index and sequence after dropping the unused tablespace, and the number of rows is the same. Will this checking be enough to conclude the tablespace is good to be dropped?

4

1 回答 1

1

您可以查询目录以检索表及其存储位置。

select tabschema, tabname, tbspaceid, tbspace
from syscat.tables 
where tabschema not like 'SYS%'"

您可以更改 where 条件,以过滤要删除的表空间。

于 2013-06-18T12:18:08.460 回答