Hello Henning,
Thank you for your update.
There are 9 partition groups. I am not sure with the details about the allocation of the 9 partitions and its data distributions.
You may consider to create new tablespaces on one partition, and move the data there.
Take an example for tablespace ODSD
- Rename tablespace <SID>#ODSD to <SID>#ODSD_OLD
- Rename tablespace <SID>#ODSI to <SID>#ODSI_OLD
- Create new tablespace <SID>#ODSD and <SID>#ODSI on one specific partition.
- Move all tables from <SID>#ODSD_OLD (having indexes in <SID>#ODSI_OLD)
to the new <SID>#ODSD tablespaces.
* Please use the latest version of DB6CONV (SAP note#1513862) for this task.
This gives the opportunity to move all contents of a tablespace.
Once all of this has been done, ensure that <SID>#ODSD_OLD and <SID>#ODSI_OLD are empty. Then, drop the two tablespaces.
Once all tablespaces have been done, you can drop the 'empty' partition with command like:
ALTER DATABASE PARTITION GROUP DROP DBPARTITIONNUM
The data redistribution method might be possible, as you may already see. But there seems more restrictions.
Hope the above helps.
Kind regards
Maria