#---- Control file:
LOAD DATA
INFILE *
INTO TABLE TABLE_1 TRUNCATE
TRAILING NULLCOLS
(FLAP_TIME POSITION(1:15) "TO_DATE(:FLAP_TIME,'MON DD HH24:MI:SS')")
BEGINDATA
May 27 15:02:36
May 29 04:03:57
# Execution:
$ sqlldr scott/tiger control=t1.ctl
SQL*Loader: Release 10.2.0.3.0 - Production on Fri May 30 10:52:49 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 2
$ cat t1.log
SQL*Loader: Release 10.2.0.3.0 - Production on Fri May 30 10:52:49 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Control File: t1.ctl
Data File: t1.ctl
Bad File: t1.bad
Discard File: none specified
(Allow all discards)
Number to load: ALL
Number to skip: 0
Errors allowed: 50
Bind array: 64 rows, maximum of 256000 bytes
Continuation: none specified
Path used: Conventional
Table TABLE_1, loaded from every logical record.
Insert option in effect for this table: TRUNCATE
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
FLAP_TIME 1:15 15 CHARACTER
SQL string for column : "TO_DATE(:FLAP_TIME,'MON DD HH24:MI:SS')"
Table TABLE_1:
2 Rows successfully loaded.
0 Rows not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Space allocated for bind array: 1152 bytes(64 rows)
Read buffer bytes: 1048576
Total logical records skipped: 0
Total logical records read: 2
Total logical records rejected: 0
Total logical records discarded: 0
Run began on Fri May 30 10:52:49 2008
Run ended on Fri May 30 10:52:50 2008
Elapsed time was: 00:00:00.39
CPU time was: 00:00:00.05
$ sqlplus scott/tiger
SQL*Plus: Release 10.2.0.3.0 - Production on Fri May 30 10:51:13 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from table_1;
FLAP_TIME
---------
27-MAY-08
29-MAY-08
SQL>