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 > redirected restore question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-07-03, 18:32
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
redirected restore question

I am planning to perform a database clone copy move from our old server to the new database server. How would I perform a redirected restore from serverA to serverB or is there a better method to do this? This will be part of the server move and database migration from old hardware using DB2 7.2 on AIX 5.2 to new RS6000 hardware and a database upgrade to 8.1.2 DB2 UDB on AIX 5.2.

Steps planned:
1. install and configure DB2 UDB 8.1.2 on new hardware

2. migrate existing DB2 database instance and databases to over to new database server

3. perform database upgrade/migration

Thanks

Scott
Reply With Quote
  #2 (permalink)  
Old 10-07-03, 18:37
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
If you dont have any other database objects that may have to be migrated then export the data in del format and import it back on the new database which was set up in V8.
or

Install v7 on your new hardware and do the redirected restore and migrate the instance and apply the fixpacks upto 3
Reply With Quote
  #3 (permalink)  
Old 10-07-03, 18:41
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
upgrade and db2 move

So should I install DB2 7.2 first before loading DB2 8.1.2 on the new server hardware? Is it possible to load data from V7.2 UDB into DB2 UDB 8.12? Thanks!
Reply With Quote
  #4 (permalink)  
Old 10-07-03, 20:46
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: redirected restore question

I suggest
1. Take v7 backup (old box)
2. Restore v7 backup on v8 (new box). During restore automatic db migration will be done


There is not need for v7 install on a new box
Reply With Quote
  #5 (permalink)  
Old 10-08-03, 10:12
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
However, there is something about indexes - if I recall correctly, if you restore a v7 backup to v8 and wish to benefit from the v8 type 2 indexes then you will have to drop and recreate all indexes.

Another thing that comes to mind is that if you have data fragmentation, you can take this opportunity to remove it by export-load though ofcourse, it will be a slower process. There are other challenges to using this method if the system is MPP.
Reply With Quote
  #6 (permalink)  
Old 10-08-03, 13:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
In DB2 V8, REORG INDEXES will always convert type-1 indexes to
type-2 indexes unless you are using the CLEANUP option.
Reply With Quote
  #7 (permalink)  
Old 10-08-03, 13:27
cchattoraj cchattoraj is offline
Registered User
 
Join Date: Mar 2003
Posts: 343
But won't a drop and create be faster?
Reply With Quote
  #8 (permalink)  
Old 10-08-03, 13:35
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
restore and upgrade

Great thanks here is what I have thus far:

1. Install DB2 UDB V8.1.2 on new server
2. Extract DDL from old database server (use db2look)
3. Create database on new server with ddl
4. Restore old database v7.2 to new database server
5. Test to see if all works.
Reply With Quote
  #9 (permalink)  
Old 10-08-03, 13:40
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: restore and upgrade

Quote:
Originally posted by mixxalot
Great thanks here is what I have thus far:

1. Install DB2 UDB V8.1.2 on new server
2. Extract DDL from old database server (use db2look)
3. Create database on new server with ddl
4. Restore old database v7.2 to new database server
5. Test to see if all works.
I do not understand why you need steps 2. DB backup contains all required ddls. The only thing you need to do is redirect containers during restore.

-dmitri
Reply With Quote
  #10 (permalink)  
Old 10-08-03, 14:17
mixxalot mixxalot is offline
Registered User
 
Join Date: May 2003
Posts: 369
thanks good point

I agree. I was thinking of disk and filesystem layout which I will need with the DB2 installation anyhow. Thanks again.

Scott
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