DB2 9.7, create or replace tablespace possible? I am creating my tablespaces in the sql scripts that create the database schema. This causes a problem in continuous integration processes, where consecutive execution of the script is not possible because it always tries to create a new instance of the same tablespace.

For triggers there is the call CREATE OR REPLACE TRIGGER but I couldn't find one for tablespaces. Any way around this other than dropping the tablespaces when the schema is dropped?
You can do it programmatically by querying the catalog. However, there is no command like in DB2.

You can query the view SYSCAT.TBSPACES and look for you tablespace. If it exists drop it, then create a new one.