My Oracle Support Banner

ORA-1841 is not reported when expected showing unusual behavior (19.20 RU below) (Doc ID 3025631.1)

Last updated on MAY 28, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 19.19.0.0.0 [Release 11.2 to 19]
Information in this document applies to any platform.

Symptoms

Version 19.19.0.0.0 and earlier returns the wrong value for the year which is not correct.

 

-- Version 19.19.0.0.0 and earlier

SQL> SELECT TO_DATE('99991231','yyyymmdd') + 1 FROM DUAL;
SELECT TO_DATE('99991231','yyyymmdd') + 1 FROM DUAL
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

is expected behavior.

 

SQL> SELECT TO_DATE('99991231','yyyymmdd') + 8315842 FROM DUAL;

TO_DATE('
---------
01-JAN-68

is unusual behavior.

 

-- Version 19.20.0.0.0

SQL> SELECT TO_DATE('99991231','yyyymmdd') + 1 FROM DUAL;
SELECT TO_DATE('99991231','yyyymmdd') + 1 FROM DUAL
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0


SQL> SELECT TO_DATE('99991231','yyyymmdd') + 8315842 FROM DUAL;
SELECT TO_DATE('99991231','yyyymmdd') + 8315842 FROM DUAL
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

 

is expected bahavior.

Changes

Database has been upgraded to 19.20 RU.

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.