Oracle OCI stage

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
arshi
Participant
Posts: 50
Joined: Wed Apr 18, 2007 5:12 am

Oracle OCI stage

Post by arshi »

Hi,

In my job I am using Oracle OCI stage.If I click view data its giving the message as "OCI DATE Conversion Failed".But the data is populated correctly into target oracle table.

If I remove the date data(lessthan '01-JAN-2001') in the source(flat file) then it not showing that message.Any one give the reason for this.

using DATASTAGE: 8.0.1 , DB : Oracle 10g

Regards,
Arshi
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are you able to select the date from sql developer? What is the length of your date field, as defined in your table?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: Oracle OCI stage

Post by gateleys »

Is it because your source flat file has the year specified in 2 digits and not 4 digits, and hence, oracle is confused about the century?

gateleys
arshi
Participant
Posts: 50
Joined: Wed Apr 18, 2007 5:12 am

view data

Post by arshi »

Hi DSguru2B and gateleys,

Length of the date field is 11 in the table.One of the source file date data is 13-AUG-1996.

Regards,
Arshi
Hemant_Kulkarni
Premium Member
Premium Member
Posts: 50
Joined: Tue Jan 02, 2007 1:40 am

Post by Hemant_Kulkarni »

try using to_date() function.
arshi
Participant
Posts: 50
Joined: Wed Apr 18, 2007 5:12 am

VIEW DATA

Post by arshi »

Hi Hemant,

The problem here is at View Data of Oracle OCI stage.i.e, as I mentioned earlier the message given as "OCI DATE Conversion Failed" for particular dates lessthan '01-JAN-2001'.
All the Dates populated correctly into the target oracle table.

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

Post by chulett »

If that's true then I'd report it as a bug to your Support provider.
-craig

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