oracle - External table ORA-29913: error in executing ODCIEXTTABLEOPEN callout.Error in opening file -


i have setup simple oracle external table test.

the database we're using 11g. have followed following steps :

first created directory :

create or replace directory  intf_dir '/orabin/hrtst/test/' ; 

this external table definition:

create table xxhcm_lu_ext   (     lookup_type  varchar2(200 byte) ,     lookup_code  varchar2(200 byte) ,     meaning      varchar2(200 byte) ,     enabled_flag varchar2(10 byte)   )   organization external   (     type oracle_loader      default directory intf_dir      access parameters      ( records delimited newline skip 1      badfile intf_dir:'lookup_code.bad'      logfile intf_dir:'lookup_code.log'      nodiscardfile fields terminated '|' optionally enclosed '"' missing field values null reject rows null fields ) location ( intf_dir: 'lookup_code.csv' )   )   reject limit unlimited 

but when executing **select * frm xxhcm_lu_ext;**

i getting following error :

  ora-29913: error in executing odciexttableopen callout ora-29400: data cartridge error error opening file /orabin/hrtst/test/lookup_code.log 

also, checked permission on directory , files :

/orabin/hrtst/test$  ls -l lookup_code.csv -rwxrwxrwx 1 xxhcmuser dba 259 feb 29 15:37 lookup_code.csv  /orabin/hrtst/test$  ls -l /orabin/hrtst/test/ total 8 -rwxrwxrwx 1 xxhcmuser dba 246 feb 29 15:38 control.ctl -rwxrwxrwx 1 xxhcmuser dba 259 feb 29 15:37 lookup_code.csv -rwxrwxrwx 1 xxhcmuser dba   0 feb 25 15:08 lookup_code.log 

still not being able access log file.


Comments

  1. @admin

    When you visit for the first time in our clinic it means your first step to getting to know each other. In the time when we ask questions, we also try to listen to you and find the problem behind any problem and share with us anything you want us.


    Regards,
    Dentist In Wallingford, CT

    ReplyDelete

Post a Comment

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -