Skip to Main Content

SQL & PL/SQL

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQLLDR - no terminator found after TERMINATED and ENCLOSED field

SravpremSep 25 2024

Hi,
I am trying to load three columns data from a flat file to Oracle table using SQLLDR.

Below is the sample data file
"00000A055","BOSS INCORPORATED","BOSS G",
"00000-057",""AMIT" CONSTRUCTION INC"," SMITH G.",
"00000-007",""POL" BCER, INC.","James T ",

Only 1st row got loaded into the table. Other two records are rejected with error “column BName. no terminator found after TERMINATED and ENCLOSED field”. Could you help on how to handle this ?

Control file script I have used

LOAD DATA
INFILE " file "
APPEND
INTO TABLE table_name
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(
BId NULLIF BId =BLANKS,
BName NULLIF BName=BLANKS,
PersonName NULLIF PersonName=BLANKS

)

Comments
Post Details
Added on Sep 25 2024
12 comments
88 views