error on Oracle connector stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

error on Oracle connector stage

Post by ravipuli »

Hi,

I have a problem with Oracle connector stage in job when it is reading the data from table. It is given below error please help me to resolve the error.


The OCI function OCIStmtFetch returned status -1. Error code: 1,406, Error message: ORA-01406: fetched column value was truncated. (CC_OraConnection::logOracleNlsSessionParameters, file CC_OraConnection.cpp, line 3,579)
ravikumar
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

It would seem that your job definition for one of the columns isn't big enough to fit the actual data. Compare your metadata in the actual table with what you have in the job.

When I see "nls" in the error message I wonder if you might have declared the table with "bytes" rather than "characters" in Oracle. That can cause this type of an error with multibyte characters.
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

thanks for reply me and can u tell error abut" nls"
ravikumar
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I did explain, but perhaps that part of the message was in the premium content portion. When using NLS there is a difference between string size when the table is defined as character rather than byte sized.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

How many characters have you defined in the string and how many are in the string causing the error message?
nani0907
Participant
Posts: 155
Joined: Wed Apr 18, 2007 10:30 am

Post by nani0907 »

How was the metadata imported
thanks n regards
nani
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

Stil iam facing same problem. I did what ever you have mentioned.
pls give me reply.
ravikumar
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Help us to help you. Answer our questions.

Otherwise we can only guess, and the answer is likely to be 42.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

ok, actualy this error is not showing in perticuler field.I haved cheked data is not lager than datatype
ravikumar
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

one field having datatype in oracle 2 but data is 88 can it fit ?
ravikumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

2 what? 88 what? :?

You need to be more precise in your questions and replies so people can help you. Does your source table have an unbound number in it? Meaning one like NUMBER rather than NUMBER(15) or any other precision. Does it have a LOB column, like a CLOB or BLOB? Is your database set up with a multibyte characterset? As Arnd notes, the default is typically "byte semantics" in Oracle and thus a VARCHAR2(5) field holds five bytes rather than five characters. These can all cause that error.

If you are unsure about any of the answers, check with your DBA.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

ok,Thank you very much for yours concerns. Iwill check with my DBA
ravikumar
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

Yes Creig one field having NUMBER rather than NUMBER(15) in my database
ravikumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How did you define the column in DataStage?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ravipuli
Participant
Posts: 22
Joined: Thu Jul 12, 2012 8:12 am

Post by ravipuli »

Decimal (10) but ,Ihave given this somany days ago at that time thre is no errors are there yesturday onwonds only error is giving.
ravikumar
Post Reply