JDBC 10g Does not Automatically set NLS_DATE_FORMAT
Last updated on MAY 19, 2017
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 to 18.104.22.168 [Release 9.2 to 11.2]
JDBC - Version 22.214.171.124 to 126.96.36.199.0 [Release 9.2 to 11.2]
Information in this document applies to any platform.
JDBC - Version: 188.8.131.52.0 to 184.108.40.206.0
This problem can occur on any platform.
When using the Oracle JDBC driver versions JDBC 220.127.116.11, 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 18.104.22.168, 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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms