SQL*Loader Returns Second Enclosure String Not Present (Doc ID 858532.1)

Last updated on NOVEMBER 28, 2016

Applies to:

Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.1.0.7
This problem can occur on any platform.

Symptoms

You started SQL*Loader to transfer the data from an ASCII flat file to a database table and received an error, like the following test demonstrates:

-- create a table
connect test/test
drop table a_tab;
create table a_tab
(
   id number,
   text varchar2(10)
);

-- write the control file ldr.ctl
load data
infile *
truncate
into table a_tab
fields terminated by ';' optionally enclosed by ""
trailing nullcols
(
   id,
   text
)
begindata
1;Text 1
2;Text 2

Start SQL*Loader with:

#> sqlldr test/test control=ldr.ctl

and the written log file contains:

Record 1: Rejected - Error on table A_TAB, column ID.
second enclosure string not present
Record 2: Rejected - Error on table A_TAB, column ID.
second enclosure string not present

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms