My Oracle Support Banner

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 JANUARY 04, 2023

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

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
Symptoms
Cause
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.