Resolution to the "ORA-01843 Not a valid month" Error
Finally a valid resolution to this strange Oracle error.
Original Author: John Galanopoulos
Code
I have seen many developers (specifically those who deal with ORACLE For some strange reason, Oracle seems to react with your date format The first thing i did, was to check whether the registry value And it was!! After i tried many things, i returned to that key and i I went back to my source and after the line where my connection to the strSQL = "ALTER SESSION SET NLS_DATE_FORMAT = {The following line applies to Oracle Objects for OLE ( aka OO4O). If myOraDB.ExecuteSQL (strSQL) All my Insert/Update/Delete SQL statements that included a date value where The "ORA-01843" Error; How-Not-To
backends) knocking themselves out (i was one of them) with this strange
error while trying to execute an SQL query with a date field in it.
'mm/dd/yyyy' (or 'dd/mm/yyyy')
and raises this error.
HKEY_LOCAL_MACHINESoftwareORACLE
ls_date_format was of the format
"dd/mm/yyyy".
changed the format. Still nothing. This key seems to have no effect to the way
ORACLE databases handle date values.
ORACLE database was initialized, i wrote :
'DD/MM/YYYY'"
you use ADO, RDO, DAO, ODBC API etc etc write it in it's relative format}.
Guess what ppl. It worked!
properly inserted into the Oracle database table. No errors so no problems :-)
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.