如何从我的机器上清除从我的机器上设置的日期格式 oracle 数据库连接
如 this发布我已经更改了调用 SP 的 sql deveoper 并且它工作正常但同样不适用于 tomcat 服务器
但它在另一台机器上工作,我将相同的代码转移到另一台机器上,它工作得很好
有没有办法为此配置/清除任何设置?
最佳答案
让我们试试这个 - 它不适合评论
来自这个网址: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(作为运行 tomcat 的用户)然后键入:locale
登录到服务器 B(作为运行 tomcat 的用户)然后键入:locale
输出是否完全相同? Oracle 对区域设置极其敏感。使它们相同,使用工作服务器的语言环境。
关于java - 如何从我的 oracle 机器日期格式设置中清除从我的机器数据库连接设置的日期格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29304387/