Nowhere does this specify the backup file for the database and it does not explain what the set tablespace for 2 means? Shouldn't I have to give it the tablespace names?
db2 restore db sample redirect without prompting SQL1277W A redirected restore operation is being performed. During a table space restore, only table spaces being restored can have their paths reconfigured. During a database restore, storage group storage paths and DMS table space containers can be reconfigured. DB20000I The RESTORE DATABASE command completed successfully. db2 set tablespace containers for 2 using (path 'userspace1.0', path 'userspace1.1') DB20000I The SET TABLESPACE CONTAINERS command completed successfully. db2 restore db sample continue DB20000I The RESTORE DATABASE command completed successfully.
Do more with