Ora-01841 Error For Dates That Are Within Proper Range
(Doc ID 1186337.1)
Last updated on DECEMBER 24, 2019
Applies to:Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
When attempting to issue a select statement against a date column in a table the following error occurs.
ORA-01841: (full) year must be between -4713 and +4713 / +9999
from <owner>.<object_name> a, <owner>.<object_name> b
where a.COL1 = b.COL1
and b.COL2 = 20
and to_date ('8/3/2010', 'mm/dd/yyyy') <= (
b.COL3_DATE + b.COL2 - EXTRACT(day from b.COL3_DATE)
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