I had created an external table in Oracle 11g.
It throws the error of file not found sometimes. The file is present in the oracle external table directory with all the permissions provided to the folder/file.
The thing that is odd is that the error does not appear every time. The select on the external table works most of the time. But sometimes, this error pops up. It depends upon Oracle's mood. :P
Already done:
- I have provided all the grants to the directory.
- I have provided chmod 777 (rwx) access to the files.
- I archive the metadata files after each run (*.log, *.dsc and *.bad).
Error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file DIM_OWNING_CENTER_FEED.dat in XFB_EXT_TAB_DATA not found
Table script:
CREATE TABLE SCHEMA_NAME.DIM_OWNING_CENTER_EXT
(
S_OWNING_CENTER_ID VARCHAR2 (50),
OWNING_CENTER VARCHAR2 (52),
ED_START_DATE DATE
)
ORGANIZATION EXTERNAL
(
TYPE ORACLE_LOADER
DEFAULT DIRECTORY XFB_EXT_TAB_DATA
ACCESS PARAMETERS (
RECORDS DELIMITED BY NEWLINE
SKIP 2
LOAD WHEN (
S_OWNING_CENTER_ID != 'FILETRAILER'
)
FIELDS TERMINATED BY '|^'
MISSING FIELD VALUES ARE NULL (
S_OWNING_CENTER_ID CHAR (50),
OWNING_CENTER CHAR (52),
ED_START_DATE DATE 'DD-MON-YYYY HH24:MI:SS'
)
)
LOCATION ('DIM_OWNING_CENTER_FEED.dat')
)
PARALLEL 8 REJECT LIMIT UNLIMITED;