DB2 restore over existing database

28 January,2011 by Jack Vamvas

Requirement to DB2 restore a copy of a DB2 database backup taken  from another DB2 instance and replace the existing one

 Steps:

1)Take a full backup of the database of INSTANCE 1

 

db2 force applications all

db2 backup database MYDB

##Transfer the backup copy to a relevant path

 db2 force applications all

db2 restore db MYDB from /mypath/backups TAKEN AT 20110128111333  INTO MYDB REPLACE EXISTING
Author: Jack Vamvas(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on DB2 restore over existing database

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright