Skip to Main Content

Database Software

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!

sqlldr: ORA-00928: missing SELECT keyword

User13277775-OracleOct 10 2011 — edited Oct 11 2011
Hi,
I am not able to make sqlldr work using very simple control file. Any hints appreciated
P..

<pre>

-bash-3.2$ cat /export/oracle/a.ctl
LOAD DATA
INTO TABLE utf8
fields terminated by ","
(char, x)
-bash-3.2$ cat /export/oracle/data.txt
a,b
c,d
-bash-3.2$ bin/sqlldr sysman/11amcoke control=/export/oracle/a.ctl data=/export/oracle/data.txt log=import

SQL*Loader: Release 11.2.0.1.0 - Production on Tue Oct 11 01:02:26 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

Commit point reached - logical record count 2
-bash-3.2$ cat import.log

SQL*Loader: Release 11.2.0.1.0 - Production on Tue Oct 11 01:02:26 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

Control File: /export/oracle/a.ctl
Data File: /export/oracle/data.txt
Bad File: /export/oracle/data.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 UTF8, loaded from every logical record.
Insert option in effect for this table: INSERT

Column Name Position Len Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
CHAR FIRST * , CHARACTER
X NEXT * , CHARACTER

Record 1: Rejected - Error on table UTF8, column CHAR.
ORA-00928: missing SELECT keyword

Record 2: Rejected - Error on table UTF8, column CHAR.
ORA-00928: missing SELECT keyword


Table UTF8:
0 Rows successfully loaded.
2 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: 33024 bytes(64 rows)
Read buffer bytes: 1048576

Total logical records skipped: 0
Total logical records read: 2
Total logical records rejected: 2
Total logical records discarded: 0

Run began on Tue Oct 11 01:02:26 2011
Run ended on Tue Oct 11 01:02:26 2011

Elapsed time was: 00:00:00.12
CPU time was: 00:00:00.04
</pre>
Should it matter, this is on Solaris 10u10, amd64 (VirtualBox) with 8GB RAM

Edited by: user13277775 on 10.10.2011 16:10
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 8 2011
Added on Oct 10 2011
1 comment
1,228 views