My Oracle Support Banner

Incorrectly Stored Dates in a Database (Doc ID 331831.1)

Last updated on FEBRUARY 02, 2022

Applies to:

Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.




Purpose

You might sometimes find a DATE column in a database with incorrectly stored data. For example you might select a DATE and get returned the value  '00-DECEMB', or '00-000-0000', and other things that are obviously incorrect dates.

You might also notice unexpected errors like:

ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Of course there are many situations in which this is a correct error, but at times you might expect that only correct dates are stored but you still hit this error, in that case the issues discussed in this note could be worth looking at.

 

Scope

This note is intended to assist in debugging situations in which you might find incorrectly stored data in the database.

Details

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
Purpose
Scope
Details
 known Oracle issues:
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.