If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Online Restore: exclusive access to tablespaces

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-04, 17:20
globetrotcom globetrotcom is offline
Registered User
 
Join Date: Jan 2004
Posts: 23
Online Restore: exclusive access to tablespaces

I read that, for online restoration, exclusive access is required only for the tablespaces being restored.

I am curious as to how do you procure this exclusive access to tablespaces being restored on an online database.

Doesn't one, usually, backup all the tables, hence all tablespaces, in a database backup? If that's true, don't we need exclusive access to the full database for restore?

You can tell I am a newbie!

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-15-04, 17:57
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Online Restore: exclusive access to tablespaces

If you use logretain or userexit, you can restore one or more tablespaces or the entire database ...
In case you are restoring only a few tablespaces, then specify the name of that tablespace along with the keyword online ... This will require exclusive acess only to the tablespace in question

For more details look into the comnmand reference

HTH

Sathyaram


Quote:
Originally posted by globetrotcom
I read that, for online restoration, exclusive access is required only for the tablespaces being restored.

I am curious as to how do you procure this exclusive access to tablespaces being restored on an online database.

Doesn't one, usually, backup all the tables, hence all tablespaces, in a database backup? If that's true, don't we need exclusive access to the full database for restore?

You can tell I am a newbie!

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-15-04, 18:22
globetrotcom globetrotcom is offline
Registered User
 
Join Date: Jan 2004
Posts: 23
Thanks for attempting to answer my questions, which still remain:

First of all, how to you procure exclusive access to the tablespaces being restored online?

Secondly, what considerations go into deciding which tablespaces to backup for later online restore.

Thanks
Reply With Quote
  #4 (permalink)  
Old 01-15-04, 18:42
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally posted by globetrotcom
Thanks for attempting to answer my questions, which still remain:

First of all, how to you procure exclusive access to the tablespaces being restored online?

Your RESTORE command does this for you ...


Secondly, what considerations go into deciding which tablespaces to backup for later online restore.



Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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