KUP-04063: unable to open log file.. (while selecting from External table)

Hi
I am trying to craete an external table and then select the data from the table. However I am getting error while trying to select the data from external table.
SQL>CREATE OR REPLACE DIRECTORY my_dir as 'C:\arun';
Directory created.
SQL>GRANT ALL ON DIRECTORY my_dir TO PUBLIC;
Grant succeeded.
SQL>DROP TABLE proj_checklists_external;
Table dropped.
SQL>CREATE TABLE proj_checklists_external
2 ( checklist_submission_id NUMBER
3 ,Lead_reviewer_name VARCHAR2(30)
4 ,Lead_reviewer_corp_id VARCHAR2(10)
5 ,creation_date VARCHAR2(10)
6 ,submitted_dater VARCHAR2(10)
7 ,approved_date VARCHAR2(10)
8 ,status VARCHAR2(50)
9 )
10 ORGANIZATION EXTERNAL
11 (
12 TYPE ORACLE_LOADER
13 DEFAULT DIRECTORY my_dir
14 ACCESS PARAMETERS
15 (
16 RECORDS DELIMITED BY NEWLINE
17 FIELDS TERMINATED BY ','
18 )
19 LOCATION ('Book1.txt')
20 )
21 PARALLEL 5
22 REJECT LIMIT 200;
Table created.
SQL>SELECT * FROM proj_checklists_external;
SELECT * FROM proj_checklists_external
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file PROJ_CHECKLISTS_EXTERNAL_28484.log
OS error No such file or directory
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
I craeted an file PROJ_CHECKLISTS_EXTERNAL_28484.log also in C:\arun and then tried to select but still got same error.
Any idea how to overcome this error.
Regards
Arun

here you go:
SQL> CREATE OR REPLACE DIRECTORY GRATIS_LOAD as 'D:\AdvSourceData\Membership\';
Directory created
SQL> GRANT ALL ON DIRECTORY GRATIS_LOAD to ADVROLE;
Grant succeeded
SQL>
SQL> DROP TABLE MEMB_BATCH_LOAD_ID;
Table dropped
SQL> CREATE TABLE MEMB_BATCH_LOAD_ID (
2 ID_NUMBER VARCHAR2(10),
3 STATUS CHAR(1)
4 )
5 ORGANIZATION EXTERNAL
6 ( TYPE ORACLE_LOADER
7 DEFAULT DIRECTORY GRATIS_LOAD
8 ACCESS PARAMETERS
9 ( records delimited by NEWLINE
10 fields (
11 ID_NUMBER POSITION (1:10) CHAR,
12 STATUS POSITION (11:1) CHAR
13 )
14 )
15 LOCATION
16 ( 'GRATISID.TXT'
17 )
18 );
Table created
SQL> select * from memb_batch_load_id;
select * from memb_batch_load_id
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file MEMB_BATCH_LOAD_ID_1388_5552.log
OS error The system cannot find the file specified.
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1
SQL>

