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 > loading data in Informix XPS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-03, 12:00
jurie jurie is offline
Registered User
 
Join Date: Sep 2003
Location: UK
Posts: 3
loading data in Informix XPS

Hi,

I am testing a load process in Informix XPS 8.40 which can load my data much faster into a production table.
I execute the following statements which works fine until the last
alter fragment.
Any ideas ??
thanks
Jurie


alter fragment on table twdp0d
detach p0d12dbs p0d_fragment;

alter table p0d_fragment type (raw);

drop table twdp0d_ext;
create external table twdp0d_ext
sameas twdp0d
using ( FORMAT 'DELIMITED',
DATAFILES
("DISK:4:/dump/twdp0d.20031103"),
REJECTFILE "/dump/twdp0d_ext1.rej.%c",
EXPRESS
);

INSERT INTO p0d_fragment SELECT * FROM twdp0d_ext;

alter table p0d_fragment type (operational);

alter fragment on table twdp0d
attach p0d_fragment
as
((proc_dt <= DATE ('30.11.2003' )) AND (proc_dt >= DATE ('01.11.2003' ))) ;

783: Cannot attach because of incompatible schema.
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 07:50
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: loading data in Informix XPS

Quote:
Originally posted by jurie
Hi,

I am testing a load process in Informix XPS 8.40 which can load my data much faster into a production table.
I execute the following statements which works fine until the last
alter fragment.
Any ideas ??
thanks
Jurie


alter fragment on table twdp0d
detach p0d12dbs p0d_fragment;

alter table p0d_fragment type (raw);

drop table twdp0d_ext;
create external table twdp0d_ext
sameas twdp0d
using ( FORMAT 'DELIMITED',
DATAFILES
("DISK:4:/dump/twdp0d.20031103"),
REJECTFILE "/dump/twdp0d_ext1.rej.%c",
EXPRESS
);

INSERT INTO p0d_fragment SELECT * FROM twdp0d_ext;

alter table p0d_fragment type (operational);

alter fragment on table twdp0d
attach p0d_fragment
as
((proc_dt <= DATE ('30.11.2003' )) AND (proc_dt >= DATE ('01.11.2003' ))) ;

783: Cannot attach because of incompatible schema.
Hi,

I think that the sentence "create external table" have default, that the other table not. Or the primary table have constraint that the external not.
Proved You with HPL of Informix ?.

Gustavo.
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