Error loading Timestamp to DB2 from Oracle DB

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
amarjpn
Participant
Posts: 17
Joined: Tue Aug 04, 2009 7:35 am

Error loading Timestamp to DB2 from Oracle DB

Post by amarjpn »

We are facing an issue with the loading of Timestamp field from Oracle Db to DB2 database. I think in oracle we store the timestamp in 26 bytes but when we are trying to load this field to DB2, we are getting error. The issue is in DB2 database timestamp is of 10 bytes and in oracle it is 26 bytes.

Can anyone help me how can I load the 26 byte timestamp field to DB2 database?
Regards,
Amarjyoti
shawn.k
Premium Member
Premium Member
Posts: 7
Joined: Wed Oct 06, 2010 10:47 am

Re: Error loading Timestamp to DB2 from Oracle DB

Post by shawn.k »

I never worked with DB2 before so I am not sure whether you are trying to store Timestamp(26) into Date (10 bytes). I might be wrong too, but if you are doing this than use Timestamp to date function. Let me know if this helped.
Shawn K
--------------------------------------------------------
"What is right is not always popular and what is popular is not always right."
— Albert Einstein
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

10 bytes is not a timestamp. Its a date field. Convert your data into date and try inserting.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply