Decimal problem with OCI

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
CLOPES
Participant
Posts: 52
Joined: Tue Jul 22, 2003 8:05 am
Location: France
Contact:

Decimal problem with OCI

Post by CLOPES »

Hi all,

Got some problems with OCI decimals.
My job is OCI => dataset
My select is basic and do not have any conditions and i just take three key columns not nullable.
I import metadata and let DS choose columns type.
First is decimal 6, second is varchar and last one decimal 11.
In the DB source, i have 3273 in the 3rd column and in output, i found 32731.
I don't have any warnings neither aborts.
If i do a to_char in the select it runs ok.

Don't understand.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Importing table definitions through OCI is known to be inaccurate for decimal data type. Even IBM recommends that you import Oracle table definitions using Orchestrate (the orchdbutil utility).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Decimal problem with OCI

Post by sachin1 »

please could you provide more values where you are facing problem, just to analyze the data, may be something related to trunc or rounding of values, or may be something as suggested by ray.
Post Reply