Similar Messages

  • Data Mismatch while selecting from External Table

    Hi I am not able create an external table,I am trying to create and test table and able to create but when i selecting the data it showing data mismatch.I tried for an test data but it returned error.I want to load from an excel file saved as test.csv
    CREATE TABLE Per_ext
    CITY VARCHAR2(30),
    STATE VARCHAR2(20),
    ZIP VARCHAR2(10),
    COUNTRY VARCHAR2(30)
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY dataload
    ACCESS PARAMETERS
    MISSING FIELD VALUES ARE NULL
    LOCATION ('test.csv')
    REJECT LIMIT UNLIMITED;
    test.csv file contents
    city ----------     state---------Zip------------country
    Bombay-----     MH------------34324-------india
    london-------London------1321---------UK
    Pune---------MH------------3224---------india
    Banglore----     Karnataka---11313-------india
    rgds
    soumya

    Hi Justin
    I am getting following error when i trying from toad
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-00554: error encountered while parsing access parameters
    KUP-01005: syntax error: found "comma": expecting one of: "badfile, byteordermark, characterset, column, data, delimited, discardfile, exit, fields, fixed, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, processing, readsize, string, skip, territory, variable"
    KUP-01007: at line 1 column 29
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    rgds
    soumya

  • XML parsing failed while select from my table with criteria

    While select from my table an error displayed as
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00601: Invalid token in: '/<XML Path>/row[c24="SA0010001"]'
    select * from category
    where existsNode(xmlrecord, '/<XML Path>/row[c24="SA0010001"]') = 1;
    xmlrecord
    <row id="52843" xml:space="preserve">
    <c1>Refund of Domestic Payment Order</c1>
    <c2>Ref Dom Py Or</c2>
    <c3>PLsql</c3>
    <c20>1</c20>
    <c21>62_TAABSINPUTT___OFS_TAABS</c21>
    <c22>0803181605</c22>
    <c23>62_TAABSINPUTT_OFS_TAABS</c23>
    <c24>SA0010001</c24>
    <c25>1</c25>
    </row>

    Hi,
    Did you copy that sample from some demo?
    The part "<XML Path>" is meant to be replaced by a real XPath fragment.
    Here, I think you may just want this :
    select * from category
    where existsNode(xmlrecord, '/row[c24="SA0010001"]') = 1;Edit : OK, just seen your previous post and the example given
    Edited by: odie_63 on 6 juil. 2010 21:16

  • How to open log file while program is running?

    Hi,
    I am using log4j to generate a log file. The application connects to a remote server and does some updates on a database. Is it possible to view the log file while the program is running? When I click on the log file to open it, I get a message "the document is in use by another application and cannot be accessed".
    Looking for ideas to get around this problem.
    Thanks and Regards,
    Harsha Hegde

    tail.exe -f
    Tail is a Unix program but if you search google you can find a port for Windows. It will show the contents of the file in a cmd prompt and will update as new lines are being added to the file so you can see the most up-to-date version as log4j is writing to it.

  • Impdp unable to open log file

    I have installed Oracle10Rel2 on a Windows 2000 server. I managed to get an
    expdp from a machine but trying to do import I keep getting an error about writing
    a log file. What else do I need to set? I even tried setting my directory value to
    the location I have UTL_FILE_DIR set to for other processes. Even with Nologfile
    specified it says it cannot write it.
    Set Data_pump_dir=d:\log_err
    expdp jlim/jlimdba01@emtsdb3 dumpfile=export_initial.dmp schemas=MYUSER
    impdp jlim/jlimdba01@msgsup2 DUMPFILE=export_initial.dmp NOLOGFILE
    Ora-39002: invalid operation
    Ora-29070: Unable to open the log file.
    Ora-39-087: directory name d:\log_err is invalid.
    I am in the directory even.
    I am trying to determine if Expdp only schema=Myuser gets everything I used to
    get when I exported the User in Oracle 9i including grants, procedures, packages,
    and things created by the owner.

    It seems crazy that I have to login as SYS to create the directory and grant it to a
    DBA user so the DBA can import the schema vs just importing like we have in the
    past.
    My user could not grant to himself for the Directory he created so:
    Logged in as SYS, dropped the Directory I created as my DBA User, recreated it
    at SYS, and tried to do grants but it says it doesn't exist. I also checked that my
    directory and the udump and dpdump directories have Read/Write to everyone.
    SQL> drop directory DUMPHERE;
    Directory dropped.
    SQL> create directory DUMPHERE as 'd:\log_err';
    Directory created.
    SQL> grant read,write on DUMPHERE to jlim;
    grant read,write on DUMPHERE to jlim
    ERROR at line 1:
    ORA-00942: table or view does not exist
    How come I cannot find a full set of syntax and information on Datapump
    anywhere either? This is holding us up to setup a new DB instance in 10g.

  • DATE fields and LOG files  in context with external tables

    I am facing two problems when dealing with the external tables feature in Oracle 9i.
    I created an External Table with some fileds with the DATE data type . There were no issues during the creation part. But when i query the table, the DATE fields are not properly selected though the data is there in the files. Is there any ideas to deal with this ?
    My next question is regarding the log files. The contents in the log file seems to be growing when querying the external tables. Is there a way to control this behaviour?
    Suggestions / Advices on the above two issues are welcome.
    Thanks
    Lakshminarayanan

    Hi
    If you have date datatypes than:
    select
    greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
    from TABCASER, TABCASER1, EVCASERS
    where ...-- join and other conditions
    1. greatest is good enough
    2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
    3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
    6. to format the date for display use to_char function with format modell as in the to_date function.
    Ott Karesz
    http://www.trendo-kft.hu

  • Dulpicate entry occur while select from edidc table

    HI ,
    internal table I_edidc declare as unique key DOC_NUM while select the value from the edidc table on basis of status ,msgtyp,direct ,sndprt.sndprn ,updat, updtim,cretim,credat giving the duplicate entry dump some time .ANY suggestion

    Hi Prakash ,
    thanks for your replying internal table is refreshed i checked it during the debugging time and this issue not occurs frequently .I think the reason is when the idoc status changes from 51 to 53 it is picking up 51 entry and the same time it status changes to 53 it again tries to pick the same idoc with status 53 .Please correct me if i am wrong and please give your valuable suggestion .Below is the code
    SELECT docnum status direct rcvpor rcvprt rcvprn mescod mesfct sndpor
                     sndprt sndprn credat cretim mestyp idoctp cimtyp upddat updtim
                     FROM edidc INTO TABLE i_edidc
                          WHERE status IN s_status
                          AND   mestyp EQ g_msgtyp
                          AND   direct EQ l_direct
                          AND   sndprt IN s_sndprt
                          AND   sndprn IN s_sndprn
                          AND   credat IN s_credat
                          AND   cretim IN s_cretim
                          AND   upddat IN s_upddat
                          AND   updtim IN s_updtim.

  • Unable to open log file on startup

    When my Windows 2000 pentium PC has reloaded,either 8.1.6 Enterpise edition or workgroup edition remain in 'starting' state with the following errors open failed for memebers of log group1 of thread 1 'c:\oracle\oradata\....\redo03.log'. I have checked that this is a present and writable file.

    What is the exact message? Try copying it to your computers system drive and opening it? What about in the Autosave vault? Look in there for the last backup, try opening that.
    Shane

  • Unable to open raw files in lightroom from my nikon d5300

    I have recently bought a nikon d5300 camera and cannot open any raw files using elements 12 or lightroom 5.3 which are both recommended for the new camera and its raw formats?

    What exactly do you mean, please describe in detail, "cannot open any raw files". What steps are you trying in Lightroom, and what happens when you try those steps in Lightroom, and what is the error message.
    Did you use any Nikon software at any time in the handling of these photos, before you try to open them in Photoshop Elements, or import them into Lightroom?

  • Unable to open .xslm file in Excel from Document Library

    When selecting edit on an Excel Macro file opens Excel Web App, with the warning 'Data validation', 'VBA Project', ... click Cancel and open it in Excel, but nothing in SharePoint will allow document to open in Excel.
    Using the ribbon 'Edit Document' result in an error:  We're sorry, we couldn't find a program to this document.
    Ideas?
    P.S. 
    Open Documents in Client Applications by Default is Active.

    Let's eliminate the obvious:
    Does the computer you are accessing the site with have Excel 2010 or 2013 installed?
    Are you accessing the site using one of the
    supported browsers: IE 8-11 (32-bit), Chrome (Latest), Firefox (Latest), Safari (Latest)?
    Can you open other Office files (.xlsx, .docx, etc)?
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • Format data in the flat file while downloading from internal table

    Just I used 'GUI_DOWNLOAD' with WRITE_FIELD_SEPARATOR = 'X'. In my case one of the field contains large quantity. Bcoz of this value , it pushes the remaining filed position values in that particular row. The fields in the internal table refers the stadard data elements.I need the field values should be under corresponding field names.Can anyone help me?

    Hi,
    declare another internal table in the format in which you want to download .
    say itab_text.
    itab is your orginal internal table .
    than loop at itab.
    MOVE-CORRESPONDING Itab TO Itab_text.
    APPEND ITab_text.
    endloop.
    now pass the itab_text to gui_download.
    Thanks

  • Error while selecting  from nested table in PL/SQL block ............

    SQL> create type string_table is table of varchar(100);
    2 /
    Type created.
    declare
    v_names string_table := string_table();
    begin
    v_names.EXTEND(3);
    v_names(1) := 'name1';
    v_names(2) := 'name2';
    v_names(3) := 'name3';
    dbms_output.put_line(v_names(1));
    dbms_output.put_line(v_names(2));
    dbms_output.put_line(v_names(3));
    dbms_output.put_line(v_names.COUNT());
    select * from table(v_names);
    end;
    select * from table(v_names);
    ERROR at line 12:
    ORA-06550: line 12, column 7:
    PLS-00428: an INTO clause is expected in this SELECT statement

    select * from table(v_names);
    I guess ,here you were trying to put the content of the NT into another NT, or just trying to print it.
    But, I don't think INTO Clause is mandatory here.
    Please check your modified code (w/o INTO) and the output :
    DECLARE
       TYPE string_table IS TABLE OF VARCHAR (100);
       v_names   string_table := string_table ();
       v_test    string_table := string_table ();
    BEGIN
       v_names.EXTEND (3);
       v_names (1) := 'name1';
       v_names (2) := 'name2';
       v_names (3) := 'name3';
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (1));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (2));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names (3));
       DBMS_OUTPUT.put_line ('Old collection - '||v_names.COUNT ());
       DBMS_OUTPUT.put_line (CHR(10));
       /* SELECT * FROM TABLE (v_names); */
       v_test := v_names;
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (1));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (2));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test (3));
       DBMS_OUTPUT.put_line ('New collection -- '||v_test.COUNT ());
       DBMS_OUTPUT.put_line (CHR(10));
       /* Printing using FOR LOOP */
       FOR i IN v_test.FIRST..v_test.LAST
       LOOP
         DBMS_OUTPUT.put_line ('In FOR Loop --- '||v_test (i));
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.put_line ('Error ' ||SQLERRM|| DBMS_UTILITY.format_error_backtrace);
    END;gives o/p :
    Old collection - name1
    Old collection - name2
    Old collection - name3
    Old collection - 3
    New collection -- name1
    New collection -- name2
    New collection -- name3
    New collection -- 3
    In FOR Loop --- name1
    In FOR Loop --- name2
    In FOR Loop --- name3Refer this link -- http://docs.oracle.com/cd/E11882_01/appdev.112/e17126/tuning.htm#CIHGGBGF
    Edited by: ranit B on Dec 26, 2012 2:29 PM
    -- code modified
    Edited by: ranit B on Dec 26, 2012 2:45 PM
    -- code 'again' updated -- FOR LOOP added

  • Error while querying the external tables in 9i

    i am working on a project on Oracle 9iR2 on Linux AS 3.0, i am in urgent need to port my data in text files for using in the DB
    I have created an external table using the following script. While executing a query it gives the following error. Pls Hlp
    create table ap_info_ex
         (ser_no number(7),
         no_of_sps number(1),
         hpy_liq_mm number(2),
         rmp_rnk_cd number(1),
         ir number(3),
         dps_flg varchar2(1))
    organization external
    (type oracle_loader
         default directory aps_jul
         access parameters (records delimited by newline
                        fields terminated by ","
                        (sno char,
                        no_sps char,
                        hpy_mm char,
                        rmp_rnk char,
                        ir char,
                        dpsflg char))
    location ('info.txt'));
    Table has been created successfully
    but when i execute a query say
    select * from ap_info_ex;
    THIS IS THE ERROR MESSAGE I AM GETTING
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file AP_INFO_EX_6151.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 14
    ORA-06512: at line 1
    hope you would help me. i am greateful for that.

    Arun,
    Here are the things you could do.
    1. You may want to specify a logfile in your access parameters using the command 'logfile'.
    For example,
    logfile 'info.log'. You could create the file in advance and provide appropriate permissions to the operating system user(In unix, I use the commands 'touch' and 'chmod').
    2. You could specify the command
    'NOLOGFILE' in your access parameters.
    3. Provide permissions for the user to create files in the folder associated with the directory object 'aps_jul'.

  • Hi, i am getting an error while using the External Table.

    Hi,
    I am getting the below error. External table has been created successfully and when I read the data from the external table i get the below error. Can anyone give solution of this error.
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file EXT_ZPP0A871_6738.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    Thanks,
    Himanshu

    KUP-04063: unable to open log file EXT_ZPP0A871_6738.log
    OS error Permission deniedThe error seems quite clear... what's you OS and Oracle version ?

  • Getting the error LOG file opened at 01/29/07 18:13:12 while selecting from

    I am getting following error in log file while selecting from a external table
    LOG file opened at 01/29/07 18:13:12
    KUP-04040: file test.csv in UTL not found. I am follwoing the following steps:
    connect as sys user :
    CREATE OR REPLACE DIRECTORY UTL as 'D:\oracle\product\10.1.0';
    GRANT READ,write ON DIRECTORY UTL TO user1;
    connect as user1
    drop table test;
    create table test (EQP_N_EQUIPMETID_PK number(10) ,
    EQPNAME varchar2(100),
    EQPDESCR varchar2(1000),
    COSSEC varchar2(10),
    ETSCES varchar2(10),
    CATPARTNO varchar(1000),
    EQUIPMETID_FK number(10),
    EQPTYPEMASTERID_FK number(10),
    SECTIONID_FK number(10),
    MEAUNITID_FK number(10),
    CREATEDBY number(10),
    MODIFIEDBY number(10),
    LASTUPDATED varchar2(20),
    SHUFFLING varchar2(50))
    ORGANIZATION EXTERNAL
    (TYPE oracle_loader
    DEFAULT DIRECTORY utl
    ACCESS PARAMETERS (FIELDS TERMINATED BY ',')
    LOCATION ('test.csv'))
    REJECT LIMIT UNLIMITED
    On issuing select count(*) from test gives following error:
    SQL> select count(*) from test;
    select count(*) from test
    ERROR at line 1:
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file test.csv in UTL not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    ORA-06512: at line 1
    All these steps I have tried on the oracle server as well as on the client m/c.
    Is there any step that I am missing out???

    hi,
    SQL> edit c:\oracle\product\10.1.0\test.csv
    SQL> conn sys as sysdba
    Enter password:
    Connected.
    SQL> create or replace directory UTL  as 'c:\oracle\product\10.1.0';
    Directory created.
    SQL> grant read,write on directory UTL to scott;
    Grant succeeded.
    SQL> create table scott.test ( no number(10),
      2                           name varchar2(20))
      3  organization external
      4                   ( type oracle_loader
      5                     default directory UTL
      6                     access parameters
                           ( fields terminated by ',')
      7  location
                           ('test.csv'))
      8  reject limit unlimited;
    Table created.
    SQL> select count(*) from scott.test;
      COUNT(*)
             1
    SQL> select * from scott.test;
            NO NAME
             1 test
    SQL>it is working for me. again check your file location.
    regards
    Taj
    Message was edited by:
    M. Taj

