Datastage direct loader

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
abhijitr
Participant
Posts: 5
Joined: Tue Feb 20, 2007 3:37 pm

Datastage direct loader

Post by abhijitr »

Hi,

I am trying to load the data into Oracle table using datastage direct load method. I am unable to insert the timestamp field into the table having datatype as timestamp(6). I have converted my data to the timestamp format supported by datastage.

I am getting error as unsupported type.

can anybody help me out in this?

Thanks in advance !!

Regards,
Abhijit
Last edited by abhijitr on Wed Feb 21, 2007 11:06 am, edited 1 time in total.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Welcome Aboard,
I have never seen timestamp with length 6. You sure you got the length right?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
abhijitr
Participant
Posts: 5
Joined: Tue Feb 20, 2007 3:37 pm

Post by abhijitr »

timstamp datatype with 6 digits for microseconds
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

WHen you say direct load, you mean using the OCI Load stage? If yes then make sure the date is in the format YYYY-MM-DD 24HH:MM:SS.nnnnnn before sending it to the load stage.
If you are using the API stage and doing an INSERT, then let OCI stage take care of the format in TO_DATE() function. I think you need to provide the format YYYY-MM-DD 24HH:MM:SS.FF6
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
abhijitr
Participant
Posts: 5
Joined: Tue Feb 20, 2007 3:37 pm

Post by abhijitr »

abhijitr wrote:timstamp datatype with 6 digits for microseconds


I have used following conversion

StringToTimestamp('2007-02-02 05:23:56.000025',"%yyyy-%mm-%dd %hh:%nn:%ss.x")

but still i am facing the problem
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try giving .6 instead of .x
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
abhijitr
Participant
Posts: 5
Joined: Tue Feb 20, 2007 3:37 pm

Post by abhijitr »

DSguru2B wrote:Try giving .6 instead of .x


I have tried that also still its giving me unsuppoted type error
abhijitr
Participant
Posts: 5
Joined: Tue Feb 20, 2007 3:37 pm

Post by abhijitr »

abhijitr wrote:
DSguru2B wrote:Try giving .6 instead of .x


I have tried that also still its giving me unsuppoted type error


IS there any way i can specify the ".ctl" file to this loader same as conventional SQL Loader in which i can specify the timestamp format till microseconds.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

I would defer to the folks who have had experience with timestamp microseconds and sql loader.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply