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 backup / Offline backup

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-07, 16:19
SAdmin SAdmin is offline
Registered User
 
Join Date: Nov 2007
Posts: 1
Online backup / Offline backup

My company bought a new server for DB2. I'm tring to migrate database from the old server to the new server.

I've finished DB2 installation. After installing the application system, I'm going to do offline backup and restore it to the new server. Then, I'm going to test database/application from some desktops. If everything is OK, I'll move the new server to the rack.

Since test needs time/I also need some buffer time/production enviroment cannot put down for half day, I'll have to do the second backup/restore. I'm wondering which type of backup I should go with, offline or online?

Any suggestion for db2 migration welcome.

Thank you

Joanne
Reply With Quote
  #2 (permalink)  
Old 11-14-07, 16:48
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
To setup the test system:

1) Perform an online backup of you production system. Be sure to INCLUDE LOGS.
2) Restore the backup image to you new server. Be sure to use the LOGTARGET clause.
3) ROLLFORWARD the newly restored DB
a) copy the logs from step 2 to the active log directory of the DB
b) execute "ROLLFORWARD DB MyDB COMPLETE". This will either work or give you the minimum time to rollforward.
c) if you got the minimum time do: "ROLLFORWARD DB MyDB to <timestamp in b> AND COMPLETE"

You should have a workable DB, and no outages.

Andy
Reply With Quote
  #3 (permalink)  
Old 11-14-07, 16:49
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I forgot. You will still want to to the offline backup and restore when you go live with the new server.

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