ORA-01857: Not a Valid Time Zone When Using to_timestamp_tz Function In JDBC 11.2.0.1.0 (Doc ID 1087241.1)

Last updated on SEPTEMBER 01, 2014

Applies to:

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

Symptoms

Inserting a date into a table using the to_timestamp_tz function via the JDBC driver version 11.2.0.1.0 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).

Changes

JDBC driver was upgraded from 11.1.0.7 to 11.2.0.1

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