Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ORA-01861: literal does not match format string error on INSERT

3735390Jun 29 2018 — edited Jul 2 2018

I have a C program which uses embedded SQL.  Very occaisionally a SQL INSERT statement fails with the error "ORA-01861: literal does not match format string".  This insert (and table) has many columns (>50) so I don't know which column this error refers to.  How can I find this out?

Some of my colleagues think it is a date format problem, but I can see different date formats that are handled OK without an error.  There are no "to_date" or "to_char" conversions used and 1000's of similar statements get executed successfully every day.

I am unsure how to proceed from here.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 30 2018
Added on Jun 29 2018
16 comments
3,092 views