My Oracle Support Banner

Correct Query Generates ORA-1841 or ORA-1842 or ORA-1840 or ORA-1843 or ORA-1844 (Doc ID 422068.1)

Last updated on DECEMBER 05, 2019

Applies to:

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

Symptoms

Select statement generates either ORA-1841, ORA-1842, ORA-1840, ORA-1843 or ORA-1844.

$ oerr ora 1840
01840, 00000, "input value not long enough for date format"
// *Cause:
// *Action:

$ oerr ora 1841
01841, 00000, "(full) year must be between -4713 and +9999, and not be 0"
// *Cause: Illegal year entered
// *Action: Input year in the specified range

$ oerr ora 1843
01843, 00000, "not a valid month"
// *Cause:
// *Action:

$ oerr ora 1842
01842, 00000, "quarter must be between 1 and 4"
// *Cause:
// *Action:

$ oerr ora 1844
01844, 00000, "week of year must be between 1 and 52"
// *Cause:
// *Action:


If CBO chooses another path no error is generated.

Changes

 

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.