Raquel <ra****************@yahoo.com> wrote:
I think you mis-understood my question. The statement "db2 RESTORE DB
mydb TABLESPACE" does not have any 'specific tablespace' mentioned. I
was wondering that in this specific case (where no specific tablespace
is mentioned), what is the difference between these two statements.
"db2 restore db mydb tablespace" will restore whatever tablespaces happen
to be in the backup image that you're restoring. If it's a tablespace
backup, it might not contain all of the tablespaces that exist in the
database.
Furthermore, after the restore, the tablespaces that you restored will
be in rollforward-pending state, whereas after a database restore, it
is the database that is in rollforward-pending state.
There are a few other subtle cases where the two cases are different, but
they all come down to the idea that a tablespace restore is not the same
as a database restore.
dave