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 > how to restore backup to another database but keep orig name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-16-10, 12:18
jarimillen jarimillen is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
how to restore backup to another database but keep orig name

hello,
db2 newbie here
i have 2 database , prod and dev
the dev database is corrupt and there is no backup available
i want to take a backup from the prod database and either repair or create a new dev database
what is the best way to do this?

windows/v8.1

thanks
Reply With Quote
  #2 (permalink)  
Old 12-16-10, 12:21
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
It is called a redirected restore. You can also change the DB name during the restore. Look in the manual on the RESTORE command.

Andy
Reply With Quote
  #3 (permalink)  
Old 12-16-10, 13:21
jarimillen jarimillen is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
thanks, i forgot to mention these are on different machines
will the redirect still work?
Reply With Quote
  #4 (permalink)  
Old 12-16-10, 13:24
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you want the tablespace containers the same, then you do not have to do the redirect.

Andy
Reply With Quote
  #5 (permalink)  
Old 12-16-10, 13:35
jarimillen jarimillen is offline
Registered User
 
Join Date: Dec 2010
Posts: 3
do i just copy the backup image form the prod db to the dev machine
then restore that image to my existing devdb (which is corrupt)?

we just need our developers to be able to call the devdb and access the stored procedures without much reconfiguring

thanks for you time and help
Reply With Quote
  #6 (permalink)  
Old 12-16-10, 14:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you want the tablespace containers exactly like the production, then yes, that is all you need to do.

Andy
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