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

Last updated on DECEMBER 05, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 13-Sep-2016***

Symptoms

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)
)



Changes

none

Cause

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 hundreds of Community platforms