如何从我的 oracle 机器日期格式设置中清除从我的机器数据库连接设置的日期格式

How to clear the dateformat got set from my machine database connection from my machine dateformat setting for oracle

如何从我的机器上清除从我的机器上设置的日期格式 oracle 数据库连接

this post 我已经更改了我的 sql 调用 SP 的开发人员并且它工作正常但同样不适用于 tomcat 服务器

但它在其他机器上工作,相同的代码我转移到其他机器上,它工作得很好

有没有办法configure/Clear对此进行任何设置?

让我们试试这个 - 它不适合评论

来自这个URL:http://www.dba-oracle.com/t_ora_01843_not_a_valid_month.htm

Resolving ORA-01843 includes bad data issues.  The reason a ORA-01843 occurs includes these reasons

•Using an incorrect NLS_DATE_FORMAT 
 This happens a lot when you see data coming from US 
 (where the Month is normally written before the day)
 but the format in the application is still the "European" style.
 (where the day is written before the month). 

•Using a incorrect NLS_DATE_FORMAT:
 Such as trying to insert a "written" month name but are using a "numeric" month in the mask.

NLS 设置是语言环境的一部分(如 tomcat 所见)。语言环境是环境的一部分。这意味着命令

locale  

如果 运行 在问题服务器上的 tomcat 进程中,该命令将不会给出与来自 tomcat 进程的 运行 完全相同的结果工作的服务器。我不确定 tomcat 是问题所在。但是,这是一个区域设置。安装新软件无济于事。

登录到服务器 A(作为 运行s tomcat 的用户)然后键入:locale

登录到服务器 B(作为 运行s tomcat 的用户)然后输入:locale

输出是否完全相同? Oracle 对区域设置极其敏感。使它们相同,使用工作服务器的语言环境。