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.

using external table to import .csv dataset

Gor_MahiaOct 16 2022 — edited Oct 16 2022

All,
iam having problem loading .csv file via my external table sample below - the problem is actually full_description column which contains all sorts of characters (",$<>!@%^&* etc) including non displayable values set:
PART 1:
CREATE TABLE TEST3 (
KEY_ID varchar2(30),
FULL_DESCRIPTION CLOB
)
ORGANIZATION EXTERNAL (
DEFAULT DIRECTORY mydir
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
LOAD WHEN ( KEY_ID != blank )
SKIP 1
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
MISSING FIELD VALUES ARE NULL
reject rows with all null fields
)
LOCATION ('MY_TEST_VALUESET.csv')
);

PART 2:
image.png
PART 3 - data set:
image.png
How do i process these characters ?
Iam just surprised some of these api like SQLLDR have been used for many year but still have critical weakness like processing Clob/large data field, external table cannot process CLOB yet that's Oracle supported data type.

using Oracle 12.2g Enterprise.

thanks in advance.

Comments
Post Details
Added on Oct 16 2022
12 comments
1,326 views