Import Oracle Table - Lengths multiplied by 3

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
clarcombe
Premium Member
Premium Member
Posts: 515
Joined: Wed Jun 08, 2005 9:54 am
Location: Europe

Import Oracle Table - Lengths multiplied by 3

Post by clarcombe »

I have imported several tables from Oracle (Siebel). When I check the lengths of the fields, they have been multiplied by 3

However, from an Oracle non Siebel schema, I don't get these issues.

I was wondering what I need to look at in order to find out how to avoid this.
Colin Larcombe
-------------------

Certified IBM Infosphere Datastage Developer
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How did you import the metadata, using which tool/option? Do you have NLS enabled? I've seen this before and I'm sure it has been posted here as well but I don't recall off the top of my head why that happens but I'm sure it's NLS related.

These 'certain Oracle instances' - how does their NLS_LANG setting compare to the others where this doesn't happen?
-craig

"You can never have too many knives" -- Logan Nine Fingers
clarcombe
Premium Member
Premium Member
Posts: 515
Joined: Wed Jun 08, 2005 9:54 am
Location: Europe

Post by clarcombe »

I imported this via the Import Plug-in Meta Data ORAOCI9. We don't have NLS enabled.

As for the NLS_LANG, can different databases have different NLS_LANG values specified ? I thought it was done at a machine level.
Colin Larcombe
-------------------

Certified IBM Infosphere Datastage Developer
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

clarcombe wrote:As for the NLS_LANG, can different databases have different NLS_LANG values specified ?
Instance level.
-craig

"You can never have too many knives" -- Logan Nine Fingers
clarcombe
Premium Member
Premium Member
Posts: 515
Joined: Wed Jun 08, 2005 9:54 am
Location: Europe

Post by clarcombe »

I checked with the DBA. For the Siebel databases, they are configured in Unicode whereas the other non-Siebel aren't.

From memory, altering the NLS_LANG wouldn't actually have any effect on the database.

I'll do a search and see if there are Oracle/Unicode workarounds (unless you have any other ideas ?)
Colin Larcombe
-------------------

Certified IBM Infosphere Datastage Developer
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm not sure if there is anything you can do about it other than manually edit it afterwords. You may find that you need to leave it that way when dealing with multi-byte charactersets, however. If your instances use "byte semantics" then this may be a needed workaround. Specifically, when you have a VARCHAR2(10) field, is it sized for 10 characters or 10 bytes? Byte semantics seem to be the default in the single-byte characterset world for some reason.
-craig

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