Skip to Main Content

Oracle Database Discussions

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!

SQL LOADER and ORA-01861: literal does not match format string

666246Jan 10 2010 — edited Jan 11 2010
Hi,

I've to load data through control_file(.ctl) into oracle table through sqlldr. Oracle 11g, win xp.

as soon as I use - sqlldr dss/dss control=orders.ctl I get error or nothing.

Text file that is generated after loading fails has the following error.

Record 1: Rejected - Error on table ORDERS, column O_ORDERDATE.
ORA-01861: literal does not match format string

I have checked the format of data to be loaded into Orders table is like this : *1996-01-02.*

I checked the format of data in my database by querying sysdate from dual i.e. 10-JAN-10

I thought that changing its format might solve my problem so i tried this:
SQL> alter session set nls_date_format='YYYY-MM-DD';
Session altered.
SQL> select sysdate from dual;
SYSDATE
----------
2010-01-10
but still i'm getting the same error. I've to load millions of data. how I can solve this issue.

Please suggest.

Thanks alot.

Best Regads,
Kam
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2010
Added on Jan 10 2010
6 comments
8,441 views