ORA-29913: Error in Executing ODCIEXTTABLEOPEN Callout (Doc ID 458620.1)

Last updated on DECEMBER 06, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.3 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
***Checked for relevance on 19-Jan-2016***


Symptoms

To reproduce the issue:

create directory meta_data as '/home/oracle/customer/meta_data';
grant read, write on directory meta_data to cartl01;



The foo.dat file was placed in the meta_data directory at the OS level
In this case the file only contained a single line with number '100'.


Create the next external table:

CREATE TABLE FOO
(
  NUM  NUMBER(10)
)
ORGANIZATION EXTERNAL
  (  TYPE ORACLE_LOADER
     DEFAULT DIRECTORY META_DATA
     ACCESS PARAMETERS
       ( records delimited by newline
    NOLOGFILE  )
     LOCATION ('foo.dat')
  )
REJECT LIMIT 0
NOPARALLEL
NOMONITORING;


Select from the external table encounters the error:

SQL> show user
USER is "CARTL01"

SQL> select * from foo;
select * from foo
*
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file foo.dat in META_DATA not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19

 

NOTE:
With 11.2, the last line in the mentioned error stack was no longer observed.

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