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 > db2move error message

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-07, 11:08
bluestock bluestock is offline
Registered User
 
Join Date: Apr 2007
Posts: 4
db2move error message

Hello

I have a problem migrating db2 database from Windows platform to Linux Redhat.

I use db2move to export database from Windows and then use db2look command to generate DDL

statement.

After that I transfer .ixf files, db2move.lst, and db2look.sql to Linux.

In Linux platform, I type the command as the following
db2 create dbname
db2 -tvf db2look.sql
db2move dbname load

I got error message from the last command as show below


Application code page not determined, using ANSI codepage 1208


Error opening report file. Terminating...


**Error occured while opening a file.


on Windows I use DB2 Version 9.1.0.365
on Linux I use DB2 Version 9.1.0

Do you have any suggestion to fix this problem or any other technique to migrate DB2 database from Windows to Linux.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-28-07, 14:15
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Why so complicated? Take a backup on Windows and restore it on Linux. The only restriction regarding portability of backup images in V9 is that source and target systems must both be little endian or both big endian.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 04-30-07, 13:21
bluestock bluestock is offline
Registered User
 
Join Date: Apr 2007
Posts: 4
Thank you so much for your advice.

I thought the only way to migrate database across platform was db2move.

Today I try backup and restore as you suggested.

When I restore to LINUX I got error message as below

SQL2570N An attemp to restore on target OS "Linux-IA32" from a backup created on source OS "NT-32" failed due to the incompatibility of operating systems or an incorrect specification of the restore command. Reason-code: "1".

Do you have any suggest to fix this problem?

Thanks again *_*
Reply With Quote
  #4 (permalink)  
Old 04-30-07, 14:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You cannot backup on Windows and restore to anything else. Look at the DB2 documentation:

http://publib.boulder.ibm.com/infoce...c/c0005960.htm

It is only the Linux/Unix that can be done that way.

Andy
Reply With Quote
  #5 (permalink)  
Old 04-30-07, 15:39
bluestock bluestock is offline
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks so much, Andy.

So the only way to migrate database from Windows to Linux is db2move, right?

Kay
Reply With Quote
  #6 (permalink)  
Old 04-30-07, 16:01
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Using db2move is probably the preferred way. But there are other ways. One way would be to use DB2 Federation and LOAD from cursor. It all depends on the resources you have, how many tables, etc.

Andy
Reply With Quote
  #7 (permalink)  
Old 05-03-07, 00:13
bluestock bluestock is offline
Registered User
 
Join Date: Apr 2007
Posts: 4
Thank you so much Stolze and Andy

Now I'm back to use db2move command.
I just found that the reason of those error message it because of the user db2admin is no permission to write file.
Reply With Quote
  #8 (permalink)  
Old 05-04-07, 04:04
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by ARWinner
You cannot backup on Windows and restore to anything else. Look at the DB2 documentation:

http://publib.boulder.ibm.com/infoce...c/c0005960.htm

It is only the Linux/Unix that can be done that way.
Aargh! I missed that "Windows" bullet.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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