Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Loader and Dates

Status
Not open for further replies.

btw22

Programmer
Apr 19, 2001
3
US
I have following date field (effective_dt)in tab delimited flat file (always populated as:)

effective_dt
2001-01-12
2000-02-28

My control file looks like:
LOAD DATA
INFILE '$HOME/S599_012002_botax.txt'
APPEND
INTO TABLE BOTAX_HIST
FIELDS TERMINATED BY WHITESPACE
TRAILING NULLCOLS
col 1 POSITION (1:4) CHAR,
effective_dt POSITION(57:66) DATE 'YYYY-MM-DD'

I get error:
Rejected - Error on table BOTAX_HIST, column EFFECTIVE_DT.
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Help! Oracle 8.1.7
 
Try this :
effective_dt POSITION(57:66)DATE "To_Date:)effective_dt,'YYYY-MM-DD')"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top