Loading data with special characters from Oracle Bulk Loader

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chanaka
Premium Member
Premium Member
Posts: 96
Joined: Tue Sep 15, 2009 4:06 am
Location: United States

Loading data with special characters from Oracle Bulk Loader

Post by chanaka »

Hi Friends,

We are trying to load some large tables for Sybase IQ to Oracle via Oracle OCI Bulk stage. Some of the columns contain the characters | & " and that is causing the bulk loader to return errors given below.

1. Record 14294: Rejected - Error on table DW.D_VENDOR, column ENABLED_FLAG.
ORA-01722: invalid number
2. Record 11048: Rejected - Error on table DW.D_VENDOR, column VENDOR_NAME.
no terminator found after TERMINATED and ENCLOSED field

Any thoughts or suggestions to overcome this?

Cheers!
Chanaka Wagoda
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Since numeric columns cannot contain those special characters, ensure that they aren't put in there - several DataStage methods exist including string replacement and numeric conversion functions. For error number (2) please post line 11048 to see exactly what error is in the data.
dr.murthy
Participant
Posts: 224
Joined: Sun Dec 07, 2008 8:47 am
Location: delhi

Post by dr.murthy »

Set the NLS_LANG parameter and specify the proper character set as AMERICAN_AMERICA.AL32UTF8
D.N .MURTHY
chanaka
Premium Member
Premium Member
Posts: 96
Joined: Tue Sep 15, 2009 4:06 am
Location: United States

Post by chanaka »

For the error number two it contains the | symbol in the data itself. And the field delimiter used by the bulk loader dat file is also the same.
Chanaka Wagoda
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I think sqlldr will use normal escaping methods, so try replacing all "|" in your data with "\|" to get rod of error #2
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Pretty normal stuff, make sure your numbers are numbers and your delimiter doesn't occur in your data regardless of what it is.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply