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 > Do I need db2relocatedb ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-09, 03:00
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Do I need db2relocatedb ?

Hello,

I have two db2 instances with same names on separate machines.
There is database in each of these instances with the same name and the same structure( I mean same number of tablespaces the same size of container files ).
The only difference is data on these db's .

So if I want to move db from one instance to another do I need db2relocatedb ?
(basically I'm asking because instance names are the same, if they would be different there would be no question)

thanks
Vilius
Reply With Quote
  #2 (permalink)  
Old 02-03-09, 03:04
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
I'd go for a "redirected restore".
Reply With Quote
  #3 (permalink)  
Old 02-03-09, 03:13
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Redirected restore is not an option because it consumes a lot of time (backup time + restore time (only restore takes 4h on my db) )

I must do that as fast as possible

Vilius
Reply With Quote
  #4 (permalink)  
Old 02-03-09, 04:22
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by vilius
on separate machines
Tell me more about storage. Local disks or SAN? Can the LUN containing the data be mounted by the other server? Are you entering the serverroom with a screwdriver between your teeth to change disks?
If not, you dó have to copy the data....... and I repeat myself: "redirected restore"
Reply With Quote
  #5 (permalink)  
Old 02-03-09, 05:22
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Yes disks are on SAN. I can mount them on target system with no problems.
Reply With Quote
  #6 (permalink)  
Old 02-03-09, 06:24
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
In that case db2relocatedb would be the fastest. Be carefull, test and .... I'd make a backup first
Reply With Quote
  #7 (permalink)  
Old 02-03-09, 15:32
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by vilius
Hello,

I have two db2 instances with same names on separate machines.
There is database in each of these instances with the same name and the same structure( I mean same number of tablespaces the same size of container files ).
The only difference is data on these db's .

So if I want to move db from one instance to another do I need db2relocatedb ?
(basically I'm asking because instance names are the same, if they would be different there would be no question)

thanks
Vilius
so generally you need to move data (if db structures are the same), right?

I guess you would need to ftp your backup file from one server to another and then do restore.

I just did the move of the database from one instance to another within same server and it was fast. I backuped db on one instance and restored on another, then deleted the source db. My target db did not exist so I did not have to use 'restore redirect'. You might want to drop the target db right before restoring and in this case you don't have to use 'restore redirect'.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS

Last edited by MarkhamDBA; 02-03-09 at 15:44.
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