Invalid NLS Format

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
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Invalid NLS Format

Post by nkln@you »

I am using ORAOCI 7 stage to read from Oracle 7 table. When i try to import meta data of table, it says Invalid or Unknown NLS Parameter value specified.

How can i correct this error.
Aim high
mfranke
Participant
Posts: 50
Joined: Wed Nov 30, 2005 1:40 am
Contact:

Re: Invalid NLS Format

Post by mfranke »

When you import a definition and the plug-in selection menu appears you should be able to choose a nls format, maybe you already thought of that, but have you tried to choose another nls format?

mario
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

Yeah i tried to change the NLS format, but i don't know exactly which one to select.; The default one was ISO 8859-1.
Aim high
mfranke
Participant
Posts: 50
Joined: Wed Nov 30, 2005 1:40 am
Contact:

Re: Invalid NLS Format

Post by mfranke »

it depents on your database, if it is unicode utf-8 or utf-16 is better. i'm using oci9 and also iso8859-1 and i have a database in utf-8, but this is no problem, maybe oci7 likes more precision in the chioce of the nls.
determine what your source database is like
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

When i queried source database as

SELECT * FROM NLS_DATABASE_PARAMETERS

the value for NLS_CHARACTERSET IS WE8IS08859P1, but this character set is not displayed in Datastage.

Should i look for any other variable in database to retriev the NLS format.
If so can you tell me which one to look
Aim high
mfranke
Participant
Posts: 50
Joined: Wed Nov 30, 2005 1:40 am
Contact:

Post by mfranke »

I think you look at the right one, WE8-ISO8859-P1 means you should use ISO 8859-1 as nls, sorry to say so, but seems your problem lies somewhere else
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Look in the second log entry for the job run (where the environment variables' values are displayed). Check that NLS_LANG and LANG_C are both set.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

Hi Ray, the error is coming while importing table table definition itself, oracle database we are using is Oracle 7 and the plugin used is ORAOCI 7.

I checked the nls_database parameters, the character set is same as specified in datastage.

Still invalid NLS format is coming
Aim high
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

nkln@you wrote:the value for NLS_CHARACTERSET IS WE8IS08859P1, but this character set is not displayed in Datastage.
nkln@you also wrote:I checked the nls_database parameters, the character set is same as specified in datastage.
These seem to contradict each other. Please post your exact NLS_LANG setting from your dsenv file. I would guess it's not quite right. The issue here isn't whether it matches your database or not, that's irrelevant in this context... it's just invalid.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

Chulet,

Can you tell me in which directory can we find this dsenv file
Aim high
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Oh my. In your DSEngine directory, which should be pointed to by the $DSHOME environment variable.

Also, what version of 7.x is your installation? I don't recall there still being an OCI7 stage in that version. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

Chullet

The value is AMERICAN_AMERICA.WE8ISO8859P1.

The version which we are using is 7.0
Aim high
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok... that seems... fine. Are you setting any other 'NLS' parameters there? Is so, post them - both the variable names and the values you are setting them to, please.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

We are not setting any other environment variables there.

Also the stage ORAOCI7 is a plugin
Aim high
Post Reply