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 > DB2 database migration from windows to AIX5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-24-08, 01:36
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
DB2 database migration from windows to AIX5

Hi,

I have db2 8.2 database is there on windows platform and I want to migrate the database into AIX-5 platform.

I have taken the db2 backup from windows.

The backup folder path is :

D:\RMDB\RMDB.0\DB2RM\NODE0000\CATN0000\20080421\20 4558.001

The same folder was copied into AIX5 /home/db2inst1 folder.

The below given command is given for restoring the db.

Db2 => restore database RMDB from /home/db2inst1/RMDB/RMDB.0/DB2RM/NODE0000/CATN0000/20080421/204558.001

The error is :

SQL2036N The path for the file or device
"/home/db2inst1/RMDB/RMDB.0/DB2RM/NODE0000/CATN0000/20080421/204558.00" is not
valid.

Please give a solution for how to migrate from windows to AIX platform.

Thanks,

Mohan Reddy
Reply With Quote
  #2 (permalink)  
Old 04-24-08, 03:12
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You have to use the "db2move" tool (or some other mechanism. The reason is that backups from Windows systems cannot be restored on AIX.

Have a look at the DB2 manual. Right at the top of the RESTORE DATABASE command, it is explained which cross-platform backup/restore combinations are permissible: http://publib.boulder.ibm.com/infoce...e/r0001976.htm
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 04-24-08, 03:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
It is usually best to move the schema first using db2look. Then use db2move to move the data.

You might want to create the foreign keys after the data is moved. You can easily extract the FK's out of the db2look output since they are all in one place.
__________________
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