My Oracle Support Banner

Ora-01841 Error For Dates That Are Within Proper Range (Doc ID 1186337.1)

Last updated on AUGUST 05, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 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

SQL Statement:

select *
from dre.Stage_211 s211, cbr.Terms_and_Conditions tc
where s211.TC_NUMBER = tc.TC_NUMBER
and tc.Bill_Period_Number = 20
and to_date ('8/3/2010', 'mm/dd/yyyy') <= (
tc.Expiration_Date + tc.Bill_Period_Number - EXTRACT(day from tc.Expiration_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!

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