My Oracle Support Banner

Delete Query Fail With OptimisticLockException If Batch-Writing JDBC Is On (Doc ID 1478265.1)

Last updated on SEPTEMBER 18, 2019

Applies to:

Oracle TopLink - Version to [Release Oracle11g to 12c]
Information in this document applies to any platform.
Checked for currency 05-Jan-2015


This issue occurs in both Toplink and Toplink Grid environments for the following releases:

TopLink 2.1.2

TopLink 2.3.2

When using TopLink 2.1.2 with JPA 2.0, an attempt was made to delete all the records in one table A through
a named JPQL delete query like "DELETE FROM A". It was found that delete operation fails and reports an exception


is removed from persistence.xml


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.