can bind us a single external table with multiple files in OWB 11 g?

Hello

I wanted to ask if it is possible to link an external table with several source files in same or different places? Or an external table must be bound to a single source file and one place.

Thanks in advance,
Ann.

Published by: Ann on October 8, 2010 09:38

Hello Ann,.

Can you please help me by telling me the steps to achieve this.

Right-click on the external table in the project tree, from the menu choose Configure.
then open right clock the node data files dialog Configuration properties and choose from the menu - Create
you will get a new record for the file - name of file data property

Also the link of the OWB user guide
http://download.Oracle.com/docs/CD/B28359_01/OWB.111/b31278/ref_def_flatfiles.htm#i1126304

Kind regards
Oleg

Tags: Business Intelligence

Similar Questions

  • External table with the preprocessor file to display the list of files

    Hello

    in my db 11.2.0.2 I would create an external table with script preprocessor to show me the list of files in a directory.

    Preprocessor banally:

    #! / bin/bash

    CD/MyDir

    / bin/ls-l *.txt 2 >/dev/null

    The problem is the file name that contains white space (style windows in a Linux env), for ex:

    -rw - r - r - 1 oracle oinstall 920 9 Jun 17:37 File1.txt

    -rw - r - r - 1 oracle oinstall 72316 Jun 10 10:37 file GC output1.txt

    -rw - r - r - 1 oracle oinstall 72316 Jun 10 10:40 GC file output2.txt

    So I can't use FIELDS DELIMITED BY "". ""

    FIXED size? No, because the file size change the length of the lines.

    I tried to use awk in my preprocessos script, but I have the same problem:


    / bin/ls-l *.txt 2 >/dev/null | / bin/awk ' {printf "%s %.2d %s %s\n", $6, $ 7, $ 8, $9} '.


    Any ideas?

    Hello

    I used java to retrieve information about the files.

  • external table with preprocessor option

    Hello!

    Can someone help me, I created an external table with option of preprocessor, but error encountered when querying the external table below.

    I use Version 2.1.0.63 oracle sql developer.
    I run the query on my client.
    My files are under the oracle database server (version is 11.1.0.6).
    Linux operating system.

    Error report:
    SQL error: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
    ORA-29400: data cartridge error
    KUP-00554: error occurred when parsing the access settings
    KUP-01005: syntax error: found 'distinctive sign': expected an a: "badfile, bigEndian, characterset, column, data, delimited, discardfile, disable_directory_link_check, fields, set, load, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, transformation, TailleLue, chain, skip, territory, variable.
    KUP-01008: the bad ID was: PREPROCESSOR
    KUP-01007: in column 10 on line 2
    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.

    Upgrades the database to 11.1.0.7 the only way to solve this problem?


    Thank you!
    Dhekz

    You need version 11.2 database...

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10881/Chapter1.htm#NEWFTCH1
    http://download.Oracle.com/docs/CD/E11882_01/server.112/e10595/tables013.htm#ADMIN12898

  • Gears - error when you try to insert values into a table with multiple columns

    Hello

    I started playing with the gears and SQlLite today and I get an error when I try to insert values into a table with multiple columns.

    I have:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text, DeveloperAge int)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?, ?)', [devName, devAge]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I get the error:

    net.rim.device.api.database.DatabaseException; insert into developers values (?,?): SQL logic error or missing database.

    I use this reference: http://code.google.com/apis/gears/api_database.html

    Everything works if I have only one field as:

    var db = google.gears.factory.create('beta.database');
        db.open('developerSet');
        db.execute('create table if not exists Developers (DeveloperName text)');
    
        var devName = "Davy"
        var devAge = 32;
    
        try {
            db.execute('insert into Developers values (?)', [devName]);
            alert('success');
        }
        catch (e) {
            alert(e);
        }
    

    I use the plug-in Visual Studio 2.0 for 2008 that are running Windows XP SP and Simulator 2.13.0.56

    Thank you

    Davy

    Yes, a SQLite database will persist between battery pulls.  The database is registered either to internal MEM or removable media (not the device memory), depending on which is available on your device.

    In general, its not considered a best practice to remove your table as soon as it is empty and re - create it again when you want to add data.  This adds extra overhead fresh for the final, delete and insert first for a given table.  Instead, define and finalize your drawing before you create your table.  Once created, review the static schema.

    That being said, for development purposes, it may be easier to provide an easy way to drop your tables while you develop your schema.

    See you soon,.

    Adam

  • Error when calling a procedure using an external table with c#.

    Hello

    I'm developing an application scheduler with Visual Studio 2010 (c#) to start my PL/SQL procedures.

    Everything works fine with each procedure, but one who reads the contents of an external table.

    Strange thing is when I start the same procedure with Toad, I have no problem, but when I run with my c# code:

    OracleCommand cmdMET = new OracleCommand();

    cmdMET.CommandText = 'STG_AE. M_MET_S_EXT_DEFECT ';

    cmdMET.CommandType = CommandType.StoredProcedure;

    con = cmdMET.Connection;

    OracleParameter retvalMET = new OracleParameter ("value", OracleDbType.Varchar2, 50);

    retvalMET.Direction = ParameterDirection.ReturnValue;

    cmdMET.Parameters.Add (retvalMET);

    cmdMET.ExecuteNonQuery ();

    I got this error:

    ORA-29913: error in executing ODCIEXTTABLEFETCH legend

    ORA-01722: invalid number

    ORA-06512: at "STG_AE. M_MET_S_EXT_DEFECT', line 8

    ORA-06512: at "STG_AE. MET_SRC', line 10

    ORA-06512: at "STG_AE. PUTS", line 14

    ORA-06512: at line 1

    I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!

    Thank you!

    I can't understand why it works when I run it with Toad and why I get this error when launching of it with c#... Any advice would be great!

    The error led to think that a string to number conversion fails all by accessing the external table.

    What is the format of numeric fields in the external file?

    I'm guessing that your session NLS_NUMERIC_CHARACTERS setting is defined differently whether you're in your application c# or toad.

    Could check you on both?

  • External table with the empty file

    Hello

    My version of db: Oracle 11 g

    I have a csv file that is empty.

    I created an external table the empty csv file.

    When I run:

    Select count (*) in the externaltblname;

    It returns 1.

    It should return 0 to the right.

    In the definition, I specified "SKIP 1.

    But he always returns 1.

    When I use this external table to load into a table target. It loads a single row with null values.

    How to solve this problem. Please advice.

    What works for me is the following (t_ext points to a blank csv):

    SQL > select count (field) in the t_ext;

    COUNT (FIELD)

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

    1

    1 selected line.

    SQL > select ascii (field) in the t_ext;

    ASCII (FIELD)

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

    13

    1 selected line.

    SQL > select count (replace (field, chr (13))) of t_ext;

    COUNT (REPLACE (FIELD, CHR (13)))

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

    0

    1 selected line.

  • Can take us backup of external table using expdp

    Can take us backup of the external table using expdp, please suggest any doc.

    Thanks in advance.

    Yes, this works, see this example:

    http://www.Oracle.databasecorner.com/resource, 3950,data-movement-with-external-table-and-datapump.aspx

    Werner

  • External table with mixed columns

    Hello everyone. We use Oracle 11R1. We have an external table pointing to a CSV with 7 columns inside. The file has always column 7 but the column order differs from time to time. Each column has a header that remains consistent. Is there a way to map the column names to the column header, s so that we did not change the definition of the external table every time a new file is available in?

    Thank you.

    Hello

    As John said, you must assign names of columns when the table is created.  I guess you could have a dynamic SQL solution that reads the header you mentioned, uses this information to write a CREATE table, drop the table, and then recreated with the new order of the columns.

    You may have a view that maps the 7 columns in your table of 7 columns in the view.  Which column gets the mapping to that may depend on the header.

  • Loading external Table with quotes

    I have a file with fields in the file are as TAB delimiter ~ TAB.

    Example as below:

    QM ~ CD ~ Exzm ~ BMW

    DM ~ BD ~ Exzm ~ BMW

    CREATE TABLE test

    (

    Col_1 VARCHAR2 (100),

    Col_2 VARCHAR2 (100),

    Col_3 VARCHAR2 (100),

    Col_4 VARCHAR2 (100)

    )

    EXTERNAL ORGANIZATION

    (TYPE ORACLE_LOADER

    DEFAULT DIRECTORY 'Test_Report '.

    ACCESS SETTINGS

    (records delimited by '\n'

    CHARACTERSET 'UTF8 '.

    fields terminated by '\t~\t '.

    missing field values are null

    )

    LOCATION ("test.asc")

    )

    REJECT LIMIT UNLIMITED;

    OUTPUT:

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

    Data loaded in DB, but col_4 data comes from the quotation as below

    col_4

    -------

    "BMW".

    "BMW".

    Note: Col1 - col3 data arrives correctly.

    2807064 wrote:

    A finding on my side.

    I found that the values of Col_4 after inserting into DB with "transport return character" (CHR (13)) at the end of each value as shown below when I copy paste the value in notepad ++ "»

    Example:

    ----------

    "BMW".

    "

    But if I see the file I saw that BMW.

    My question is, in this case the external table loading must fail right? Why is this it is to load data in DB?

    Do you have this file begin life on windows, and then are transferred to * nix to serve an external table?  If so, which explains a lot.  Windows is the standard record delimiter x '0d0a' (Chr (13) 10)  On * nix, it's just x '0A' (10.  When the process of loader is scanning for record delimiter he's just looking for the '0A' x and x'd 0' gets included in the data.

    Two solutions-

    1 - Make sure that the data file is transferred so that the Records delimiters are converted.  It's supposed to to happen with ascii ftp mode, but this week I saw several examples in the House of it does not.

    2. attach your table definition external to seek the delimiter of actual recording instead of the default value of the operating system. == RECORDS DELIMITED BY X '0D0A '.

  • External table with the field tab delimiter

    With the help of Oracle 11 g Release 2

    Here is my table create statement external:

    CREATE TABLE global.ext_a_attrib_cmt
    (   tag      VARCHAR2(255)
      , from$    VARCHAR2(255)
      , to$      VARCHAR2(255)
    )
       ORGANIZATION EXTERNAL
    (  TYPE ORACLE_LOADER
       DEFAULT DIRECTORY EXT_DATA_DIR
          ACCESS PARAMETERS
            (  RECORDS DELIMITED BY NEWLINE 
               SKIP 1
               BADFILE EXT_BAD_DIR:'a_attrib_cmt.bad'
               LOGFILE EXT_LOG_DIR:'a_attrib_cmt.log'
           --    FIELDS TERMINATED BY 0X'09' -- TAB delimited  
               FIELDS TERMINATED BY '\t'
               OPTIONALLY ENCLOSED BY "'"
               MISSING FIELD VALUES ARE NULL
               REJECT ROWS WITH ALL NULL FIELDS
            )
          LOCATION ('a_attrib_cmt.txt')
    )
       REJECT LIMIT UNLIMITED
       NOMONITORING
    /
    

    Here is the text file, a_attrib_cmt.txt:

    tagOfTO
    FrontSpringType_idCoilw/FRONT COIL SPRINGS
    FrontSpringType_idSheetthe FRONT/w suspension SPRINGS
    Aspiration_idNaturally aspiratedw/o TURBO
    Aspiration_idTurbochargedw/TURBO
    Aspiration_idSuperchargedw/COMPRESSOR
    SteeringType_idGridw/RACK and PINION STEERING
    SteeringType_idGearw/GEAR STEERING
    FuelDeliveryType_idCARBw/o FUEL INJ
    FuelDeliveryType_idFIw/FUEL INJ
    BedLength_id?" BED
    BodyNumDoors_id? DR
    BrakeSystem_idw / ? BRAKES
    FrontBrakeType_idw/FRONT? BRAKES

    PUBLIC has privileges to write to the directory EXT_DATA_DIR.

    Here is the error I get:

    Globall@ORA1 > select count (*) in the ext_a_attrib_cmt;

    Select count (*) in ext_a_attrib_cmt

    *

    ERROR on line 1:

    ORA-29913: error in executing ODCIEXTTABLEOPEN legend

    ORA-29400: data cartridge error

    KUP-00554: error occurred when parsing the access settings

    KUP-01005: syntax error: found 'minussign': expected an a: "badfile, bigEndian, characterset, column, data, delimited, discardfile,

    disable_directory_link_check, fields, fixed, charge, logfile, language, nodiscardfile, nobadfile, nologfile, date_cache, preprocessor, TailleLue, String, jump,

    territory, variable.

    KUP-01007: line 5, column 8

    Just get rid of the comment line. You cannot cave comments to create external table statement. SY.

  • 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)

  • problems with the external table to excel file

    Hi all
    I tried to use the statement below to create an external table.this table refers to an excel file.

    CREATE TABLE EMPFRAUD_TEST
    (
    SERIAL_NUM WHICH VARCHAR2 (10 BYTE),
    BRANCH_CODE VARCHAR2 (10 BYTE),
    BUSINESS_ADD VARCHAR2 (100 BYTE),
    VARCHAR2 (50 BYTE) REGION,
    DATE OF TRANSACTION_DATE_TIME,
    DATE OF REPORT_DATE_TIME,
    NO_OF_TRANS VARCHAR2 (4 BYTE),
    NUMBER OF AMOUNT,
    FRAUD_TYPE VARCHAR2 (25 BYTE),
    IMPACT_CATEGORY VARCHAR2 (10 BYTE)
    )
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER
    THE DEFAULT DIRECTORY EXT_EMP_TEST
    ACCESS SETTINGS
    (records delimited by newline
    BadFile "empfraud%a.bad."
    logfile "empfraud%a.log".
    fields completed by «,»
    surrounded of possibly ' "'lrtrim"
    missing field values are null
    )
    LOCATION ("fraud.csv")
    )
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    NOMONITORING;

    the problem is the following
    (1) when I run the query above the table will be created,
    but when I try to select in the table, an empty table display.
    When I checked the error log file, the following message was given.
    It was obtained from an oracle on unix Server database.

    'L_NUM '.
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 71 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    KUP-04021: field error for the field formatting ACCOUNT_KEY
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 79 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    KUP-04021: field formatting of error for the serial_num field which
    KUP-04036: second enclosing delimiter not found
    KUP-04101: Save 80 rejected in the /home/oracle/ext_folder_test/fraud.csv file
    column in treatment of TRANSACTION_DATE_TIME error in the row 1 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of TRANSACTION_DATE_TIME error in line 2 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error on line 3 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in row 8 for the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 9 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 10 by /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error at line 11 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01858: a non-digit character was found here where was waiting for a digital
    column in treatment of TRANSACTION_DATE_TIME error in line 12 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in the 13th for the /home/oracle/ext_folder_test/fraud.csv data file row
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in line 14 to the /home/oracle/ext_folder_test/fraud.csv data file
    ORA-01843: not one month valid
    column in treatment of TRANSACTION_DATE_TIME error in row 15 for the /home/oracle/ext_folder_test/fraud.csv data file
    "ORA-01843: not one month valid."


    pls I need help to fix it fast
    Thank you

    concerning
    Abdulrahman olayide arpin

    NB:
    After the conversion to .csv format.
    HERE IS THE DATA THAT I'M TRYING TO ACCESS THE EXCEL FILE

    REGIONS, Transaction_Date_Time, Report_Date_Time, Account_Key (account number), BUSINESS OFFICE, Number_of_Transactions, Total_Amount (N)
    Ojo 1,162,9 Street, South of Lagos, various, 17 January 00, CHECK
    2,0238, "10 cyril Road, Enugu", Orient, 21/06/2006,23/12/10,020968765357 09867653920174,1,20000000
    3,0127, '261, Roland Rd, Asaba', Midwest, 22/12/2010,23/12/10, 1,'00160030006149, 6000000
    4,0519, 'just road, Onitsha.
    ', East, 12/03/2010,14/02/11,0896002416575,1,5000000.
    5,0519, 'just road, Onitsha.
    ", Orient, 03/12/2010,14/02/11,06437890134356,1,5000000.
    6 149, rue olayide, South NGN01492501036 of Lagos, 10/02/2010,17/02/11, 1,6108950
    7,0066, wale, mi - west,18/02/2011,18/02/10,'05590020002924,1,55157977.53
    8.66, john, Mid-west, 6787500, 1,'00660680054177 11/03/2010,14/03/09
    Waheed 9,0273, Biem, N/central, Jan 09 Dec/2010,01/04/11, Nile, 1, 14146040
  • External table for the file delimmited by commas

    Im trying to create a table of externla for the comma-delimited file
    but it also has a scenario where the fields can have a comma between "" e.g.

    example of record
    1,one,first
    2,two,second
    3,three,third
    4,four,"4,fourth"
    Example of table
    create table ext_table_csv (
      i   Number,
      n   Varchar2(20),
      m   Varchar2(20)
    )
    organization external (
      type              oracle_loader
      default directory ext_dir
      access parameters (
        records delimited  by newline
        fields  terminated by ','
        missing field values are null
      )
      location ('file.csv')
    )
    reject limit unlimited;
    So when I question this record 4 table of Externla will be read as

    M/2
    i           n                      m
    4         four     "4
    {code}
    Above Ext table is just an example, Im adding bad file and log file in real table.
    
    Please help me if there is a way this can be resolved with external table.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Change the definition of:

    FIELDS TERMINATED BY ', '.

    TO:

    FIELDS ENDED BY ',' POSSIBLY FRAMED BY "" "

  • I can't start a desktop connection remote with my file server, but I can't get to my domain controller. Other computers on the network can initiate together.

    Using server 2003 as DC and server 2003 as a FS. Problem computer running windows 7 upgraded to vista professional. I can open a desktop session with the domain controller remotely, but I can't launch with the fs. Other computers on the domain have no problem with a server opening. I have access to shared folders on the MSDS via LAN and can ping the fs. Also can not use MySQL on the fs with this computer. FS cannot launch the Office with the computer problem remotely but can with others.

    Hi Gary,.

    Thanks for posting in the Microsoft Community.

    The question you posted would be better suited in the TechNet Forums; We recommend that you post your question in the TechNet Forums to get help:

    http://social.technet.Microsoft.com/forums/en-us/smallbusinessserver/threads

    If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.

Maybe you are looking for