JDBC 10g Does not Automatically set NLS_DATE_FORMAT
(Doc ID 364243.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 to 22.214.171.124 [Release 9.2 to 11.2]
JDBC - Version 126.96.36.199 to 188.8.131.52.0 [Release 9.2 to 11.2]
Information in this document applies to any platform.
JDBC - Version: 184.108.40.206.0 to 220.127.116.11.0
This problem can occur on any platform.
When using the Oracle JDBC driver versions JDBC 18.104.22.168, 10.1.0.x, 10.2.0.x, 11.1.0.x, or 11.2.0.x, the driver sets NLS_LANGUAGE and NLS_TERRITORY based on Java Locale.
No other parameters are set, which means NLS_DATE_FORMAT is not set based on the Database setting.
When using the Oracle JDBC driver versions 8i through 22.214.171.124, the driver sets NLS_LANGUAGE and NLS_TERRITORY based on Java Locale.
NLS_DATE_FORMAT is set based on the default format in the database.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!