Mapping flat files in OWB

Hello,
I am trying to start a job which has flat file as source and table as target.
When I deploy mapping everything is fine but when I try to execute it this error occurs:
RPE-01013: SQL Loader reported error condition, number 1.
SQL*Loader: Release 10.2.0.1.0 - Production on Tue Apr 1 16:42:48 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (/home/oracle/u00/oracle/product/owb10.2/owb/bin/unix/C:Documents and SettingsvmuzaDesktopDWHSifarniciForETLM_LOAD_SIFARNIK_PORTFELJA.ctl)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
I assume I have to put the flat file somewhere on the server, not on my local machine. Is that the only way? Or is it possible to define path on local machine?
If I have to upload flat file on the server where do i put it?
Thankful for any hint.

Are you sure that the file has to be on the server? I'm just trying and experiencing the same behavior on 10g, but it makes no sense. 80% of the time I'd run SQL*Loader from the client machine, referencing a csv file somewhere in the network drive, certainly not on the DB server machine.
Then what's the point of using OWB if I need to copy the files onto the server?

Similar Messages

  • MAPPING FLAT FILE TO ORACLE ERROR!! Please help

    hello all
    I am using OWB on Oracle9i.
    Trying to map flat file (file.txt) to oracle table,
    Validate: okey, some warning
    Generate/Deploy: successful.
    But when I check to the database sqlplus there is no rows existed. I verify that I connect to the right database.
    My question is:
    When doing a map from flat file to oracle table. Do I have to have some thing in the middle such as (filter, join) or I just can do a straight mapping if I don't have any condition to filter out.
    Please response if you know the answer.
    Your answer greatly appreciated. Thank you for your help
    Regards,

    If you are using an OWB version which is 9.0.3.x or earlier, to load a flat file into the database, you should generate SQL loader files and run them either manually or by using a scheduler.
    The new version (9.0.4) supports external tables, so you don't have to use SQL loader. Please refer to the user manual for more details.
    Regards:
    Igor

  • Extracting data from flat file in OWB

    Hi,
    Does anyone know, how to run a mapping having source as flat file in OWB?
    I am facing a problem as run button becomes disabled as it is SQL Loader script.
    When I register the TCL script with OEM it doesn't pass the name of the CTL file
    as parameter and so the job fails.
    If anyone knows how to do it, please reply.
    Regards
    -Yogesh

    Hi Bhavesh ,
    The data type beimg given is of this format :
    TLOG          Root Node     Structure     1..n
    STORECODE               
    TILLID               
    TXDATE               
    POSTDATE               
    TXTIME               
    TXSERIAL               
    TXBATCH               
    DOCNO               
    VOIDDOCNO               
    TXTYPE               
    TXMSG
    TMSG is the field conatinig the message ( stated in my mail ) .
    Thanks
    Anita Yadav

  • Loading CLOB data to a flat file in owb 11.2.0.3

    Hi,
    Also,I have one more question.I want to load a table with clob data into a flat file using my owb client 11.2.0.3.But when I run this simple mapping ,I am getting this error:
    ORA-06502:pl/sql:NUMERIC OR VALUE ERROR:CHARACTER STRING BUFFER TOO SMALL.
    Please suggest what needs to be done.

    I was up all night as I had a dead line doing this....
    Turned out my Mapping was corrupted.
    If you do a series of synchronizations by object name, position, id the mapping would end up corrupted.
    I had to delete my staging table operator within the mapping, drag and drop and reconnect and now my loads work just fine..
    Thanks

  • Working with Flat files in OWB

    I am getting flat files from mainframe tables and I created external tables in OWB for mapping. I get data from flat files sometimes and I dont get data even though the file exists and there is no way to debug where the problem is in the files.
    When we import the file metadata do we have to specify the column attributes or we should leave it 0 so that it take default of 255.
    If you have any process on how files should be created which is practised in your place without problems pl let me know.
    thnks...

    Hi,
    Do you mean that you are not getting flat file data into the external tables ? in that case see the bad file and try to analyze the reason. Most of the lengths of the fields set up in the external table creates a problem. In that case increase the length of the external table fields to a comfortably large value and then try.
    Regards
    -AP

  • Mapping FLAT File to Idoc

    Hi,
    I have to implement a flatfile --> XI ---> IDOC scenario and I have a question about the mapping.
    Suppose I have a Flat Fiel as following with the first 2columns as key:
    100991;001;text1;posting date
    100991;002;text2;posting date
    100992;001;text4;posting date
    100992;002;text6;posting date
    I have to pass this items to a IDOC strucutured  with header and positions.
    By mapping how can I group  key data to pass to single Idoc?
    Thanks
    marco

    Hi ,
    I have done it with ORDERS IDOC Structure .
    Since the source is a flat file you could take a simple structure with row and all the fields following it ( say filed1 , field2, field3).
    Take a bottom up approach for the child :
    Change the context of all the individual fields to the root then apply split by value on field3 ( this introduces context changes )
    Then format its parents Queue (Field2) based on Field3 Queue for this use the function Format By Example .
    Use the resulting queue  as one of the argument and Field1 to generate the link .
    Using Graphical this requirement is achievable . How ever it is upto your ease to choose which way you want to do it .
    Thanks & Regards
    Kavitha

  • Map FLAT file to oracle table using 9.04 version - PLS HELP!!!!

    Hello all
    I am having a problem with mapping a flat file to oracle table. The validation is successful, when I go to Project/Deployment manager. Try to deploy the mapping itself and the target table. It said succesful, and the last step is another "Deploy", this one is fail. Saying could not locate the file (which is a flat file) , but it is there on the server.
    I have read all the help on line and follow what they show me, but still not work
    Any ideas? Please provide detail answer if you know it.
    Thank in advance

    Hallo,
    just give a rights on connector
    Variant 1
    1. connect to user sys
    2. grant read,write on directory <connector_name> to <target_schema>;
    or
    Variant 2
    1. as user sys or system give CREATE_ANY_DIRECTORY to <target_schema>
    2. manualy make CREATE DIRECTORY <connector_name> as '<full_path_to_directory>';
    and enjoy :)
    PS: <connector_name> you can take from script CREATE_TABLE wisch in Generation phase was created!
    Kirill

  • Mapping flat file and table to a target table

    Hi all
    I need to join a db table and a flat file as source and output (target) it to a db table. I know we can do it through external tables, however at this juncture we have to do it through flat files only.
    Thanks
    PC

    You'll have load the Flat File data into a dummy table first. Then, You join this dummy table with the other db table in the same mapping.
    Any question, lemme know.
    Marcos

  • How to move flat file after loading in owb to other directory with othernam

    Hi All,
    I wast struck in problem . after loading the flat file in owb that file should be move or rename or zip with Date everyday .
    I dont know how to achieve this issue in owb via proceudre or any other way ... .
    how to zip files from pl/sql procedure ...... with sysdate.zip.
    any one please help me in this problem to come out soon.
    thanks ,
    murari

    One way is to use a Java stored procedure, this can then be called from a map or a process flow. The Java stored procedure will use the Zip capabilities in Java to do what you need. For example you will need the following procedure and you will have to grant privileges for your file to ZIP and the entire directory for zipping into (since the file name will be dynamic):
    For example grant YOURSCHEMA (change to your tgt schema) read on your extract directory where your file to zip is and write on your zips directory (where the zips will go);
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\extracts\*','read');
    exec dbms_java.grant_permission('YOURSCHEMA', 'SYS:java.io.FilePermission', 'c:\staging\zips\*', 'write' )
    You can then create your procedure which you can invoke
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "otnZipFile"
    AS
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    public class otnZipFile
    public static void zipFile(String zip, String filename)
    byte[] buf = new byte[1024];
    try {
    String outFilename = zip;
    ZipOutputStream out = new ZipOutputStream(new FileOutputStream(outFilename));
    FileInputStream in = new FileInputStream(filename);
    out.putNextEntry(new ZipEntry(filename));
    int len;
    while ((len = in.read(buf)) > 0) {
    out.write(buf, 0, len);
    out.closeEntry();
    in.close();
    out.close();
    } catch (IOException e) {
    create or replace PROCEDURE zip_file(
    dir IN VARCHAR2,
    file_name IN VARCHAR2) IS
    LANGUAGE JAVA NAME 'otnZipFile.zipFile(java.lang.String, java.lang.String)';
    For example here I zip a file MYCSV.csv into the zip file MYZIP.zip
    exec zip_file('c:\staging\zips\MYZIP.zip', 'c:\staging\extracts\MYCSV.csv');
    Cheers
    David

  • Flat file as a source table in my mapping

    Hi all..
    I am using owb 10gR2. when i debug with flat file and one target table,it is throwing error as it doesn't support flat file,you must access it through exteral table.
    But i dont want to use the external table. i want the flat file to be my source file.
    pls help me out.
    Thanks in advance,
    Bharath.
    Edited by: user11342336 on Aug 11, 2009 4:26 AM

    hi sutirtha. you have already solved one my of issue. hope you will solve this too :)
    yes,it doesn't support flat files,but i am getting the following error,
    "DBG1047 :Mapping flat file operators are not supported as sources when running mappings in debug mode. To access flat files use external table operators"
    but i want to run or debug it without using external table operators.
    Thanks,
    Bharath,

  • Create Mapping As a Flat File Source

    Hi,
    I'm new to OWB, my first project is to load data through flat file to oracle.
    step i follow is,
    =>Create Flat File Module
    =>Create Location Directory
    =>Create Flat File
    =>Create External Table (Synch with my Flat File)
    =>Create Mapping (Simple External Table mapped to table operator)
    =>Create and bind table Operator
    Mapping successfully deployed and but when i want to run it gives me following Error
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file IPDirectory.txt in FLAT_FILE_MOD_LOC_0 not found
    When I directly mapped flat file to Table in mapping it gives another error
    RPE-01013: SQL Loader reported error condition, number 4.
    SQL*Loader-522: lfiopn failed for file (\\sfs\Analytics\Reference\SIMPLE_MAP.log)
    I mention here that im working on my pc with OWB Client not on server and want to load data through flat file which is on my pc or on our sharing drive.
    Please help me on this issue
    Regards

    Hi,
    OWB generates SQL * Loader code for Flat File operator, if you try to change the configuration parameter to PL/SQL it results in error.
    External tables would be a better choice as it reduces the processing time, disk space required and also makes it possible to use SQL and other complex transformations.

  • How can we load a flat file with very, very long lines into a table?

    Hello:
    We have to load a flat file with OWB. The problem is that each of the lines in the file might be up to 30.000 characters long (up to 1.000 units of information in each line, 30 characters long each)
    Of course, our mapping should insert these units of information as independent rows in a table (1.000 rows, in our example).
    We do not know how to go about it. We usually load flat files using table functions, but we am not sure that they will be able to cope with these huge lines. And how should we pivot those lines? Will the Pivot operator do the trick? Or maybe we should pivot those lines outside the database before loading them?
    We are a bit lost. Any suggestion would be appreciated.
    Regards
    Edited by: [email protected] on Oct 29, 2008 8:43 AM
    Edited by: [email protected] on Oct 29, 2008 8:44 AM

    Yes, well, we could define a 1.000 column external table, and then map those 1.000 columns to the Pivot operator… perhaps it would work. But we have been investigating a little bit, and we think that we have found a better solution: there is a unix utility called “fold”. This utility can split our 30.000 character lines in 1.000 lines, 30 characters long each: just what we needed. Then we can load the resulting file using an external table.
    We think this is a much better solution that handling 1.000 columns in the external table and in the Pivot operator.
    Thanks for your help.
    Regards
    Edited by: [email protected] on Oct 29, 2008 10:35 AM

  • Rdbms table to flat file: error at creation of flat file

    hi
    i created a mapping in which , i want to transfer data from a rdbms table to a flat file.I created the flat file using owb and gave the location of the flat file as E:/........./folder.When i try to deploy the mapping. The flat file isnt getting created .validation and scripts are ok, but deployment is failed with the below,error.
    ORA-01031: insufficient privileges.
    Create failed.

    With 11gR2 of OWB you will need to either grant CREATE ANY DIRECTORY privileges to the target user so that when the directory is created when the OWB connector is deployed will work. Or the other option which is more secure is to have the dba create a directory and grant read/write privs on this directory (and when creating the connector in OWB, reference this SQL directory in the database). The CREATE ANY DIRECTORY option is ok above to get up and running and understand what is going on.
    Cheers
    David

  • Flat file as a source - now more confused then before.

    Sorry to open this topic again - i just got confused to what needs to be done (i did read all of the posts on previous topic - honest!) got confused to who did what and how it needs to be done. it's hard to be stupid sometimes :(
    here is what i have:
    OWB server (target + runtime repository) = RHEL 4
    Source (the location of the flat files) = shared drive/folder on Windows
    OWB client (my machine) = Windows (unfortunatelly)
    I followed the steps described in
    http://download-uk.oracle.com/docs/cd/B31080_01/doc/owb.102/b28223/def_flatfiles.htm#CHDHBECD
    created samba mount point from OWB server to the Source files:
    /mnt/folderA/folderB/source_file.txt
    mapped shared drive from the source onto my machine
    Z:/folderA/loderB
    created location for the flat files in OWB:
    TEST_LOCATION = \\windows\folderA\folderB\
    imported flat files into OWB (had to go through the sample)
    created the map 'TARGETLOAD' - simple load the data from the flat file into the table
    validation produced the following message:
    VDL-2398: No data file specified. Generated code will use the sampled file name and the file location 'TEST_LOCATION'
    --which is fine isn't it? it should be using this file in that location
    generation went OK.
    deployment produced this error:
    SQL*Loader-500: Unable to open file (/u01/app/oracle/product/10.2.0/owb_1/owb/bin/unix/\windowsfolderAfolderBTARGETLOAD.ctl)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: No such file or directory
    i checked this directory - there are 2 files there that were created by OWB:
    \\windows\folderA\folderB\TARGETLOAD.ctl
    \windowsfolderAfolderBTARGETLOAD.log
    Could anyone please enlighten me on what is going on? What do i have to change/amend/edit/tweak in order to solve this? all i want is to be able to load the data from flat file on the source windows box into the table in OWB server.
    Any help/thoughts would be greatly appreciated.

    Hi GB
    Thank you very much for your reply.
    I cannot use external tables - my superiors decided agains it, so i am lambered with external files (even jedi mind trick didn't work!).
    What i do is import external files from windows box. The location is specified as \\windows\forlderA\folderB
    --Mount the drive onto unix then register the files location as the unix path.
    i have a samba mount point from unix box to this windows location. But what i can't do is to select is as a location. i even tried to mapping this mount point onto windows box, so that it looks like \\unix\mnt\folderA\folderB - and of cause when i execute - i get the same error.
    I even tried configuring the sql loader (right click on map and select configure -- create), but i cannot do it even that way. coz everytime i try to create - OWB automatically assigns windows path to it.
    IT told me to let them know what i need and they will create it (map the drive etc) the problem is - i can't think of how to do it! and i do not have a priveleges to start 'trying things out'... well they say if i break their security one more time -i am in trouble!
    I know it sounds sad, but could you please let me know what i need to have/to do in order to make it work.
    Hope you do not mind my request and thank you very much for all your kind help and advise
    Kind Regards
    Vix

  • Loading flat files from a folder

    hi,
    i'm new in O.W.B., want to know if there is a way to import flat files into OWB directly from a folder. that is, automatically, without having to import one at a time.
    thanks.

    Hi Francesco
    So the UI lets you import one at a time or say this file is the same as that file (if same number of columns). You can also configure an external table or flat file mapping to add many data files to be read for the one external table or flat file mapping.
    If you want to import the metadata into OWB by pointing at a directory and importing all of the files there automatically then you would have to script this up. I have written scripts in the past that read metadata from files (such as for fixed length files for example the Oracle Sales Analyzer/OSA product has such files) and generate flat file definitions and external tables. The metadata files describe the fixed length fields, both the positional and datatype information. With CSVs if the files have a header row with a name for the column, you could script some of this or default the names, but then the datatypes would also have to be inferred by analyzing or from some metadata that can be added.
    Cheers
    David

Maybe you are looking for

  • Thumbnails there but no picture appears

    Ok, I'm looking at my iPhoto now with all my pictures dsiplayed in film roll style. When I click on certain pictures, I guess it goes into edit mode, but the screen stays blank and there is like a timer going, as if it's taking time to upload or some

  • Enterprise Wireless

    Has anyone had any luck pushing a a WPA enterprise profile to a AppleTV and it actually work? I have a profile in Apple Configurator that only sets the WIFI settings and pushes the necessary cert, the device fails to connect to the wireless network.

  • "Edit in Photoshop": Why is Photoshop is greyed out?

    I have LR 3.2 and PS CS5 Extended installed on a Win 7 64 bit PC.  Preferences|External Editing shows Photoshop but when I choose an image and right click, Edit in shows Photoshop greyed out.  (Also when chossing Edit In from the Photo drop-down menu

  • Why can't I drag my files in finder to an external hard drive?

    I'm trying to drag my files from finder to an external hard drive--I just get the universal "do not" symbol.  How do I do this?

  • SQL Help for System Analysis

    Hi all, Can we seek for help in SQL? I have an system analysis which calculate the concurrent usage of a computer system. I have add all data which is stored in .CSV file and then insert into a table named as Activity. Can we select the data from act