Problem with Date format in oracOCI
Moderators: chulett, rschirm, roy
Try creating another job with the OCI stage pointing to your present table. This time your source will be this particular table. This way you are passing a simple select. Try to view data from there. See if it works.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
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.
Last edited by sheema on Fri Jan 26, 2007 3:41 pm, edited 1 time in total.
-
- Participant
- Posts: 30
- Joined: Wed Apr 12, 2006 11:23 am
Try this in your SQL query in ORA stage
TO_CHAR ("COLUMN_NAME", 'YYYY-MM-DD ') and change the data type to VARCHAR. Now try viewing the data
TO_CHAR ("COLUMN_NAME", 'YYYY-MM-DD ') and change the data type to VARCHAR. Now try viewing the data
sheema wrote: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.
-
- Participant
- Posts: 30
- Joined: Wed Apr 12, 2006 11:23 am
and dont put the column_name in quotes as i did, its just to highlight.
devilsmentor wrote:Try this in your SQL query in ORA stage
TO_CHAR ("COLUMN_NAME", 'YYYY-MM-DD ') and change the data type to VARCHAR. Now try viewing the data
sheema wrote: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.