Eugene F wrote:
DB2 (at least for LUW) doesn't allow to drop a table space if there is
one object (tables or index) allocated on it. So that souldn't going to
work.
This statement is wrong. You can drop the tablespace and it will drop all
tables in it:
$ db2 "create tablespace ts managed by database using ( file 'ts' 1000 )"
DB20000I The SQL command completed successfully.
$ db2 "create table x ( a int ) in ts"
DB20000I The SQL command completed successfully.
$ db2 "select count(*) from syscat.tables where tabname = 'X'"
1
-----------
1
1 record(s) selected.
$ db2 "drop tablespace ts"
DB20000I The SQL command completed successfully.
$ db2 "select count(*) from syscat.tables where tabname = 'X'"
1
-----------
0
1 record(s) selected.
--
Knut Stolze
DB2 Information Integration Development
IBM Germany