Maybe you are looking for

  • Why won't Painter erase a keyword on only ONE image at a time?

    This has been driving me crazy - I'd like to delete a keyword on select images. I have hundreds of keywords and many are nested, so sometimes I screw up and need to erase selectively. I thought this problem was a bug, but it has persisted into LR 2.4

  • TS1292 Bought UK itunes card not working for Canadian set up account

    bought an itunes card while living in the UK and I have not been able to add it to my itunes account which is traced to Canada. Anyway around this? Thanks

  • Upgrade from SAP PI 7.0 to PI 7.3

    Hi Experts, We are planning to upgrade our PI system frm 7.0 to 7.3. I saw so many documents in SDN but I am confused frm where to start. Can anyone please provide the details like what are the things I need to consider before moving to PI 7.3 and wh

  • COBOL format into Oracle 11.1.0.6.0

    hi We encountered problem while writing into Oracle 11.1.0.6.0 database from Compressed values through COBOL. The problem occurred for some specific values. Actual Values: We encountered while writing amount +2000.000 (to +2007.000) COBOL format into

  • Is there a way to combine (merge) the contents of two directories in Finder?

    In Finder, under Favorites, I have two similar directories, one labeled Documents, and the other, with a house icon, labeled with my name.  I think I imported the latter from my old Windows computer when I was a Mac neophyte.  There are many duplicat