NLS_DATE_FORMAT and SQL Loader
350914Jun 29 2006 — edited Jun 29 2006Hello All,
Okay. I've read all the other posts about nls_date_format but all seem to imply that you have to use the "alter session set NLS_DATE_FORMAT" command to get the format needed. My issue is this:
My Oracle 10gR2 database on Windows has the NLS_DATE_FORMAT = "YYYYMMDD" in the init file and the sqlload process doesn't seem to see the init.ora param NLS_DATE_FORMAT.
My source text file has dates in the range from 19550101 (Jan 1 1955) to 20991231 (Dec 31 2099) . My control file for the load does a to_date funciton as follows:
MATUR_DT POSITION(78:85) "to_date(:MATUR_DT,'YYYYMMDD')"
The data for anything above 20500101 (Jan 1 2050) is being convert back to 19XX. Any suggestions?
Message was edited by:
jedsousa@yahoo.com