My Oracle Support Banner

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

Last updated on JANUARY 04, 2023

Applies to:

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


JDBC 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(
at TestTimestamp.main(


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

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