doyoudb2

DB2 UDB for LUW (Linux, Unix and Windows)

 
  • Increase font size
  • Default font size
  • Decrease font size

Restoring a v8 backup into a v9 database

E-mail Print PDF
User Rating: / 0
PoorBest 


Here is a tip from db2 expert Ajay Jain on how to restore a db2 v8 database into a db2 v9 instance.

If you are also working for a client like me, where migrating production system(s) to latest version(V9) takes months even after you migrated the QA/DEV/other boxes, then I assume, you may face a situation when there is a need to restore v8 prod copy into one of the v9 migrated QA/DEV/other DB2 instance/db.

Here are two ways in which you can achieve this:

1. Take your Prod system down, take an offline database backup and then restore this offline database v8 copy into v9 database. DB2 will migrate the data automatically.

2. If you can't afford to take production down for an offline backup, which is true in most of the cases, then you can go with the approach given below to restore from an online db backup and then rollforward.

a) Save the current QA/DEV dbm config and registry variable settings in a file.
b) Drop the QA/DEV v9 database and instance.
c) Create V8 QA/DEV instance and apply the saved dbm config and registry variable values.
d) Create an empty V8 QA db(optional) and restore(redirect) the production V8 copy into the QA/DEV V8 db.
e) Now, migrate V8 QA db to V9 using your standard V9 migration procedure.

You can also try another option - restore V8 Prod into a standby/sandbox V8 db, migrate that to V9 and then take a backup and restore it into V9 QA db. But this requires you to have an extra storage/hardware at your disposal.

Happy Migrating.


Comments
Add New Search
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
Please input the anti-spam code that you can read in the image.
msundaram   |Tuesday, 05 August 2008 07:10
Good steps. We went through the same kind of excercise couple of weeks back in
HADR environment. Restoring v8.2 uat db backup to v9.1 version using full
offline backup and redirect restore method.
Its on a HADR environment, you
might want to consider of the following info.

Initialization of HADR
replication in migrated databases
---------------------------------------
-----------------------------------
During migration to DB2(R) Version 9 in a
high availability disaster recovery (HADR) replication environment, a database
role is changed from primary to standard. Migration of standby databases is not
supported because these databases are in roll forward pending state.

Before
migration, you should stop HADR on the primary and standby databases because you
can only migrate the primary database. After migration, re-create your standby
databases and initialize HADR on the primary and standby databases
again.

http://publib.boulder.ibm.com/infocenter /db2luw/v9/index.jsp

3.25 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 

Search Site

Subscribe

Enter your email address to receive new posts directly in your Inbox:

Relax! We hate SPAM as much as you do.

Sign In/Register

Syndicate Feeds - Subscribe