Search found 204 matches

by sheema
Fri Jan 26, 2007 3:36 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

I have built a job where i am using a oraoci as source.when i have columns whose datatypes are DATE or TIMESTAMP i am not able to view the data.If i change the datetype of the date field to char or varchar i can view the data.
by sheema
Fri Jan 26, 2007 12:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

ok,Thanks for all the help.

Thanks
sheema
by sheema
Fri Jan 26, 2007 12:30 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

The generated sql is

INSERT INTO XYZ (No,Date) VALUES (:1,TO_DATE(:2, 'YYYY-MM-DD HH24:MI:SS'))
by sheema
Fri Jan 26, 2007 12:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

my problem is i am not able to view the data in oraOCI stage.
by sheema
Fri Jan 26, 2007 12:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

whale i am sorry that was a typo error the data is coming in mm/dd/yyyy format.
by sheema
Fri Jan 26, 2007 12:21 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

chulett,

The sql is Generated SQL and it has To_Date().
I am getting the error when i click view data

ocixyz: ORA-01821: date format not recognized

ocixyz.DSLink1: DSP.Open GCI $DSP.Open error -100.
by sheema
Fri Jan 26, 2007 12:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

The source data which i am getting is of datatype Varchar(10) and it is in the format mm/dd/yy. I am converting it in transformer using OCONV(ICONV(Date,"D/MDY[2,2,4]"),"D-YMD[4,2,2]"):" 00:00:00" Then i have datatype of the date fields in the oraOCI set to Timestamp(19...
by sheema
Fri Jan 26, 2007 11:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

i have updated it with a space as below
OCONV(ICONV(Date,"D/MDY[2,2,4]"),"D-YMD[4,2,2]"):" 00:00:00".
But it not solve my problem,the data is getting loaded but i cannot view the data through oraOCI stage.
by sheema
Fri Jan 26, 2007 11:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

chulett, I have used the format OCONV(ICONV(Date,"D/MDY[2,2,4]"),"D-YMD[4,2,2]"):"00:00:00" in my transformer and changed the datatype to Timestamp(19) and loaded into the table. The data is getting loaded into the table. But when i select the view data option i am gett...
by sheema
Fri Jan 26, 2007 11:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

ok,Thanks for all the help.
by sheema
Fri Jan 26, 2007 11:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

I changed the datatype to TimeStamp in my oraOCI but still i am getting the same error when i click the View Data option.
I knew that DB2 accepts internal date format,so i was not sure that Oracle also accepts the internal date format.
by sheema
Fri Jan 26, 2007 11:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

I checked the data,all the rows got loaded.I will check by changing the datatype to timestamp.
by sheema
Fri Jan 26, 2007 11:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

yes,that is the data which i am inserting.the date appears in mm/dd/yyyy format in TOAD.
by sheema
Fri Jan 26, 2007 11:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

I did not use OCONV.
I did not get any warning in my log.
by sheema
Fri Jan 26, 2007 10:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Date format in oracOCI
Replies: 38
Views: 10084

Problem with Date format in oracOCI

I have a simple job it extracts data from a flat file and loads into a oracle table.I have 3 date fields coming from source file which are of datatype varchar and length 10 and it is coming in the format mm/dd/yyyy.I am converting them in the transformer using ICONV(Date,"D/MDY[2,2,4]") an...