Skip to Main Content

SQL Developer

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!

Date formate issue using SQL Loader

3597799Dec 4 2017 — edited Dec 5 2017

Hi,

We are facing date format issue during the loading of CVS file using SQL Loader.  In CSV we have date in the format  mm/dd/yyyy e.g  12/28/1900
In the control file  the  placeholder is defined as below

DATEOFBIRTH "TRIM(to_date(:DATEOFBIRTH,'mm/dd/yyyy'))"

However on execution we see that the date 12/18/1900 is converted to 12/18/2000 in the database.
We have checked in the database and the NLS_DATE_FORMAT is set as DD-MON-RR.
Could you please let us know any pointers to resolve this issue. The issue is happening for records which is less than 1950.
It seems century ridding is causing the issue. We want a solution in the control file for fixing this issue.  

SQL>
SQL> --Find the NLS_DATE_FORMAT:
SQL>
SQL> SELECT value FROM v$nls_parameters WHERE parameter ='NLS_DATE_FORMAT';

VALUE
----------------------------------------------------------------
DD-MON-RR

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2018
Added on Dec 4 2017
7 comments
1,696 views