Last digit gets truncated while loading into Oracle ODBC Stg

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
poorna_76
Charter Member
Charter Member
Posts: 190
Joined: Thu Jul 08, 2004 10:42 am

Last digit gets truncated while loading into Oracle ODBC Stg

Post by poorna_76 »

Hi,

Our current data warehouse Datastage applications are using MS SQL Server 2000 as backend database and we are in the process of migrating
to Oracle 10g. We found an issue while System Testing.

We have jobs that are reading from Complex flat file and loading it into ORACLE ODBC stage.

For a particular AMOUNT field (SQL Type DECIMAL , Length 11, Scale 2
and Display 13) source data value is 123456789.12 and while loading data
into Oracle Database using ODBC stage the last digit is getting truncated
and data is getting inserted with value 123456789.1

When we replace Target ODBC stage with DRDBMS stages (DBMS Type
ORACLE/ODBC) or Oracle OCI stage, it inserts 123456789.12 properly.

Are there any datastage functions or options available to avoid this data
truncation in Target ODBC stage?

For us to replace Target ODBC with Oracle OCI is like redoing all of our
jobs since we found this issue while System testing.

Thanks
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Post by DeepakCorning »

Did you try increasing the scale and test it?
parag_pk
Participant
Posts: 12
Joined: Fri Feb 18, 2005 1:41 pm

Post by parag_pk »

DeepakCorning wrote:Did you try increasing the scale and test it?
Yes, We increased width to 13,2 display 15. Data got inserted properly.

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

Post by ray.wurlod »

Could be time to mark thread as resolved, then.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
parag_pk
Participant
Posts: 12
Joined: Fri Feb 18, 2005 1:41 pm

Post by parag_pk »

ray.wurlod wrote:Could be time to mark thread as resolved, then.
We tried to insert data with other stages like Ora OCI and DRDBMS
by keeping same width 11,2 and display 13 data is getting inserted properly.

but our issue is, when we keep same width and scale (11,2 and display 13) in ODBC Stage. Its NOT working and most of our jobs are having ODBC stage.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And? :?

You've got your answer - you will need to adjust your metadata for use in the ODBC stage, it seems. You can thank Bill Gates for that. Only question in my mind is: does it make a difference if you use the Oracle 'wire' drivers over the 'non-wire' ones? Which have you tried?

Rhetorical question, but why would you use ODBC when you have a 'native' interface available, in this case OCI? To me, ODBC is the 'interface of last resort'...
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But easier to change databases subsequently when some smooth-talking sales person convinces management that dBase IV is the only database you'll ever need and it's cheap as well. :roll:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
parag_pk
Participant
Posts: 12
Joined: Fri Feb 18, 2005 1:41 pm

Post by parag_pk »

ray.wurlod wrote:But easier to change databases subsequently when some smooth-talking sales person convinces management that dBase IV is the only database you'll ever need and it's cheap as well. :roll:
Update - We have been notified by IBM that there is patch available for this issue.

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Good to know. If you can, please post the ECASE number for this patch, it will help others with the problem get the solution as easily as possible.
-craig

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