external table data with several locations pump

Hello
I'm on:
Oracle Database 10 g Enterprise Edition release 10.2.0.3.0 - 64biit
SunOS 5.10

I am trying to create a table of data pump external at the same time, with the location of the files previously created using pump.
This is the same as the example given in step 10-13 here:
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/et_dp_driver.htm#i1007502

But when I do this and select all the lines in the resulting table, I get the error:

ORA-29913: error in executing ODCIEXTTABLEFETCH legend
ORA-29400: data cartridge error
KUP-11011: file / < filepath > sys_tables.dmp is not valid for this load operation
ORA-06512: at "SYS." ORACLE_DATAPUMP', line 52

Can anyone help?
Here is a script of what I do...


create the directory message_archive_dir as ' / your/path/directory "; -change default directory
-chmod 777 your way

create the sys_tables table
external organization
(type ORACLE_DATAPUMP
THE DEFAULT DIRECTORY MESSAGE_ARCHIVE_DIR
LOCATION ("sys_tables.dmp"))
AS
Select object_id, object_type
of object
where owner = 'SYS '.
and object_type = 'TABLE '.
and rownum < 11;

create the table sys_indexes
external organization
(type ORACLE_DATAPUMP
THE DEFAULT DIRECTORY MESSAGE_ARCHIVE_DIR
LOCATION ("sys_indexes.dmp"))
AS
Select object_id, object_type
of object
where owner = 'SYS '.
and object_type = 'INDEX '.
and rownum < 11;

Select * from sys_tables
Union
Select * from sys_indexes;

-all 20 rows returned!
-now I combine the two dmp files in a single table...

create the table sys_objects
(
object_id NUMBER (14).
object_type VARCHAR2 (30)
)
EXTERNAL ORGANIZATION
(
TYPE ORACLE_DATAPUMP
THE DEFAULT DIRECTORY MESSAGE_ARCHIVE_DIR
LOCATION ('sys_indexes.dmp', 'sys_tables.dmp')
);

Select *.
of sys_objects
where rownum = 1;

-ok returnes one line (one of the dmp files work)
--Choose so all lines...

Select *.
of sys_objects;

ORA-29913: error in executing ODCIEXTTABLEFETCH legend
ORA-29400: data cartridge error
KUP-11011: file / < filepath > sys_tables.dmp is not valid for this load operation
ORA-06512: at "SYS." ORACLE_DATAPUMP', line 52

Can you see what I'm doing wrong?

Any help is greatly appreciated!
Thank you.

user9969845 wrote:
... Etc...

TYPE ORACLE_DATAPUMP
THE DEFAULT DIRECTORY MESSAGE_ARCHIVE_DIR
LOCATION ('sys_indexes.dmp', 'sys_tables.dmp')

Combination dump files

Files dump populated by different external tables can all be specified in the LOCATION of another external table clause. For example, data from different databases can be unloaded in separate files, and these files can then be included in an external table defined in a data warehouse. This provides an easy way to aggregate data from multiple sources. The only restriction is that the metadata for all external tables is exactly the same. This means that the game characters, time zone, schema name, table name, and column names must match. In addition, the columns must be defined in the same order, and their data types must be identical. This means that after you create the first external table you must remove it so that you can use the same table name for the second outer table. This ensures that the metadata in two dump files is the same and they can be used together to create the external table even.
8 2

Tags: Database

