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 > Moving a DB2 database from one AIX machine to another

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-24-06, 03:12
Huyed Jones Huyed Jones is offline
Registered User
 
Join Date: Jun 2006
Posts: 9
Unhappy Moving a DB2 database from one AIX machine to another

Hi

I have a Db2 database V8.1 running on an AIX Server ( AIX 5.1).Now i want it to move to another AIX 5.1 Server.

Problem is that the taget AIX server has a different IP address and host name as compared to source AIX server. The database is configured currently for online backups with archive logging ON.

Can any body advice me how to do this movement smoothly. Can i do the tar ( which directories .. pls specify) after downing source database and restore it on target AIX server. Will i have to do some changes in any DB2 configuration files???

Or only export and Import can help me?? Or DB2 backups and restoration would help me for this problem ??


Thanks in advance for help!!!!

Regards

Huyed Jones
Reply With Quote
  #2 (permalink)  
Old 09-24-06, 11:03
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
move

you could take offline backup
db2 backup db xxx to /xx
move the backup image to new server and restore the db
db2 restore db xxx from /yy into newdb
if the filesystems do not exist on this new server, you will have to use redirected restore with set tablespace containers statements (see online infocenter for detailed syntax)
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 09-24-06, 16:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can also take an on-line backup and use the INCLUDE LOGS keyword, and then in the redirected restore you would roll forward to the minimum timestamp allowed (try a timestamp of one year ago and the error message will tell you the minimum timestamp to use).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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