Inserting UTF-8 characters into Oracle
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
Nah Eric. The space is not the problem here. In fact there isn't even a space. the I am overriding the NLS parameter set at the project level using the local parameter $NLS_LANG in my job.
What I feel is I need to find a character set which is American but which also accepts UTF-8 characters like the accentuated 'e' and 'o'.
What I feel is I need to find a character set which is American but which also accepts UTF-8 characters like the accentuated 'e' and 'o'.
Tony
BI Consultant - Datastage
BI Consultant - Datastage
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
Re: Inserting UTF-8 characters into Oracle
Yes tried that. I use the query:thupallireddy wrote:SELECT * FROM V$NLS_PARAMETERS;
NLS_LANG = [NLS_LANGUAGE]_[NLS_TERRITORY].[NLS_CHARACTERSET]
SELECT * from NLS_DATABASE_PARAMETERS WHERE parameter IN ( 'NLS_LANGUAGE', 'NLS_TERRITORY', 'NLS_CHARACTERSET');
I get:
Code: Select all
PARAMETER VALUE
------------------------------ ----------------------------------------
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CHARACTERSET AL32UTF8
So now in datastage (DSAdmin) I define my LANG and NLS_LANG as AMERICAN.AMERICA.AL32UTF8
The Oracle jobs abort with Error message ORA-12705: Cannot access NLS data files or invalid environment specified
Tony
BI Consultant - Datastage
BI Consultant - Datastage
-
- Participant
- Posts: 16
- Joined: Wed Apr 30, 2014 1:27 am
- Location: Benagaluru
Re: Inserting UTF-8 characters into Oracle
Tony,
I have also faced the same issue for trademark symbols as ? instead of TM. After entry in dsenv file, everything is working fine for me. I remember as i read in some forum recently as first we need to modify in server level(dsenv) to make into effect. May be Im wrong
But it worked for me with out any issue.
I have also faced the same issue for trademark symbols as ? instead of TM. After entry in dsenv file, everything is working fine for me. I remember as i read in some forum recently as first we need to modify in server level(dsenv) to make into effect. May be Im wrong
![Surprised :o](./images/smilies/icon_surprised.gif)
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
Re: Inserting UTF-8 characters into Oracle
Probably that will work... but the issue is DSENV is for ALL projects on a particular server and I cannot modify DSENV since its only one project which is accessing an Oracle database whereas all others on that server needs UTF8.
Tony
BI Consultant - Datastage
BI Consultant - Datastage
-
- Participant
- Posts: 16
- Joined: Wed Apr 30, 2014 1:27 am
- Location: Benagaluru
Re: Inserting UTF-8 characters into Oracle
Try without modifying in admin, just pass a parameter in job as
NLS_LANG=AMERICAN_AMERICA.AL32UTF8
Even in jobproperties, NLS ---> projectdefault(UTF8) and default(off).
Im new to this forum not able to paste screenshot of the same what i have used.
![Smile :)](./images/smilies/icon_smile.gif)
NLS_LANG=AMERICAN_AMERICA.AL32UTF8
Even in jobproperties, NLS ---> projectdefault(UTF8) and default(off).
Im new to this forum not able to paste screenshot of the same what i have used.
![Smile :)](./images/smilies/icon_smile.gif)
-
- Premium Member
- Posts: 288
- Joined: Tue May 27, 2008 3:42 am
- Location: Luxembourg
Re: Inserting UTF-8 characters into Oracle
I don't think screenshots are possible on this forum...so you aren't missing anything...![Smile :-)](./images/smilies/icon_smile.gif)
As for your solution I've already tried it. I mean in order to override NLS_LANG at the job level, it has to be defined at the project level as a user defined parameter right? So that's what I've done. At the job level even on defining it as AMERICAN_AMERICA.AL32UTF8 it doesn't work.
![Smile :-)](./images/smilies/icon_smile.gif)
As for your solution I've already tried it. I mean in order to override NLS_LANG at the job level, it has to be defined at the project level as a user defined parameter right? So that's what I've done. At the job level even on defining it as AMERICAN_AMERICA.AL32UTF8 it doesn't work.
Tony
BI Consultant - Datastage
BI Consultant - Datastage
Re: Inserting UTF-8 characters into Oracle
They are.TonyInFrance wrote:I don't think screenshots are possible on this forum...so you aren't missing anything...
As in most forums, they are just [img] (Image) tags pointing to a file at a hosting site.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers