My Oracle Support Banner

WHY DOES JDBC SHOW DIFFERENT TIMESTAMP FROM SQLPLUS ON DAYLIGHT SAVINGTIME (DST)? (Doc ID 871385.1)

Last updated on JUNE 24, 2021

Applies to:

JDBC - Version 10.2.0.4 and later
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

 JDBC 11.1.0.7.0 driver (ojdbc6.jar) using JDK 1.6 against an Oracle 10.2.0.4 database.
SqlPlus and JDBC execution on same select statement on date field show different results.

Is this a bug? Why does JDBC show a different value from sqlplus? 


Steps to reproduce:

1. Create table:

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.