Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 07:25 AM
Raquel
Guest
 
Posts: n/a
Default Restore database Vs Restore tablespace.....

How are the following two commands different as far as the 'end
result' of the restores is concerned:

1. db2 RESTORE DB mydb
2. db2 RESTORE DB mydb TABLESPACE

In other words, in the above case, what is the difference between
'database restore (performed in point 1 above) Vs the 'tablespace
restore' (performed in point 2 above).

TIA
Raquel.
  #2  
Old November 12th, 2005, 07:25 AM
Mark A
Guest
 
Posts: n/a
Default Re: Restore database Vs Restore tablespace.....

"Raquel" <raquel_rodriguezus@yahoo.com> wrote in message
news:9a73b58d.0405132324.3229db68@posting.google.c om...[color=blue]
> How are the following two commands different as far as the 'end
> result' of the restores is concerned:
>
> 1. db2 RESTORE DB mydb
> 2. db2 RESTORE DB mydb TABLESPACE
>
> In other words, in the above case, what is the difference between
> 'database restore (performed in point 1 above) Vs the 'tablespace
> restore' (performed in point 2 above).
>
> TIA
> Raquel.[/color]

The first restores the entire database, the second restores only the
specified tablespace.

If you restore a tablespace, you need archive logging turned on (before the
backup performed).

Note that you can restore a specific tablespace from a full database backup
or a tablespace backup.


  #3  
Old November 12th, 2005, 07:25 AM
Raquel
Guest
 
Posts: n/a
Default Re: Restore database Vs Restore tablespace.....

> The first restores the entire database, the second restores only the[color=blue]
> specified tablespace.
>
> If you restore a tablespace, you need archive logging turned on (before the
> backup performed).
>
> Note that you can restore a specific tablespace from a full database backup
> or a tablespace backup.[/color]


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.

TIA
Raquel.
  #4  
Old November 12th, 2005, 07:26 AM
David Mooney
Guest
 
Posts: n/a
Default Re: Restore database Vs Restore tablespace.....

Raquel <raquel_rodriguezus@yahoo.com> wrote:[color=blue]
> 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.[/color]

"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
  #5  
Old November 12th, 2005, 07:26 AM
Raquel
Guest
 
Posts: n/a
Default Re: Restore database Vs Restore tablespace.....

Thanks Dave. Make things very clear now.

Regards,
Raquel.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.