My Oracle Support Banner

External Table With Null String Passed in OPTIONALLY ENCLOSED BY Clause Hangs (Doc ID 602279.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2 to 12.1]
Information in this document applies to any platform.


You created an external table with a field termination clause of OPTIONALLY ENCLOSED BY '' that is accepted by the ORACLE_LOADER access driver:

create table test_ext
   field1 varchar2(10),
   field2 varchar2(10),
   field3 varchar2(10)
organization external
   type oracle_loader
   default directory ext
   access parameters
      records delimited by newline
      fields terminated by ','
      optionally enclosed by ''
      missing field values are null
         field1 char(10),
         field2 char(10),
         field3 char(10)
   location ( 'test.csv' )

-- write input file test.csv in directory EXT with this content:


When the external table is selected in a SQL*Plus session, then this will hang forever and consume CPU:

SQL> select * from test_ext;


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.