>> If you are using vesion 8 then you have to export tables from one
>> tablespace and import then into the other.
>
> Thanks for your answer!
> But: can i export/import a complete tablespace at once? There are many
> many tables in this tablespace!
There is a command db2move
(http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.
udb.doc/core/r0002079.htm)

Signature
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gregor.Kovac@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Frank Fiene - 04 Jul 2006 15:13 GMT
>>> If you are using vesion 8 then you have to export tables from one
>>> tablespace and import then into the other.
[quoted text clipped - 4 lines]
>
> There is a command db2move
Yes, i found this, too!
What i've tried:
1.) db2move sample export -ts USERSPACE1
2.) db2 create db temp
3.) db2move temp import
4.) db2 CONNECT TO TEMP;
5.) db2 RENAME TABLESPACE USERSPACE1 TO MYSPACE1;
6.) db2 CONNECT RESET;
7.) rm tab*
7.) db2move temp export -ts MYSPACE1
8.) db2move sample import
9.) db2 connect to sample
10.) db2 list tablespaces
No tablespace MYSPACE1 in sample, but in temp!
The output of db2move import (partially):
* IMPORT: table "DB2INST1"."SALES"
-Rows read: 41
-Inserted: 41
-Rejected: 0
-Committed: 41
...