Insert into Date column in Oracle
Posted: Mon Oct 31, 2011 4:59 am
Hi Guys,
My source is a Flat file. The Input column sample value is 2011-07-16. I am reading it as Date.
My Target is Oracle table. This column is a part of Primary Key. I directly mapped the column. But i am getting the following error.
I even tried to read it as Varchar and convert it to Date using StringToDate(Columnname) function. Still i am getting the following error.
Also CurrentDate() is also giving me the same error.
Can somebody guide me as what i am doing wrong.
Cheers!!!
My source is a Flat file. The Input column sample value is 2011-07-16. I am reading it as Date.
My Target is Oracle table. This column is a part of Primary Key. I directly mapped the column. But i am getting the following error.
Code: Select all
Oracle_Connector_43,0: The OCI function OCIStmtExecute returned status 1. Error code: 1722, Error message: ORA-01722: invalid number.
Also CurrentDate() is also giving me the same error.
Can somebody guide me as what i am doing wrong.
Cheers!!!