ORA-01857: Not a Valid Time Zone When Using to_timestamp_tz Function In JDBC

(Doc ID 1087241.1)

Last updated on SEPTEMBER 01, 2014

Applies to:

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


Inserting a date into a table using the to_timestamp_tz function via the JDBC driver version fails with the following exception:

java.sql.SQLException: ORA-01857: not a valid time zone

For example: 

insert into sometable values (val1, to_timestamp_tz('01-Jan-2006 07:23:00.000', 'dd-mon-yyyy hh24:mi:ss TZD', val3).


JDBC driver was upgraded from to


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