arabic data reading problem

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
waklook
Charter Member
Charter Member
Posts: 31
Joined: Sat Dec 10, 2005 4:13 am
Contact:

arabic data reading problem

Post by waklook »

Hi,
i am trying to read data from db2 v8 on AIX to oracle database using
db2 wire protocol, the tables contains Arabic data, the problem is the
Arabic data coming as ??????, the code page for the db2 is 1208.
i am using NLS =UTF8 in the ODBC stage.

any help is very appreciated.

(i searched the forum and i did not find anything helpful for me)

thanks in advance
srimitta
Premium Member
Premium Member
Posts: 187
Joined: Sun Apr 04, 2004 7:50 pm

Post by srimitta »

Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives.
By William A.Foster
sia_999
Premium Member
Premium Member
Posts: 18
Joined: Mon Feb 12, 2007 3:21 am
Location: Riyadh

Post by sia_999 »

Datastage will display always in ??? question marks, you load the data to the oracle database then use the sqlplus to see the data. or try to change in the registry setting NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256
ilyas
waklook
Charter Member
Charter Member
Posts: 31
Joined: Sat Dec 10, 2005 4:13 am
Contact:

Post by waklook »

thanks for all valuable input,
sorry for replaying late, bcz our weekend is Thursday and Friday,

sia_999, i am seeing this ???? and unreadable characters using TOAD and sqlplus, i know we cannot see it from inside datastage.
any other solutions/ideas?

i moved one step that i can see correct data when loading it to sequential file, my problem now is to insert it correctly in the oracle target DB, i test all available NLS, but i get same result.
thanks for your replaying time.
sia_999
Premium Member
Premium Member
Posts: 18
Joined: Mon Feb 12, 2007 3:21 am
Location: Riyadh

Post by sia_999 »

waklook wrote:thanks for all valuable input,
sorry for replaying late, bcz our weekend is Thursday and Friday,

sia_999, i am seeing this ???? and unreadable characters using TOAD and sqlplus, i know we cannot see it from inside datastage.
any other solutions/ideas?

i moved one step that i can see correct data when loading it to sequential file, my problem now is to insert it correctly in the oracle target DB, i test all available NLS, but i get same result.
thanks for your replaying time.
you need to do two things

first make sure that inserting some test data from toad and select the information, if it display correctly then the second step is to findout what is the code page of oracle is set, by issueing this command.
SELECT * FROM sys.V_$NLS_PARAMETERS WHERE PARAMETER = 'NLS_CHARACTERSET';
after that source should be utf8 and the destination should be the oracle nls_characterset, I hope this will resolve your problem.
ilyas
waklook
Charter Member
Charter Member
Posts: 31
Joined: Sat Dec 10, 2005 4:13 am
Contact:

Post by waklook »

Thanks again sia_999;

i did insert one row and it's fine.
the query output was 'AR8ISO8859P6',
i used 'IS08859-6' for the target and 'UTF8' for the source and no succeed.
sia_999
Premium Member
Premium Member
Posts: 18
Joined: Mon Feb 12, 2007 3:21 am
Location: Riyadh

Post by sia_999 »

waklook wrote:Thanks again sia_999;

i did insert one row and it's fine.
the query output was 'AR8ISO8859P6',
i used 'IS08859-6' for the target and 'UTF8' for the source and no succeed.
you can try one more thing add the two lines to the dsenv file as

NLS_LANG="AMERICAN_AMERICA.AR8ISO8859P6"
NLS_LANGUAGE="AMERICAN_AMERICA.AR8ISO8859P6"

then restart the etl service.
ilyas
waklook
Charter Member
Charter Member
Posts: 31
Joined: Sat Dec 10, 2005 4:13 am
Contact:

Post by waklook »

our datastage engine installed on windows server,i am not finding the dsenv file, where can i find it on windows?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is no dsenv file on Windows-based DataStage servers. You can set up environment variables using Control Panel > System > Environment.
(Depending on which version of Windows, Environment may be a command button on one of the tabs in the System dialog.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
waklook
Charter Member
Charter Member
Posts: 31
Joined: Sat Dec 10, 2005 4:13 am
Contact:

Post by waklook »

thanks to Srimitta, Sia_999, Ray and for all,

i have solved the problem by using 'UTF8' - source and 'MS1256' - target.

i will mark this issue as closed
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Which means you should scroll up to your first post and mark the topic as 'Resolved'. :wink:
-craig

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