Sql Loader Error [message #578358] |
Wed, 27 February 2013 04:32 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
nagaraju.ch
Messages: 103 Registered: July 2007 Location: bangalore
|
Senior Member |
|
|
Hi
I am trying to load from a file using Sql Loader Script. File is being created by unix commands which has single column with dates. All data is going to .bad file, could some advise how to load this into table. Below is the Script and file date i am using.
Thanks
load data
insert into table DATE_LOAD_TBL
TRAILING NULLCOLS
(
CURRENT_DATE "TO_DATE(:CURRENT_DATE)"
)
Data File:
29-Jan-2013
30-Jan-2013
31-Jan-2013
|
|
|
|
|
|
Re: Sql Loader Error [message #578399 is a reply to message #578376] |
Wed, 27 February 2013 08:57 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](/forum/images/custom_avatars/102589.gif) |
Michel Cadot
Messages: 68733 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
CURRENT_DATE is the name of a standard function; do not use it as your column name:
SQL> select current_date from dual;
CURRENT_DATE
-------------------
27/02/2013 15:57:09
Regards
Michek
|
|
|