Similar Questions

  • External table - date for 20120802032917000 mask

    Hello

    I have a flat file (separator: tab), which has value of date as 20120802032917000 and I try to use the external table but not return all values below. What I am doing wrong.

    create the table xtern_bond_issue_data
    (
    issuelastUpdatedTime timestamp
    )
    external organization
    (
    the default directory xtern_bond_issue_data_dir
    access settings
    (
    records delimited by newline
    BadFile xtern_bond_issue_data_dir: 'xtern_bond_issue_data.bad'
    xtern_bond_issue_data_dir log file: 'xtern_bond_issue_data.log'
    jump 1
    fields terminated by '\t '.
    MISSING FIELD VALUES ARE NULL
    (
    issuelastUpdatedTime TANK (17) DATE_FORMAT TIMESTAMP MASK "YYYYMMDDHHMISSSSS".
    )
    )
    location ("AMER_20120702_BOND_ISSUE.dat")
    )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    ;

    Thank you
    Kalai

    Hi, Kalai,

    951307 wrote:
    ... issuelastUpdatedTime TANK (17) DATE_FORMAT TIMESTAMP MASK "YYYYMMDDHHMISSSSS".

    I think the desired format is

    YYYYMMDDHH24MISSFF
    

    JACKY is the number of seconds since the start of the day : 17000 seconds after the beginning of a day is 04:43:20. You probably wouldn't SSSSS if you also use HH (or HH24) or MI.
    If 17000 means 17,000 seconds since the start of the minute , then use SSFF. FF is for the fractional part of the second, no matter how many numbers that is.

  • Remove using external table data

    Hello

    Please could someone help me with the instruction to delete an entire row of referencing a person_id on an internal table where it corresponds to the id of the person on an external? I have the statement of updated date below, but also need to know how to remove (for the entire line, not just one column).

    Update XX_SQL_LOADER_TEST SLT
    Set emp_number = (SELECT emp_number from XX_EXTERNAL_TBL WHERE AND.) Person_id = HI. PERSON_id)
    , emp_name = (SELECT XX_EXTERNAL_TBL emp_name AND where AND.) Person_id = HI. PERSON_id)


    Thank you very much

    Steve

    Published by: SteveCPP on January 17, 2011 13:19

    Hello

    Here's one way:

    DELETE     xx_sql_loader_test
    WHERE     person_id     IN (
                        SELECT  person_id
                        FROM     xx_external_tbl
                      )
    ;
    

    It does not matter if xx_external_tbl is an external table.

  • No external table data

    I created an external table without errors, but when I try to only publish sql on the external table, there is no data. This is a subset of my data and the sql code used to create the external table. 10.2.0.2 on aix 5.2 64 bit.

    "BoxC_SL.lwl" | 106 | "" tzdpship52 "|" 1. 1. 01/28/2008 0:00:00 | 12/30/1899-09:56:03 |
    "Genshp_SL.lwl" | 106 | "" tzdpship52 "|" 1. 1. 01/28/2008 0:00:00 | 12/30/1899-09:56:04 |
    "TRLABS - 001B_600.lwl | 126. "\\Ibm1\tzsgprod63"|2|1|1/28/2008 0:00:00 | 12/30/1899-09:56:08 | "14928758" | " "89-5425, 04" | "
    "PalC_SL.lwl" | 106 | "" tzdpship52 "|" 1. 1. 01/28/2008 0:00:00 | 12/30/1899-09:56:11 |
    "SSCC_SL.lwl" | 106 | "" tzdpship52 "|" 1. 1. 01/28/2008 0:00:00 | 12/30/1899-09:56:12 |



    CREATE TABLE 'DMR '. "" LABEL ".
    (VARCHAR2 (100) "LABEL_NAME")
    NUMBER OF "PRINTER_NUM."
    VARCHAR2 (100) "PRINTER_NAME,"
    NUMBER OF "QUANTITY."
    NUMBER OF "DUPLICATES"
    DATE OF THE "PRINT_DATE."
    TIMESTAMP OF the 'PRINT_TIME. "
    'LOT' NUMBER,
    'PARTY' VARCHAR (25),
    'BATCH' VARCHAR (25),
    NUMBER OF "WONUM."
    'ITEM' VARCHAR (25)
    )
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY 'LISTENER_LOG_DIR '.
    ACCESS SETTINGS
    (records delimited by newline
    nobadfile
    nologfile
    nodiscardfile
    fields finished by "|" lrtrim
    missing field values are null
    (
    label_name,
    printer_num,
    printer_name,
    quantity,
    duplicates,
    print_date tank (8) date_format
    mask "MM/DD/YY", the date
    print_time (8) char date_format
    "HH24:MI:SS", of the date mask
    A lot
    part,
    batch,
    wonum,
    Agenda
    )
    )
    LOCATION
    ("AUDIT_001.txt"
    )
    )
    REJECT LIMIT UNLIMITED;



    Table created.

    sys@DMRDEV > select * from dmr.labels where rownum < 10;

    no selected line

    sys@DMRDEV > select count (*) in the dmr.labels;

    COUNT (*)
    ----------
    0

    Hello

    Here go us

    SQL > drop table t11.

    Deleted table.

    SQL >
    SQL > create table t11)
    VARCHAR2 (20) 2 'LABEL_NAME. "
    NUMBER 3 "PRINTER_NUM."
    VARCHAR2 (20) 4 "PRINTER_NAME,"
    NUMBER 5 "QTY."
    NUMBER 6 "DUPLICATES."
    Date of 7 "PRINT_DATE."
    8 'PRINT_TIME"STAMP
    NUMBER 9 "BATCH."
    VARCHAR (25) 10 'PART. "
    11 'BATCH' VARCHAR (25),
    NUMBER 12 "WONUM."
    13 'ITEM' VARCHAR (25)
    14)
    15 external organization)
    16 type oracle_loader
    Default directory 17 LISTENER_LOG_DIR
    (settings) access 18
    19 records delimited by 0 x, 0 'a '.
    ' 20 fields completed by "|" possibly provided by ' "'
    21 lack of field values are null
    (22)
    23 'LABEL_NAME. "
    24 "PRINTER_NUM."
    25 "PRINTER_NAME,"
    26 "QTY."
    27 "DUPLICATES."
    28 "PRINT_DATE" DATE MM/DD/YYYY"."
    Mask of timestamp DATE_FORMAT 29 "PRINT_TIME" tank (25) "HH24:MI:SS / MM/DD/YYYY."
    30 'BATCH '.
    31 'PART. "
    32 "BATCH."
    33 "WONUM."
    34 "ITEM.
    35)
    36)
    location 37 ("holidays.txt")
    38)
    39 reject limit unlimited;

    Table created.

    SQL >

    I displays the count only since you can select query * of the t11 and check... :-)

    SQL > select count (*) of t11.

    COUNT (*)
    ----------
    5

    "' Change the data as follows:-Remove * *"

    BoxC_SL.lwl|106|tzdpship52|1|1|01/5/2008|12/30/1899 09:56:03 |
    Genshp_SL. LWL | 106 | tzdpship52 | 1 | 1: 01/28/2008: 12/30/1899-09:56:04 |
    PalC_SL.lwl|106|tzdpship52|1|1|1/28/2008|12/30/1899 09:56:11 |
    SSCC_SL. LWL | 106 | tzdpship52 | 1 | 1 | 1/28/2008: 12/30/1899-09:56:12 |
    TRLAB-001B_600.LWL|126|\\Ibm1\tzsgprod63|2|1|1/28/2008|12/30/1899 09:56:08 | 14928758 | 89 - 5425.04 |

    Satisfied... Answer question correct... ;-)

    -Pounet

  • Slide several boxes and align itself with several locations and reveal the button

    Hi I am developing a game where the user chooses from a range of boxes to the left of the screen and can drag the 3 of them separately from 3 boxes to right ther. each box can be moved anywhere, and the order is not important. Once the 3 boxes are all full, I want a new button to appear. I finished a tutorial and I have a box works perfectly, but no matter what I try, I can't work with several boxes and locations. Here is a list of the instance names of film clips more my actionscript. I have attached a link to the flash file. Any help would be really appreciated. See you soon

    LINK

    http://www.sainters.NET/flash_preview/flash_test/Flash test_v6.fla.zip

    INSTANCE NAMES

    1 box = 'circle_mc.

    Box 2 = "circle_mc2."

    the two grey boxes are called = "targetCircle."

    ACTIONSCRIPT

    function dragSetup (clip, targ) {}
    clip.onPress = function() {}
    startDrag (this);
    this.beingDragged = true;
    };

    clip.onRelease = clip.onReleaseOutside = function () {}
    stopDrag();
    this.beingDragged = false;
    If (eval (this._droptarget) == targ) {}
    this.onTarget = true;
    _root. Targ.gotoAndStop (2);
    } else {}
    this.onTarget = false;
    _root. Targ.gotoAndStop (1);
    }
    };
    the following variables can store the start position of clips
    clip.myHomeX = clip._x;
    clip.myHomeY = clip._y;
    the variables below are going to store the position of end of clips
    clip.myFinalX = targ._x;
    clip.myFinalY = targ._y;
    clip.onEnterFrame = function() {}
    all these actions basically just to say "If the mouse is in place (in other words - the clip is not moved).
    then replace the MC to its original start (with a smooth movement) point ".
    If (! this.beingDragged & &! this.onTarget) {}
    This ._x-= (this._x-this.myHomeX)/5;
    This ._y-= (this._y-this.myHomeY)/5;
    If the circle is moved on any part of the target, it slides toward the center of the target
    } else if (! this.beingDragged & & this.onTarget) {}
    This ._x-= (this._x-this.myFinalX)/5;
    This ._y-= (this._y-this.myFinalY)/5;
    }
    };
    }

    dragSetup (circle_mc, targetCircle);

    You can probably do all the things you want to do.  I will make them for you well.  Trying to figure out how what I've provided works and then try to reason things for the changes you want to perform.

  • manipulating data with several readings

    Hi again,

    So I can read the tensions out of the terminals of NI USB-6009. Now was that reading analog1 and B be analog2 reading. I want to calculate something like 2 * A - B. I can't understand how to do this.

    I can read the values together and watch them on the same chart, but I can't deal with them. I enclose the file in which I read the values, put them through the filters and then display. But 'data' is only one variable, although there are two readings in it. I do not know how to separate one from the other.

    Thanks for the help.

    cartonn30gel,

    Playback DAQmx returns an array of waveforms, each element of the array represents a data channel.

    To split the individual channels out there, use primitive Table of indexes in the table Palette:

    You can then use regular numeric operations on the waveform, or if all you care is the actual reading, you can get the table of voltages measured waveform using the primitive to get elements of waveform in the waveform Palette.

    Thicker wires in LabVIEW represent arrays that contain several similar items.  The waveform data type is a convenient way to manage measurement data because it combines information in time (t0 and dt) with the data table measured (Y).

    I hope this helps.

    Simon

  • extract table data to different locations

    Hello

    I collected data in the format:

    Temp: 25 Freq: 136 100 99.993 2998,581 0
    Temp: 25 Freq: 136 125,89 125.991 2997,196-0.004
    Temp: 25 Freq: 136 158,48 158.007 - 2995, 1 0.01
    Temp: 25 Freq: 136 199,52 200.002 2991, 905 - 0.019
    Temp: 25 Freq: 155 100 100.005 3000,866 0.003
    Temp: 25 Freq: 155 125,89 126.003 3000,086 0.000
    Temp: 25 Freq: 155 158,48 157.985 2996, 133 - 0.011
    Temp: 25 Freq: 155 199,52 200.018 2992,644-0,021
    Temp: 25 Freq: 174 100 100 3001,405 0.000
    Temp: 25 Freq: 174 125,89 126.016 2997, 996 - 0.010
    Temp: 25 Freq: 174 158,48 158.013 2996,371-0.015
    Temp: 25 Freq: 174 199,52 199.983 2992, 315 - 0,026
    Temp :-30 Freq: 136 100 99.993 2998,581 0
    Temp :-30 Freq: 136 125,89 125.991 2997,196-0.004
    Temp :-30 Freq: 136 158,48 158.007 - 2995, 1 0.01
    Temp :-30 Freq: 136 199,52 200.002 2991, 905 - 0.019
    Temp :-30 Freq: 155 100 100.005 3000,866 0.003
    Temp :-30 Freq: 155 125,89 126.003 3000,086 0.000
    Temp :-30 Freq: 155 158,48 157.985 2996, 133 - 0.011
    Temp :-30 Freq: 155 199,52 200.018 2992,644-0,021
    Temp :-30 Freq: 174 100 100 3001,405 0.000
    Temp :-30 Freq: 174 125,89 126.016 2997, 996 - 0.010
    Temp :-30 Freq: 174 158,48 158.013 2996,371-0.015
    Temp :-30 Freq: 174 199,52 199.983 2992, 315 - 0,026
    Temp: + 70 Freq: 136 100 99.993 2998,581 0
    Temp: + 70 Freq: 136 125,89 125.991 2997,196-0.004
    Temp: + 70 Freq: 136 158,48 158.007 - 2995, 1 0.01
    Temp: + 70 Freq: 136 199,52 200.002 2991, 905 - 0.019
    Temp: + 70 Freq: 155 100 100.005 3000,866 0.003
    Temp: + 70 Freq: 155 125,89 126.003 3000,086 0.000
    Temp: + 70 Freq: 155 158,48 157.985 2996, 133 - 0.011
    Temp: + 70 Freq: 155 199,52 200.018 2992,644-0,021
    Temp: + 70 Freq: 174 100 100 3001,405 0.000
    Temp: + 70 Freq: 174 125,89 126.016 2997, 996 - 0.010
    Temp: + 70 Freq: 174 158,48 158.013 2996,371-0.015
    Temp: + 70 Freq: 174 199,52 199.983 2992, 315 - 0,026

    I am able to extract specific data and establish a curve for the different Freqs (see "extract file_for email.VI pivot table).  I would like to help in order now to a parcel with a fixed frequency but different time (therefore field will be 3 Graphics: 25-30, + 70 for the same word of freq 136).

    Thanks for your help and your time,

    hiNi.

    This code gross works for any number of temperatures and allow for different sizes of each table (say that you measured 3 points to 1, temp and 6 points to another).  I strongly doubt this operation is necessary, but this is how the code works.

    Just drop the and connect the tables correctly loaded from your text file to place the controls in table I used.  (or you can wire up and use it as a subvi).

  • Sort Table data with text fields (form)

    I googled and searched forms of days for a response, but were unsuccessful.

    The only wire that I found being a year old, I wanted to start a new instead of bumping an old

    Ref: http://forums.adobe.com/message/3000436

    I'm looking for a script to sort the data in a form that is based on user input.

    The shape is just a table with multiple rows and columns of 3-5 (according to the dept) it's used)

    Using the thread referenced above, I was able to get a static table to sort, but I need to have all the fields to be text fields and the users enters the data.

    The example of the other thread static:

    http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-3000436-35301/364-128/Untitled.png

    I'll use the same layout, just need to be a shape rather than static.

    If anyone can help or point me in the right direction, it would be great.

    Update #1:

    I find this page:http://cookbooks.adobe.com/post_Sorting_tables_in_dynamic_PDF-18993.html

    I'm the kind of work and it seems to be mostly what I look for, but how to deal with field empty?

    For example, the last three lines are empty (no data) the genre fails.

    Here is the code of the page, how can I change to fix the empty fields?

    ------------------------------------------------

    pass var = 0; column index

    var num = false; Is the numeric column

    var OrderAsc = true; Sort order

    function SortTable (tableRef, colIndex, isNumeric, CSA)

    {

    Try

    {

    Col = colIndex;

    NUM = isNumeric;

    OrderAsc = Asc;

    String variable that contains the data of the form as the XML string

    data var = tableRef.saveXML ('pretty');

    A XML variable contains the deserialized XML data

    xmlData var = xfa.datasets.createNode ("dataGroup", tableRef.name);

    xmlData.loadXML (data);

    Number of rows in the table

    var rowsCount = xmlData.nodes.length;

    Number of columns in the table

    passes of the var = xmlData.nodes.item (1).nodes.length;

    Two dimension table contains data of the complete table

    Master of var = new Array();

    Fill in the chart with XML data

    for (var i = 1; i < rowsCount; i ++)

    {

    Master [i-1] = new Array();

    for (var j = 0; j < passes; j ++)

    {

    Master [i-1] [j] = xmlData.nodes.item (i).nodes.item (j) .value;

    }

    }

    Sort the table 2D

    Master.sort (sortFunc);

    Re-fill the XML variable with data in table

    for (var i = 0; i < master.length; i ++)

    {

    for (var j = 0; j < master [i] .length; j ++)

    {

    xmlData.nodes.item(i+1).nodes.item (j) .value = master [i] [j];

    }

    }

    Change the data in the table and the back of the form

    var result = xmlData.saveXML ('pretty');

    tableRef.loadXML (result, 1, 1);

    XFA. Form.remerge ();

    } catch (e)

    {

    App.Alert (e)

    }

    }

    Customize the sort function to manage the 2D array and numeric columns

    function sortFunc (a, b)

    {

    var x = a [col];

    var y = b [col];

    Try

    {

    If (num)

    {

    x = parseInt (a [col]);

    y = parseInt (b [col]);

    }

    } catch (e) {}

    If (OrderAsc)

    {

    return x == y? 0: (x < y?-1: 1)

    }

    on the other

    {

    return x == y? 0: (x < y?-1: 1)

    }

    }

    Solution found!

  • Table update with several links

    I'm trying to update a field called Active in a table called MemberEnrollment. I have another table called EnrollmentHistory. If the MemberKey, EnrollmentDate, EndDate is using a join, I would update to be level on any Y. The below coding, that's what I have so far but I get an error message saying "einreihig subquery returns several lines." I'm sure I need an another subquery, but I don't know what to put. Thank you

    UPDATE MemberEnrollment
    The Active VALUE =
    (SELECT 'Y' AS active
    OF MemberEnrollment, EnrollmentHistory
    WHERE MemberEnrollment.MemberKey = EnrollmentHistory.MemberKey AND
    MemberEnrollment.EnrollmentDate = EnrollmentHistory.EnrollmentDate AND
    MemberEnrollment.EndDate = EnrollmentHistory.EndDate)

    Maybe this? Not tested.

    UPDATE   MemberEnrollment
       SET   Active       = 'Y'
     WHERE   EXISTS
                (SELECT   'x' Active
                   FROM    EnrollmentHistory -- You dont need to join MemberEnrollment again.
                  WHERE       MemberEnrollment.MemberKey = EnrollmentHistory.MemberKey
                          AND MemberEnrollment.EnrollmentDate = EnrollmentHistory.EnrollmentDate
                          AND MemberEnrollment.EndDate = EnrollmentHistory.EndDate)
     
    

    G.

  • Pass reference in table 2D with several lines-&gt; Subvi - sees only 1 rank of the number of lines

    What I am doing wrong?

    Of course it is. The Value property. That feed into the size of the array. The output of the size of the table is a table - one element for each dimension of your table.

  • Facing many problems on the creation of directory and an external Table

    Question:

    The strange thing is that if you look at the question 10-b page 3-41, it says:
    (page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")

    Merge the data into the EMP_DATA table that is created in the lab last in the data in the table emp_hist. assume
    EMP_DATA external table data corresponds to the EMP_HIST of table, update the email column
    table EMP_HIST to match the row in the EMP_DATA table. If a row in the EMP_DATA table is not
    match, to be inserted in the tables of EMP_HIST lines are considered as corresponding whenever his first and
    family name are the same.

    For me, this issue is built wrong. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
    Thirdly, this question asks us to merge into the table EMP_HIST while EMP_DATA is empty.

    Table EMP_HIST currently copied data from the employees table. Structure EMP_HIST:

    FIRST NAME VARCHAR2 (20)
    LAST_NAME NOT NULL VARCHAR2 (25)
    EMAIL NOT NULL VARCHAR2 (45)

    Anway, I did the merger as follows:

    merge into e emp_hist
    with the help of emp_data d
    on (e.first_name = d.first_name)
    When matched then
    game update
    Select = d.last_name,
    e.email = d.email
    When not matched then
    Insert values (d.first_name, d.last_name, d.email);

    I get this error:

    Error report:
    SQL error: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
    ORA-29400: data cartridge error
    KUP-04040: file emp.dat in EMP_DIR not found
    ORA-06512: at "SYS." ORACLE_LOADER', line 19
    29913 00000 - "error in the execution of %s legend".
    * Cause: The execution of the specified legend caused an error.
    * Action: Examine the error messages take appropriate measures.

    On the other hand, I said I'm going to try this:

    merge into emp_data d
    using e emp_hist
    on (d.first_name = e.first_name)
    When matched then
    game update
    d.last_name = select,
    d.email = e.email
    When not matched then
    Insert values (e.first_name, select, e.email);

    I get this error because the external table is final once its creation is as far as I know:

    Error report:
    SQL error: ORA-30657: operation not supported on external organized table
    30657.0000 - "operation not supported on external-organized table".
    * Cause: User attempted on the operation on an external table which is
    not supported.
    * Action: Don't do that!

    **********************************

    I don't know what to do. I did my best, please help.

    Published by: user11164565 on July 27, 2009 02:43

    user11164565 wrote:
    NOTE: I did my best, I've done everything I can do, but the problem persists. Help, please

    I'll mention all the steps that I made it clear...

    I gave scott the following grants:

    grant create any directory Scott;
    grant read on the directory emp_dir to scott;

    -----------------------

    1. create a directory and its been created successfully:

    create or replace directory emp_dir
    like 'F:\emp_dir ';

    Then I made just to make sure that my directory is recognized the following:

    SELECT *.
    OF dba_directories;

    I found the drive among the results...

    OWNER NOM_REPERTOIRE
    ------------------------------ ------------------------------
    DIRECTORY_PATH
    --------------------------------------------------------------------------------
    SYS EMP_DIR
    F:\emp_dir

    SYS SUBDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\/2002/Sep

    SYS XMLDIR
    D:\oracle\product\10.2.0\db_1\demo\schema\order_entry\

    ----------------------
    2. I created an external table emp_data (the script is given by the text book): successfully done

    drop table emp_data;

    CREATE TABLE emp_data
    (first name VARCHAR2 (20))
    , last_name VARCHAR2 (20)
    , email VARCHAR2 (30)
    )
    EXTERNAL ORGANIZATION
    (
    TYPE oracle_loader
    Emp_dir default DIRECTORY
    ACCESS SETTINGS
    (
    RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
    NOBADFILE
    NOLOGFILE
    FIELDS
    (first name POSITION (01:20) TANK)


    , last_name POSITION (22:41) TANK
    CHAR POSITION (43:72) by email)
    )
    LOCATION ('emp.dat'));

    --------------------------------

    3. I went to drive F:\ to see if emp_dir file exist or not! I did not see it. I checked the files hidden, nothing. Anyway, I ignored and did step 4.

    "Anyway, I ignored him... "

    and so the rest of your problems. I do not see in the steps you told that acually you created a directory ("folder") named "\emp_dir" on your f: drive. Anything that you create the database will actually create this directory on the operating system. Uttering a directory in Oracle, uttering an external table in Oracle, don't create pointers to Oracle objects will assume just actually exists.

  • Create the external data with dates table

    I have a CSV file that looks a little like this:

    abcuser,12345,5/12/2012,5,250.55
    xyzuser, 67890, 5/1/2012,1,50
    ghjuser, 52523, 1 January 00

    When I create the external table, then question him, I get an error of date:

    CREATE TABLE xtern_ipay
    (
    username VARCHAR2 (50).
    acctNbr NUMBER 20 (0)
    datelastused DATE,
    number_rtxns NUMBER (12: 0).
    amtused NUMBER (12: 0)
    )
    external organization (TYPE oracle_loader DEFAULT directory "XTERN_DATA_DIR"
    (Settings) ACCESS
    records delimited BY newline completed fields BY ',')
    release location ("SubscriberStatistics.csv") limit) UNLIMITED;

    The error I see in the newspaper of rejection:
    For table XTERN_IPAY field definitions
    Record format DELIMITED BY newline
    Data in file have same "endianness" as platform
    Rows with all null fields are accepted

    Fields of the Data Source:

    USERID CHAR (255)
    Completed by «,»
    Trim whitespace same as SQL Loader
    ACCTNBR CHAR (255)
    Completed by «,»
    Trim whitespace same as SQL Loader
    DATELASTUSED CHAR (255)
    Completed by «,»
    Trim whitespace same as SQL Loader
    NUMBER_RTXNS CHAR (255)
    Completed by «,»
    Trim whitespace same as SQL Loader
    AMTUSED CHAR (255)
    Completed by «,»
    Trim whitespace same as SQL Loader
    column in treatment of DATELASTUSED error in the row 1 for the g:\externaltables\SubscriberStatistics.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of DATELASTUSED error in line 2 to the g:\externaltables\SubscriberStatistics.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of DATELASTUSED error on line 3 for the g:\externaltables\SubscriberStatistics.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital


    Any ideas on that? I know I must tell oracle the date on the external file format, but I can't understand it.
  • SQL * Loader vs external tables to a single file with several types of records (intercalated)

    I have a file of sample data (we will have the a 'true' at a later date and put in day after that) which includes a header, footer, and 5 types of records, that have different columns and lengths, noticed by the first two characters. The different types of records are not all together. On the contrary, some (in particular, two of these types in this example) are intertwined. I am currently working on a SQL * Loader configuration file when it was suggested that I use external tables. I know very little of either, then I would ask what is the best to use.

    Scott@orcl12c > host type test.dat

    header line

    AB, 123, efg

    CD, hij, 456

    Scott@orcl12c > type host test.ctl

    options (Skip = 1)

    load data

    in the ab table truncate where table_name = 'ab'

    fields ended by ',' trailing nullcols

    (table_name filler position (1), col1, col2)

    in the cd table add where table_name = 'cd'

    fields ended by ',' trailing nullcols

    (table_name filler position (1), col3, col4)

    Scott@orcl12c > create table ab

    2 (col1 number,

    3 col2 varchar2 (8))

    4.

    Table created.

    Scott@orcl12c > insert into ab values (1, 'old data')

    2.

    1 line of creation.

    Scott@orcl12c > create table cd

    2 (col3 varchar2 (8))

    3 col4 number)

    4.

    Table created.

    Scott@orcl12c > insert into cd values ("old data", 1).

    2.

    1 line of creation.

    Scott@orcl12c > commit

    2.

    Validation complete.

    Scott@orcl12c > host sqlldr scott/tiger control = test.ctl data = test.dat log = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Thu Mar 27 13:11:47 2014

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 2

    Table AB:

    1 row loaded successfully.

    Table D:

    1 row loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > select * AB

    2.

    COL1 COL2

    ---------- --------

    EFG 123

    1 selected line.

    Scott@orcl12c > select * from cd

    2.

    COL3 COL4

    -------- ----------

    old data 1

    hij 456

    2 selected lines.

  • Several flat_files through the external table with only the common columns of loading

    Hi, I have 50 flat files and each of them have some columns (fields) common and I need to load only the fields that are common to an external Table. Is any chance to do it with education unique external table. Or I need to load all flat_files at separate tables and then with the ETG and UNION load them only one table.

    If the page size for all the files are different, I think that your only option would be to define different external tables and create a view that joins all the.

    HTH
    Srini

  • Download data from an external table with a where clause clause

    Hello

    How can I insert data in an external table into a table already created in the database where person_id = person - _id on the external table?

    Example:

    External table
    XX_EXTERNAL_TBL (Person_id, emp_number, emp_name)
    Internal table
    XX_SQL_LOADER_TEST (Person_id, emp_number, emp_name)
    ID of the person already exists on the inner table (want only the last column to import where the ID of the person are the same)


    Thank you

    You talk of * 'Update' * (Fanfarrias y tambores)

    Update XX_SQL_LOADER_TEST SLT
    Set emp_number = (SELECT emp_number from XX_EXTERNAL_TBL WHERE AND.) Person_id = HI. PERSON_id)
    , emp_name = (SELECT XX_EXTERNAL_TBL emp_name AND where AND.) Person_id = HI. PERSON_id)

Maybe you are looking for