Oracle Raw Field

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
nkj
Participant
Posts: 2
Joined: Thu Dec 08, 2005 4:48 pm

Oracle Raw Field

Post by nkj »

I need to read field type Raw from oracle database using ODBC stage to do look ups on that field and then load it back to oracle database. When i try to read data is read as varbinary and length of data is twice the length as viewed in database. When i try to load it back it is giving truncation error messages for eg
SQLSTATE=01004, DBMS.CODE=0
[DataStage][SQL Client]Data has been truncated

Data is size of Raw 16 but when i read from datastage ODBC stage it looks like 3032303030303134303030303034363344443033303030323030303030303938.

Whats the right equivalent of raw 16 in datasatge- is varbinary 16 correct

Please let me know whats the right way to handle oracle raw field in datastage.

Thanks in advance
Jain
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

Try increasing the size of the field in the job which you are using for this raw field (as error is of the truncation). Did you try using LongVarbinary? and let us know what happened.
Success consists of getting up just one more time than you fall.
nkj
Participant
Posts: 2
Joined: Thu Dec 08, 2005 4:48 pm

Post by nkj »

I tried that too. It didnot worked.
Jain
Post Reply