Problem faced while using FastLoad
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


Problem faced while using FastLoad Expand / Collapse
Author
Message
Posted 7/26/2006 11:06:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/17/2007 4:54:00 AM
Posts: 7, Visits: 1
Hi All,

Here's a problem I am facing while using FastLoad.

I have exported five rows with just one field i.e. cust_id from the financial.customer table
using fastexport. I used the following script to generate the file "cust_id_list" in fastexport

--------------------------------------------------
.logtable financial.logtab121;

.logon ak/financial;

database financial;

.begin export;

.export outfile c:\tdat\cust_id_list;

select cust_id from financial.customer order by 1 where cust_id < 1362490;

.end export;

.logoff;
--------------------------------------------------

Then I created an empty table "financial.customer_new" from the "financial.customer" table

However, when I try to load the table "financial.customer_new" using the below script in FastLoad I get the below error.
Can anyone throw some light in this regard.

----------------------------------------------------------------------

0001 .logon DemoTDAT/financial

.begin loading financial.customer_new ErrorFiles financial.Error_11, financial.E
rror_12;

define in_cust_id (integer)
file = C:\tdat\cust_id_list;

insert into financial.customer_new values (:in_cust_id);




Error message:

**** 20:16:51 Number of recs/msg: 7140
**** 20:16:51 Starting to send to RDBMS with record 1
**** 20:16:51 RECORD is too long by 1 byte(s)
Field 1: 348796160

----------------------------------------------------------------------


Regards,
Manik
Post #4737
Posted 7/26/2006 2:11:44 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: PAC and SFT Members
Last Login: Yesterday @ 4:20:22 PM
Posts: 327, Visits: 504
Default for FastExport is MODE INDICATOR (null flag bits at the start of each record) but default for FastLoad is no INDICATORS.

Either change the FastLoad
.begin loading financial.customer_new ErrorFiles financial.Error_11, financial.Error_12 INDICATORS;

or change the FastExport
.export outfile c:\tdat\cust_id_list MODE RECORD;
Post #4738
Posted 7/27/2006 3:11:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/17/2007 4:54:00 AM
Posts: 7, Visits: 1
Hi Fred,

Yes your are right.
The moment I used the Indicator option in FastLoad, it worked.
Thanks for the quick help.

Regards,
Manik
Post #4743
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:14am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Disabled.