My Oracle Support Banner

[TOPLINK-4002] Database SQLException (Doc ID 794701.1)

Last updated on NOVEMBER 10, 2021

Applies to:

Oracle TopLink - Version and later
Information in this document applies to any platform.
Version affected Toplink,


Database Exception [TOPLINK-4002] is a run-time exception that is raised when data read from the database, or the data that is to be written to the database, is incorrect. It normally, acts as a wrapper for an underlying SQLException. This exception message contains a reference to the real error code and error message.

This exception can occur on any database operation. If an execution of a SQL script is involved in a database operation causing a Database Exception, the exception's message, is accessible through the getMessage method, and contains the SQL that caused this exception.


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.