Skip to Main Content

Database Software

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!

getting error while insert the data through SQL Loader

AB115Jun 30 2017 — edited Jul 3 2017

Hello Experts,

When I am trying to load the data using sqlldr for date column (INSERT_DATE), I am getting below error,

"ORA-01841: (full) year must be between -4713 and +9999, and not be 0"

Control file context:

LOAD DATA

infile '/u01/dowload/database/test_data.csv'

APPEND

INTO TABLE CCT_PRODUCTS FIELDS TERMINATED BY ","

TRAILING NULLCOLS

(

PROD_ID

DECIMAL EXTERNAL,

INSERT_DATE

"TO_DATE(SUBSTR(:INSERT_DATE,1,19),'YYYY-MM-DD HH24:MI:SS')"

)

Please let me know if anybody has faced the similar issue.

Thanks.

This post has been answered by Gaz in Oz on Jul 3 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2017
Added on Jun 30 2017
16 comments
1,421 views