My Oracle Support Banner

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 MARCH 28, 2019

Applies to:

JDBC - Version 11.2.0.1.0 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 <TABLE_ NAME> 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

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
Changes
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.