Error al realizar un DBIMPORT
Posted in 2016
David's dbimport (dbexport from Informix 9.0 into IDS 7.3) failed on most tables with "Load file has different number of columns than table", although the .unl data looked correct. Art Kagel suggested embedded delimiters or newlines needing backslash escaping; Mike Walker and Viviana Gomez pointed instead to hidden CR (^M) characters from a DOS-format transfer. That was the cause: the files had passed through a Windows machine and stayed in DOS format. David fixed it by converting them with dos2unix myfile.unl.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Storage & Space Management, Stored Procedures & SPL, Migration, Import/Export & Data Conversion, Versions, Editions & End-of-Life
Buenas Tardes..!!
Con un atento saludos a todos, pido su ayuda con un error que tengo al hacer
un dbimport de mi base.
El error que despliega es que las columnas del archivo , no son iguales a las
columnas de la tabla, este error me da en la gran mayoria de las tablas de mi
base de datos. Lo he revisado una y otra vez pero no encuentro la diferencia.
A continuacion les copio el error que sale y el esquema de una de las tablas
que me indica el error:
{ TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size = 13 }
{ unload file name = cb00000100.unl number of rows = 24 }
create table "prueba".cb0001
(
empresa char(2) not null ,
banco char(3) not null ,
n_banco char(30) not null ,
ciudad char(4) not null ,
direccion char(60) not null ,
telefono char(6)
) extent size 16 next size 16 lock mode page;
Load file has different number of columns than table
Do you want to abort?
01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
~
~
"cb00000100.unl" [dos] 24L, 1531C written
Como nota puedo indicar que cuando saque el dbexport de mi base lo hice en una
version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
En espera de sus comentarios,
Saludos,
David
David:
Wow, you REALLY need to upgrade! You are exporting from v9 to v7.3 both out
of support.
That aside, the problem is most likely that some of the rows in some unload
files contain embedded delimiter characters (|) or embedded new line
characters so that those rows. You may have to manually edit the files and
fix those rows by quoting the embedded delimiters and/or new lines with
backslash (\\\\) characters.
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on the IIUG, nor any other organization with which I am
associated either explicitly, implicitly, or by inference. Neither do
those opinions reflect those of other individuals affiliated with any
entity with which I am affiliated nor those of the entities themselves.
2016-09-09 15:24 GMT-04:00 DAVID VALLEJO <vallejod@hotmail.com>:
> Buenas Tardes..!!
>
> Con un atento saludos a todos, pido su ayuda con un error que tengo al
> hacer
> un dbimport de mi base.
>
> El error que despliega es que las columnas del archivo , no son iguales a
> las
> columnas de la tabla, este error me da en la gran mayoria de las tablas de
> mi
> base de datos. Lo he revisado una y otra vez pero no encuentro la
> diferencia.
> A continuacion les copio el error que sale y el esquema de una de las
> tablas
> que me indica el error:
>
> { TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size =
> 13 }
> { unload file name = cb00000100.unl number of rows = 24 }
>
> create table "prueba".cb0001
> (
>
> empresa char(2) not null ,
>
> banco char(3) not null ,
>
> n_banco char(30) not null ,
>
> ciudad char(4) not null ,
>
> direccion char(60) not null ,
>
> telefono char(6)
> ) extent size 16 next size 16 lock mode page;
> Load file has different number of columns than table
>
> Do you want to abort?
>
> 01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> 01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
> 01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
> 02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> 02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
> 02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
> 02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
> 02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
> 02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
> 02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
> 02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
> 02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> 02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> 02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
> 02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> 01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> 01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> 01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> 01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
> 01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
> 01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
> 01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
> 01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
> 01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
> ~
> ~
> "cb00000100.unl" [dos] 24L, 1531C written
>
> Como nota puedo indicar que cuando saque el dbexport de mi base lo hice en
> una
> version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
>
> En espera de sus comentarios,
>
> Saludos,
>
> David
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--94eb2c0c27f4763c80053c184614
Hello
I have a test machine in V7.3 is why I need to get on that version .
Try to change the delimiters by ";" but it was not the solution
Thanks!
________________________________
De: ids-bounces@iiug.org <ids-bounces@iiug.org> en nombre de Art Kagel
<art.kagel@gmail.com>
Enviado: viernes, 09 de septiembre de 2016 19:37
Para: ids@iiug.org
Asunto: Re: Error al realizar un DBIMPORT [37787]
David:
Wow, you REALLY need to upgrade! You are exporting from v9 to v7.3 both out
of support.
That aside, the problem is most likely that some of the rows in some unload
files contain embedded delimiter characters (|) or embedded new line
characters so that those rows. You may have to manually edit the files and
fix those rows by quoting the embedded delimiters and/or new lines with
backslash (\\\\) characters.
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com<http://www.askdbmgt.com>
ASK Database Management - Home<http://www.askdbmgt.com/>
www.askdbmgt.com
This is the site for Art S. Kagel's consultancy. The soaring majesty and
beauty in the image above hides the complex ecology and detail of its
existence.
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on the IIUG, nor any other organization with which I am
associated either explicitly, implicitly, or by inference. Neither do
those opinions reflect those of other individuals affiliated with any
entity with which I am affiliated nor those of the entities themselves.
2016-09-09 15:24 GMT-04:00 DAVID VALLEJO <vallejod@hotmail.com>:
> Buenas Tardes..!!
>
> Con un atento saludos a todos, pido su ayuda con un error que tengo al
> hacer
> un dbimport de mi base.
>
> El error que despliega es que las columnas del archivo , no son iguales a
> las
> columnas de la tabla, este error me da en la gran mayoria de las tablas de
> mi
> base de datos. Lo he revisado una y otra vez pero no encuentro la
> diferencia.
> A continuacion les copio el error que sale y el esquema de una de las
> tablas
> que me indica el error:
>
> { TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size =
> 13 }
> { unload file name = cb00000100.unl number of rows = 24 }
>
> create table "prueba".cb0001
> (
>
> empresa char(2) not null ,
>
> banco char(3) not null ,
>
> n_banco char(30) not null ,
>
> ciudad char(4) not null ,
>
> direccion char(60) not null ,
>
> telefono char(6)
> ) extent size 16 next size 16 lock mode page;
> Load file has different number of columns than table
>
> Do you want to abort?
>
> 01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> 01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
> 01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
> 02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> 02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
> 02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
> 02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
> 02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
> 02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
> 02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
> 02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
> 02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> 02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> 02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
> 02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> 01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> 01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> 01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> 01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
> 01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
> 01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
> 01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
> 01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
> 01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
> ~
> ~
> "cb00000100.unl" [dos] 24L, 1531C written
>
> Como nota puedo indicar que cuando saque el dbexport de mi base lo hice en
> una
> version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
>
> En espera de sus comentarios,
>
> Saludos,
>
> David
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--94eb2c0c27f4763c80053c184614
*******************************************************************************
Forum Note: Use "Reply" to post a response in the discussion forum.
Source and destination platforms are the same? Any of them is Windows?
On Fri, Sep 9, 2016 at 9:47 PM, David Vallejo <vallejod@hotmail.com> wrote:
> Hello
> I have a test machine in V7.3 is why I need to get on that version .
>
> Try to change the delimiters by ";" but it was not the solution
>
> Thanks!
>
> ________________________________
> De: ids-bounces@iiug.org <ids-bounces@iiug.org> en nombre de Art Kagel
> <art.kagel@gmail.com>
> Enviado: viernes, 09 de septiembre de 2016 19:37
> Para: ids@iiug.org
> Asunto: Re: Error al realizar un DBIMPORT [37787]
>
> David:
>
> Wow, you REALLY need to upgrade! You are exporting from v9 to v7.3 both out
> of support.
>
> That aside, the problem is most likely that some of the rows in some unload
> files contain embedded delimiter characters (|) or embedded new line
> characters so that those rows. You may have to manually edit the files and
> fix those rows by quoting the embedded delimiters and/or new lines with
> backslash (\\\\) characters.
>
> Art
>
> Art S. Kagel, President and Principal Consultant
> ASK Database Management
> www.askdbmgt.com<http://www.askdbmgt.com>
> ASK Database Management - Home<http://www.askdbmgt.com/>
> www.askdbmgt.com
> This is the site for Art S. Kagel's consultancy. The soaring majesty and
> beauty in the image above hides the complex ecology and detail of its
> existence.
>
> Blog: http://informix-myview.blogspot.com/
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions
> and do not reflect on the IIUG, nor any other organization with which I am
> associated either explicitly, implicitly, or by inference. Neither do
> those opinions reflect those of other individuals affiliated with any
> entity with which I am affiliated nor those of the entities themselves.
>
> 2016-09-09 15:24 GMT-04:00 DAVID VALLEJO <vallejod@hotmail.com>:
>
> > Buenas Tardes..!!
> >
> > Con un atento saludos a todos, pido su ayuda con un error que tengo al
> > hacer
> > un dbimport de mi base.
> >
> > El error que despliega es que las columnas del archivo , no son iguales a
> > las
> > columnas de la tabla, este error me da en la gran mayoria de las tablas
> de
> > mi
> > base de datos. Lo he revisado una y otra vez pero no encuentro la
> > diferencia.
> > A continuacion les copio el error que sale y el esquema de una de las
> > tablas
> > que me indica el error:
> >
> > { TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size =
> > 13 }
> > { unload file name = cb00000100.unl number of rows = 24 }
> >
> > create table "prueba".cb0001
> > (
> >
> > empresa char(2) not null ,
> >
> > banco char(3) not null ,
> >
> > n_banco char(30) not null ,
> >
> > ciudad char(4) not null ,
> >
> > direccion char(60) not null ,
> >
> > telefono char(6)
> > ) extent size 16 next size 16 lock mode page;
> > Load file has different number of columns than table
> >
> > Do you want to abort?
> >
> > 01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> > 01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
> > 01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
> > 02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> > 02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
> > 02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
> > 02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
> > 02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
> > 02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
> > 02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
> > 02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
> > 02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> > 02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> > 02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
> > 02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> > 01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> > 01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> > 01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> > 01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
> > 01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
> > 01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
> > 01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
> > 01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
> > 01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
> > ~
> > ~
> > "cb00000100.unl" [dos] 24L, 1531C written
> >
> > Como nota puedo indicar que cuando saque el dbexport de mi base lo hice
> en
> > una
> > version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
> >
> > En espera de sus comentarios,
> >
> > Saludos,
> >
> > David
> >
> >
> > ************************************************************
> > *******************
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
>
> --94eb2c0c27f4763c80053c184614
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--
Fernando Nunes
Portugal
http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
--001a1134f01e7966d0053c187433
The file looks okay, so I would guess that you have some hidden characters
in the files...most likely at the END of each line. If you moved the file
from one server to another, you may have introduced some carriage return
characters. Assuming that you're on UNIX, if you "vi" the file
cb00000100.unl you may see ^M at the end of each line, or run "od -c
cb00000100.unl" you may see combinations of \\\\r and \\
. If so, then you'll
need to copy the file again as a non-dos file or strip out the return
characters.
Mike
-----Original Message-----
From: ids-bounces@iiug.org [mailto:ids-bounces@iiug.org] On Behalf Of DAVID
VALLEJO
Sent: Friday, September 09, 2016 1:24 PM
To: ids@iiug.org
Subject: Error al realizar un DBIMPORT [37786]
Buenas Tardes..!!
Con un atento saludos a todos, pido su ayuda con un error que tengo al hacer
un dbimport de mi base.
El error que despliega es que las columnas del archivo , no son iguales a
las columnas de la tabla, este error me da en la gran mayoria de las tablas
de mi base de datos. Lo he revisado una y otra vez pero no encuentro la
diferencia.
A continuacion les copio el error que sale y el esquema de una de las tablas
que me indica el error:
{ TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size = 13
} { unload file name = cb00000100.unl number of rows = 24 }
create table "prueba".cb0001
(
empresa char(2) not null ,
banco char(3) not null ,
n_banco char(30) not null ,
ciudad char(4) not null ,
direccion char(60) not null ,
telefono char(6)
) extent size 16 next size 16 lock mode page; Load file has different number
of columns than table
Do you want to abort?
01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
~
~
"cb00000100.unl" [dos] 24L, 1531C written
Como nota puedo indicar que cuando saque el dbexport de mi base lo hice en
una version de Informix de 9.0 y lo estoy subiendo en una version de IDS
7.3.
En espera de sus comentarios,
Saludos,
David
****************************************************************************
***
Forum Note: Use "Reply" to post a response in the discussion forum.
Hola David,
No te carga ning=FAn registro el dbimport ? Tendr=E1s ^M al final de cada
l=EDnea?
Si te carga, fijate cuantos registros tiene la tabla, edita el archivo anda
a la l=EDnea siguiente y mira si tiene alg=FAn caracter que este mal.
Saludos, Viviana
De: "DAVID VALLEJO" <vallejod@hotmail.com>
Para: ids@iiug.org
Fecha: 09/09/2016 04:23 p.m.
Asunto: Error al realizar un DBIMPORT [37786]
Enviado por: ids-bounces@iiug.org
Buenas Tardes..!!
Con un atento saludos a todos, pido su ayuda con un error que tengo al
hacer
un dbimport de mi base.
El error que despliega es que las columnas del archivo , no son iguales a
las
columnas de la tabla, este error me da en la gran mayoria de las tablas de
mi
base de datos. Lo he revisado una y otra vez pero no encuentro la
diferencia.
A continuacion les copio el error que sale y el esquema de una de las
tablas
que me indica el error:
{ TABLE "prueba".cb0001 row size =3D 105 number of columns =3D 6 index size=
=3D
13 }
{ unload file name =3D cb00000100.unl number of rows =3D 24 }
create table "prueba".cb0001
(
empresa char(2) not null ,
banco char(3) not null ,
n=5Fbanco char(30) not null ,
ciudad char(4) not null ,
direccion char(60) not null ,
telefono char(6)
) extent size 16 next size 16 lock mode page;
Load file has different number of columns than table
Do you want to abort?
01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
~
~
"cb00000100.unl" [dos] 24L, 1531C written
Como nota puedo indicar que cuando saque el dbexport de mi base lo hice en
una
version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
En espera de sus comentarios,
Saludos,
David
***************************************************************************=
****
Forum Note: Use "Reply" to post a response in the discussion forum.
Este mensaje y sus anexos contienen informaci=F3n confidencial necesaria pa=
ra el uso exclusivo del destinatario. Si usted no es el destinatario, debe =
interrumpir inmediatamente la lectura de este mensaje y borrarlo de su sist=
ema. Cualquier lectura, distribuci=F3n, copia, o cualquier otro uso no auto=
rizado de este mensaje o sus anexos est=E1n estrictamente prohibidos. This =
message and any attachments contain confidential information intended solel=
y for the use of the addressee. If you are not the intended recipient, you =
should immediately stop reading this message and delete it from your system=
. Any unauthorized reading, distribution, copying, or other use of this mes=
sage or its attachments is strictly prohibited.
Did you check for embedded newlines?
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com
Blog: http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on the IIUG, nor any other organization with which I am
associated either explicitly, implicitly, or by inference. Neither do
those opinions reflect those of other individuals affiliated with any
entity with which I am affiliated nor those of the entities themselves.
On Fri, Sep 9, 2016 at 3:47 PM, David Vallejo <vallejod@hotmail.com> wrote:
> Hello
> I have a test machine in V7.3 is why I need to get on that version .
>
> Try to change the delimiters by ";" but it was not the solution
>
> Thanks!
>
> ________________________________
> De: ids-bounces@iiug.org <ids-bounces@iiug.org> en nombre de Art Kagel
> <art.kagel@gmail.com>
> Enviado: viernes, 09 de septiembre de 2016 19:37
> Para: ids@iiug.org
> Asunto: Re: Error al realizar un DBIMPORT [37787]
>
> David:
>
> Wow, you REALLY need to upgrade! You are exporting from v9 to v7.3 both out
> of support.
>
> That aside, the problem is most likely that some of the rows in some unload
> files contain embedded delimiter characters (|) or embedded new line
> characters so that those rows. You may have to manually edit the files and
> fix those rows by quoting the embedded delimiters and/or new lines with
> backslash (\\\\) characters.
>
> Art
>
> Art S. Kagel, President and Principal Consultant
> ASK Database Management
> www.askdbmgt.com<http://www.askdbmgt.com>
> ASK Database Management - Home<http://www.askdbmgt.com/>
> www.askdbmgt.com
> This is the site for Art S. Kagel's consultancy. The soaring majesty and
> beauty in the image above hides the complex ecology and detail of its
> existence.
>
> Blog: http://informix-myview.blogspot.com/
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions
> and do not reflect on the IIUG, nor any other organization with which I am
> associated either explicitly, implicitly, or by inference. Neither do
> those opinions reflect those of other individuals affiliated with any
> entity with which I am affiliated nor those of the entities themselves.
>
> 2016-09-09 15:24 GMT-04:00 DAVID VALLEJO <vallejod@hotmail.com>:
>
> > Buenas Tardes..!!
> >
> > Con un atento saludos a todos, pido su ayuda con un error que tengo al
> > hacer
> > un dbimport de mi base.
> >
> > El error que despliega es que las columnas del archivo , no son iguales a
> > las
> > columnas de la tabla, este error me da en la gran mayoria de las tablas
> de
> > mi
> > base de datos. Lo he revisado una y otra vez pero no encuentro la
> > diferencia.
> > A continuacion les copio el error que sale y el esquema de una de las
> > tablas
> > que me indica el error:
> >
> > { TABLE "prueba".cb0001 row size = 105 number of columns = 6 index size =
> > 13 }
> > { unload file name = cb00000100.unl number of rows = 24 }
> >
> > create table "prueba".cb0001
> > (
> >
> > empresa char(2) not null ,
> >
> > banco char(3) not null ,
> >
> > n_banco char(30) not null ,
> >
> > ciudad char(4) not null ,
> >
> > direccion char(60) not null ,
> >
> > telefono char(6)
> > ) extent size 16 next size 16 lock mode page;
> > Load file has different number of columns than table
> >
> > Do you want to abort?
> >
> > 01|BPO|BANCO DEL AAAAAAa|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> > 01|BDG|BANCO DE BBBBBBB|QUIT|AV.COLON Y REINA VICTORIA|566804|
> > 01|BPR|BANCO WWWWW|QUIT|AV.GONZALEZ SUAREZ|567388|
> > 02|BP0|BANCO RRRRRRRR PACIFICO|QUIT|NACIONES UNIDAS 680 Y SHYRIS|462922|
> > 02|BDG|BANCO RRRRTTTTTT|QUIT|AV.COLON Y REINA VICTORIA|566804|
> > 02|BP1|BANCO TTTTTTTTT|QUIT|AV. AMAZONAS Y NACIONES UNIDAS|461300|
> > 02|BAZ|BANCO YYYYYYYYY|QUIT|AV. AMAZONAS Y LA SANTA MARIA|250400|
> > 02|BAM|BANCO SSSSSSSSS S.A.|QUIT|AV.AMAZONAS 4430 Y VILLALENGUA|250400|
> > 02|BPR|BANCO SSSSSSSSS|QUIT|AV.GONZALEZ SUAREZ|567388|
> > 02|BOL|BANCO SSSSSSSSS C.A.|QUIT|AV. AMAZONAS Y PATRIA|550515|
> > 02|BGY|BANCO DE SSSSSSSSS|QUIT|AV. COLON Y REINA VICTORIA|566800|
> > 02|BPI|BANCO DEL SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> > 02|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> > 02|BPO|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3535 Y ATAHUALPA|444700|
> > 02|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> > 01|BPI|BANCO SSSSSSSSS SSSSSSSSS|QUIT|AV. AMAZONAS 4560|980980|
> > 01|BFI|BANCO SSSSSSSSS|QUIT|AMAZONAS Y FRAY JOAQUIN AUZ|444951|
> > 01|BDU|BANCO SSSSSSSSS|QUIT|AV. AMAZONAS 3775 Y JAPON|250150|
> > 01|BLB|LLOYDS BANK|QUIT|AV.AMAZONAS 580|564633|
> > 01|BBB|BANCO DEL SSSSSSSSS|QUIT|10 DE AGOSOT 2145 Y PATRIA|241851|
> > 01|ABN|ABN AMRO BANK|QUIT|AV.AMAZONAS 4272 Y VILLALENGUA|266666|
> > 01|AMR|ABN AMRO BANK (USD)|QUIT|AV.AMAZONAS 38-70 Y VILLALENGUA|508227|
> > 01|BIN|BANCO SSSSSSSSS(NACIONAL)|QUIT|AV.PATRIA|503414|
> > 01|BII|BANCO SSSSSSSSS(INTERN)|QUIT|AMAZONAS|503414|
> > ~
> > ~
> > "cb00000100.unl" [dos] 24L, 1531C written
> >
> > Como nota puedo indicar que cuando saque el dbexport de mi base lo hice
> en
> > una
> > version de Informix de 9.0 y lo estoy subiendo en una version de IDS 7.3.
> >
> > En espera de sus comentarios,
> >
> > Saludos,
> >
> > David
> >
> >
> > ************************************************************
> > *******************
> > Forum Note: Use "Reply" to post a response in the discussion forum.
> >
> >
>
> --94eb2c0c27f4763c80053c184614
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
> ************************************************************
> *******************
> Forum Note: Use "Reply" to post a response in the discussion forum.
>
>
--001a11469644c999e7053c190308
No me carga registros mas que unos pocos de unas pocas tablas
Gracias a todos por la ayuda..!! Para personas que le haya sucedido este caso, la solucion es cambiar de tipo de archivo, ya que cuando Yo lo subi a una maquina con Windows, subio a DOS, y al copiarlo nuevamente a linux lo subi de igual manera como archivo DOS. Lo unico que tube que hacer es cambiar el tipo de archivo a UNIX con el comando dosunix mas el nombre del archivo. Saludos, David
Perdon, el comando es dos2unix myfile.unl Saludos, David