Reading junk characters from Oracle 11g

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

Post Reply
sgubba
Participant
Posts: 30
Joined: Wed Apr 16, 2008 11:06 am

Reading junk characters from Oracle 11g

Post by sgubba »

Hi,

i have a problem reading data from oracle table which is 11g. I am able to load the table with out any problem using ODBC stage. I use ASCL_ISO8859-1 character set when i am loading and have no issues . But when i am using the same character set i read them as junk characters.
This is the character set of my target database

NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.1.0.7.0


Your help is highly appreciated

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

And what are your DataStage NLS settings?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In addition to what Ray has said, how are you determining that the characters read in a "junk" (hint: don't use "View Data" to determine this)?
sgubba
Participant
Posts: 30
Joined: Wed Apr 16, 2008 11:06 am

Post by sgubba »

I tried using UTF-8 while loading and reading. The job i am trying to run has a change capture stage where one source is oracle and the other is ODBC. Its kinda reconciliation job,

Fisrt job is loading from oracle 10g(source) to 11g(Target) when i am loading into target i use ODBC.

In my reconcilation job i has this change capture stage where one source is oracle 10g and other is oracle 11g. I didnt had any problem loading the data into 11g(ODBC Stage) . When i am reading from ODBC I have issues...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Perhaps you could be a little more specific as to the "issues" you are seeing. Examples are good, too.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sgubba
Participant
Posts: 30
Joined: Wed Apr 16, 2008 11:06 am

Post by sgubba »

Issues in the sense. I know the data from source and target are the same but in my chance capture stage they are not matching ....and all the records are comming out as inserts.....I tried to view th data in ODBC stage and its throwing junk data
Post Reply