java.sql.SQLException: Conversion to Timestamp failed When Using JDBC 11.2.0.2.0 and Oracle.Sqlclass Datum Timestampvalue() Method (Doc ID 1396445.1)

Last updated on MARCH 08, 2017

Applies to:

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

Symptoms

JDBC 11.2.0.2.0 does not work for oracle.sqlClass Datum timestampValue() method against object type with TIMESTAMP WITH TIME ZONE.
Program fails with:

java.sql.SQLException: Conversion to Timestamp failed
at oracle.sql.Datum.timestampValue(Datum.java:315)
at TestTimestamp.main(TestTimestamp.java:46)

Cause

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