ORA-01861: literal does not match format string
一般来说这个错误是因为数据库语言照成格式化异常
首先查看你传输的数据的格式是否和数据库匹配
如果还不行在查看你数据的语言(查看数据的sql语句为 select * from v$nls_parameters )
[{PARAMETER=NLS_LANGUAGE, VALUE=AMERICAN},
{PARAMETER=NLS_TERRITORY, VALUE=AMERICA},
{PARAMETER=NLS_CURRENCY, VALUE=$},
{PARAMETER=NLS_ISO_CURRENCY, VALUE=AMERICA},
{PARAMETER=NLS_NUMERIC_CHARACTERS, VALUE=.,},
{PARAMETER=NLS_CALENDAR, VALUE=GREGORIAN},
{PARAMETER=NLS_DATE_FORMAT, VALUE=DD-MON-RR}, 这个标识数据库date类型的格式
{PARAMETER=NLS_DATE_LANGUAGE, VALUE=AMERICAN}, 看下此处的编码格式这个表示date类型的编码格式
{PARAMETER=NLS_CHARACTERSET, VALUE=JA16SJIS}, 还有次数的格式这个表示你数据库的字符编码格式
{PARAMETER=NLS_SORT, VALUE=BINARY}, {
PARAMETER=NLS_TIME_FORMAT, VALUE=HH.MI.SSXFF AM},
{PARAMETER=NLS_TIMESTAMP_FORMAT, VALUE=DD-MON-RR HH.MI.SSXFF AM},
{PARAMETER=NLS_TIME_TZ_FORMAT, VALUE=HH.MI.SSXFF AM TZR},
{PARAMETER=NLS_TIMESTAMP_TZ_FORMAT, VALUE=DD-MON-RR HH.MI.SSXFF AM TZR},
{PARAMETER=NLS_DUAL_CURRENCY, VALUE=$},
{PARAMETER=NLS_NCHAR_CHARACTERSET, VALUE=AL16UTF16},
{PARAMETER=NLS_COMP, VALUE=BINARY},
{PARAMETER=NLS_LENGTH_SEMANTICS, VALUE=BYTE},
{PARAMETER=NLS_NCHAR_CONV_EXCP, VALUE=FALSE}]