My Oracle Support Banner

Assertion botch: negative time With 11.2 JDBC Drivers (Doc ID 1206581.1)

Last updated on MAY 25, 2023

Applies to:

JDBC - Version to [Release 11.2]
Information in this document applies to any platform.


On using the latest driver to insert or update the date values which are near to end of the day i.e.  like “0001-04-28 23:38:19”, “0001-04-02 23:53:01”, with Timezone set to "(GMT +05:30) Chennai, Kolkata, Mumbai, New Delhi" gets the following exception

java.lang.RuntimeException: Assertion botch: negative time
at oracle.jdbc.driver.DateCommonBinder.setOracleHMS(
at oracle.jdbc.driver.TimestampBinder.bind(
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(


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.