Quote:
|
Originally Posted by jyoung
Ok, I have dropped the TEST database. Now I want to restore the backup of the PROD database to TEST and I want to make sure that the containers go into a specific directory. For the data portion I want them in /db2test/data. For the index portion /db2test/index. What would be the restore command for that? Thank you.
|
During a restore operation, you can rellocate a particular tablespace, but you cannot rellocate a table (or indexes within a table) unless the data and indexes are already pointed to different tablespaces.
You could change the schema definition to point the tables and indexes to different locations and then reload all the data with a db2move.