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 > Informix > error while Importing database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-07, 00:54
diliph diliph is offline
Registered User
 
Join Date: Oct 2007
Posts: 4
error while Importing database

Hi All,

When I was importing Informix Database, there is an error LOAD FILE HAS DIFFERENT NUMBER OF COLUMNS THEN TABLE. This is when importing on LINUX.

But that was importing fine when I did the same on Windows.

Could any one help me, whether is there any mistake which done by me or is there any thing that has to be changed.

Command that i used is:
dbimport name -i <path> -d name

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-22-07, 05:14
stanislav.ondac stanislav.ondac is offline
Registered User
 
Join Date: Aug 2005
Posts: 140
When you export database in Windows environment, you should also import it in Windows. Otherwise you can have problems with line or column separators and thats probably your case. I think you have windows line separators in database export files(created by dbexport), which are not correct in Linux environment.
So transform exported files to unix-like files with some utility, or create export of the database in Linux.
Reply With Quote
  #3 (permalink)  
Old 10-22-07, 12:05
ceinma ceinma is offline
Registered User
 
Join Date: Apr 2007
Location: Jundiai / SP - Brasil
Posts: 311
try this commands on linux/unix:
unix2dos
dos2unix
__________________
________________________________________
César Inacio Martins
Jundiai / SP - Brasil
http://www.imartins.com.br/informix - em Português
http://www.imartins.com.br/informix - English (translated by Google).
________________________________________
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