problem while inserting date into oracle
Posted: Sun Aug 19, 2007 5:41 am
hai,
i am facing one problem i.e,my source is sequential file .one of my column is in 'date' type it is in "YYMMDD" format.i am inserting this values into oracle table using oracle(database) stage.oracle internal format is 'dd-mon-yyyy'.in oracle stage insert command like
insert into a1(date1) values('to_date(:1,'yymmdd'))
here the error is:
date001..Transformer_2: At row 1, link "DSLink4", while processing column "date1"
Value treated as NULL
Attempt to convert String value "61/08/13" to Date type unsuccessful
just i am giving example with one column.i laso tried with oconv functions in transformer to change the input format into dd/mm/yyyy
and also changed the insert command in output stage like
insert into a1(date1) values('to_date(:1,'dd/mm/yyyy'))
but it is also not working.
please help me.
i am facing one problem i.e,my source is sequential file .one of my column is in 'date' type it is in "YYMMDD" format.i am inserting this values into oracle table using oracle(database) stage.oracle internal format is 'dd-mon-yyyy'.in oracle stage insert command like
insert into a1(date1) values('to_date(:1,'yymmdd'))
here the error is:
date001..Transformer_2: At row 1, link "DSLink4", while processing column "date1"
Value treated as NULL
Attempt to convert String value "61/08/13" to Date type unsuccessful
just i am giving example with one column.i laso tried with oconv functions in transformer to change the input format into dd/mm/yyyy
and also changed the insert command in output stage like
insert into a1(date1) values('to_date(:1,'dd/mm/yyyy'))
but it is also not working.
please help me.