Oracle Connector and NLS?

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
jonathanhale
Premium Member
Premium Member
Posts: 33
Joined: Tue Nov 06, 2007 1:09 pm

Oracle Connector and NLS?

Post by jonathanhale »

Trying to execute the below SQL from an Oracle Connector stage fails with ORA-00942: table or view does not exist.

Yet, it works fine in view data?!?!

We strongly suspect NLS mismatch with runtime environment variables.

The Oracle 11g DB we're connecting to has NLS Settings, soL

LANGUAGE = ENGLISH
TERRITORY = UNITED KINGDOM
CHARACTER SET = AL32UTF8

Can anyone advise what the Paralell Map should be? Is there a need for a user defined env var of NLS_LANG? of what value?

Has anyone encountered similiar?

Many thanks for any suggestions


SELECT 'record' from dual
UNION ALL
SELECT ' {final_delim=end, record_delim_string=''\n'', delim='','', null_field='''', quote=double' ||
DECODE(CNT,0,'}', ', timestamp_format=''%dd/%mm/%yyyy %hh:%nn''}')
FROM (SELECT COUNT(*) CNT from all_tab_columns where table_name = 'ADDRESS' and data_type like 'TIMESTAMP%')
UNION ALL
SELECT '(' from dual
UNION ALL
select *
from (
select
' ' || column_name || ':' ||
DECODE (NULLABLE,'Y', 'nullable ') ||
DECODE(data_type, 'VARCHAR2', 'string[max=' || data_length || ']',
'NUMBER', 'decimal[' || data_precision || ',' || data_scale || ']',
'FLOAT', 'sfloat',
'TIMESTAMP(3)', 'timestamp', 'string'
) || ';' file_row
from all_tab_columns where table_name = 'ADDRESS' order by column_id
)
UNION ALL
select ')' from dual
Post Reply