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 > restore database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-04, 09:03
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
restore database

I will be restoring a database on a new server. When I issue the restore command on the new server will I have to include the history file option in order to sync up log numbers?
Reply With Quote
  #2 (permalink)  
Old 11-24-04, 09:09
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What OS and DB2 version? Was it an online or offline backup?

Andy
Reply With Quote
  #3 (permalink)  
Old 11-24-04, 09:23
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
db version

OS = AIX 4.3.3
DB = 7.1

It is an online backup
Reply With Quote
  #4 (permalink)  
Old 11-24-04, 09:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The answer is No. Your restore command will look something like:

RESTORE DB <backedup db name> from <dir where image is> taken at <timestamp of backup image (should be part of name)> into <new DB name> replace existing (if the new DB exists) redirect (if you want to change the tablespace configuration) without prompting

Note: if you are doing a REDIRECTed restore, please read the command reference manual on how to do this.

Then copy the logs to the log directory of the new database, then issue
a ROLLFORWARD command.

HTH
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