Hi All,
You may think that in order to query external table you should have only read permission on the Directory Object which sounds very reasonable....
but in some external table the definition include this part of code:
You may think that in order to query external table you should have only read permission on the Directory Object which sounds very reasonable....
but in some external table the definition include this part of code:
ACCESS PARAMETERS
( records
delimited by newline
LOGFILE "EXTERNAL_FILES":'faults.txt'
FIELDS TERMINATED BY ';'
missing FIELD values are null
this definition force a write permission on the directory object.
else you will run into this error:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04074: no write access to directory object EXTERNAL_FILES
29913. 00000 - "error in executing %s callout"
*Cause: The execution of the specified callout caused an error.
*Action: Examine the error messages take appropriate action
this will do the work:
GRANT READ, WRITE ON DIRECTORY EXTERNAL_FILES TO USER;
Thanks,
Comments
Post a Comment