Problem In Updating Timestamp to a Table using Oracle -OCI9

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
purush
Participant
Posts: 16
Joined: Sat Nov 25, 2006 5:34 am
Location: Hyderabad

Problem In Updating Timestamp to a Table using Oracle -OCI9

Post by purush »

Hi,

I have to put Timestamp to a table and i'm using a macro for the same in the Transformer to get the Timestamp,and after that I'm loading into a Oracle Table.For the same I'm using an Oracle-OCI9 stage in the Job(Server Canvas). Whenever I try to load the Job,I'm getting an error as

ORA-01861: literal does not match format string

Any Help regarding this will be appreciated.
(Are there any restrictions like this stage will not process datatype Timestamp)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Look at the SQL. What format string is being used? Do your data for the timestamp match this format string?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't believe there's a macro that will get you the format you need.

Assuming your datatype is Timestamp in the job and DATE in the database, there are a ton of posts here on how to do this. A Search should turn them up.
-craig

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