Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01801 - date format

user8660054Jul 7 2011 — edited Jul 8 2011
Hi all,

i receive error ORA-01801: date format is too long for internal buffer when i try to run pl/sql procedure in sqlplus. But if i seperately run select statements for the same procedure in TOAD results are there. Is there a bad value inside the column table or there are problems with dates.

Regarding dates i have only this condition:

.
.
AND (TO_DATE (t.ferja || LPAD (t.urca, 6, '0'), 'YYYYMMDDHH24MISS') >=
TO_DATE (20110628130000, 'YYYYMMDDHH24MISS')
OR TO_DATE (c.ferja || LPAD (fec.urca, 6, '0'), 'YYYYMMDDHH24MISS') >=
TO_DATE (20110628130000, 'YYYYMMDDHH24MISS'))
/* Expiry date >= current date */
AND NVL (TO_NUMBER (SUBSTR (TO_CHAR (t.vigea), 3, 4)), 0) >=
TO_CHAR (SYSDATE, 'YYMM');

Any help would be appreciated.Thank you.

Regards,

Robert
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2011
Added on Jul 7 2011
10 comments
733 views