How to load several files DBF table 1 target using only 1 interface?

Hello, I am a beginner in ODI and I have a problem.

I have several DBF / Foxpro files that is stored in a directory like this:
2010_10/account.dbf
2010_11/account.dbf

All DBF files have the same structure, but stored in a different folder (the folder name is < year > _ < month >)

I managed to create an interface to load a DBF unique for the target table and the source table is hardcoded in the interface. Ideally, the interface will take place once a month.

How can I use the same interface to load other DBF files?

I know, if the data source is a text file, you can link the resource name to a variable, and the variable can be set to a file name. But I can't do since I use a JDBC driver to connect to the DBF file.

Any help will be appreciated

Hello

I have no idea on the DBF files, yet...

What is create a variable to build the 'months' and then pass this variable to OdiFileCopy, move this file to a specific directory. Then run your interface to load this file into your database. Once the work is successful, you can delete the file using OdiFileDelete (optional)

Thank you
Fati

Tags: Business Intelligence

Similar Questions

  • How to load several files column data into essbase using the rule of load.

    Hello

    I need to load a file of data into essbase, which includes data from several columns.

    Here is a sample file.


    Year, Department, account, Jan, Feb, Mar, Apr, may, June, July, August, Sept, Oct, Nov, Dec
    FY10, ministere1, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, agencies2, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, ministere3, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12


    Thank you
    Sirot

    But this isn't an error as such, that is to say that no data values have been changed so that they possible already exist in the database.
    If there is no release, they should be in a file of errors.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to load a file by using unique code for the table values

    Hi Experts,

    I'm loading the file to Table data.
    In the file, I will have values such as as follows

    ABC = 1234; XYZ = 5627; NAME = Chavigny
    ABC = 1254; XYZ = 5684; NAME = riadh
    ABC = 1235; XYZ = 5524; NAME = Nani


    How to approach this kind of needs in ODI.

    THX,
    Sara.

    No problem here because we does not specify the third parameter (limit) of SUBSTR.
    Then it just starts after EMPNO = and will go until the end, regardless of how many characters you have after EMPNO =.

    If you want to replace:

    REPLACE(., '')
    

    It will replace all the occurrence of EMPNO = in the chain.

  • How to share several files at the same time?

    iI am trying to share a number of edited files and sending one at a time takes too much time. How to share several files at the same time?

    Yes, you can select and send/share several files at once.

    Start https://cloud.acrobat.com/send. Click Select files to send and then follow the instructions in file selection. If you want to add more files, simply click on add files:

    You can include up to 50 files by "transaction".

  • Failed to load several files to Essbase using generics and MaxL characters

    I have several data files to load:


    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt


    According to the following link, Essbase is able to load several files to the BSO via MaxL databases using wildcards:

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/esb_tech_ref/frameset.htm?launch.html

    However, when I try to run the following, I get the following error:


    MaxL:
    import data from database MyApp.DB of data_file text Server "... /.. '. /MyApp/filename*.txt' using the rules_file server 'L_MyRule' error add to '\\Server\Folder\L_MyRule.err ';

    Error:
    ERROR - 1003027 - failed to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB /... /.. / Filename*.txt].
    ERROR - 1241101 - Essbase unexpected error 1003027.


    I can run the following fine without any problems, but it deals only with the first of several files, and I'd rather not hardcode several files as the number may vary in the future:

    MaxL:
    import data from database MyApp.DB of data_file text Server "... /.. '. ' / MyApp/Filename.txt "using Server rules_file error ' L_MyRule' add to '\\Server\Folder\L_MyRule.err ';


    Any ideas? And what about ASO databases?

    Good point John, concatenate the files don't get you all that. Not sure about post of James it is fair after the wildcard for the usability or performance option.

  • How to load a multiple column table in the coherence of caches?

    How to load a multiple column table in the coherence of caches?
    I want to load a multi-column (about 20 columns) table in cache coherence. How to change the following code (spatially how to change the SQL SELECT statement)?
    Is the following select statement enough: Select the key, the value of EMPLOYEES ?
    public static void bulkLoad(NamedCache cache, Connection conn)
        {
        Statement s;
        ResultSet rs;
        
        try
            {
            s = conn.createStatement();
            rs = s.executeQuery("select key, value from table");
            while (rs.next())
                {
                Integer key   = new Integer(rs.getInt(1));
                String  value = rs.getString(2);
                cache.put(key, value);
                }
            ...
            }
        catch (SQLException e)
            {...}
        }

    First of all, you need a class to hold your 20 fields:

    public class Data {
    
        private String field1;
        private String field2;
        private String field3;
        private String field4;
        private String field5;
        private String field6;
        private String field7;
        private String field8;
        private String field9;
        private String field10;
        private String field11;
        private String field12;
        private String field13;
        private String field14;
        private String field15;
        private String field16;
        private String field17;
        private String field18;
        private String field19;
        private String field20;
    
        public Data() {
        }
    
        public String getField1() {
            return field1;
        }
    
        public void setField1(String field1) {
            this.field1 = field1;
        }
    
        public String getField2() {
            return field2;
        }
    
        public void setField2(String field2) {
            this.field2 = field2;
        }
    
        public String getField3() {
            return field3;
        }
    
        public void setField3(String field3) {
            this.field3 = field3;
        }
    
        public String getField4() {
            return field4;
        }
    
        public void setField4(String field4) {
            this.field4 = field4;
        }
    
        public String getField5() {
            return field5;
        }
    
        public void setField5(String field5) {
            this.field5 = field5;
        }
    
        public String getField6() {
            return field6;
        }
    
        public void setField6(String field6) {
            this.field6 = field6;
        }
    
        public String getField7() {
            return field7;
        }
    
        public void setField7(String field7) {
            this.field7 = field7;
        }
    
        public String getField8() {
            return field8;
        }
    
        public void setField8(String field8) {
            this.field8 = field8;
        }
    
        public String getField9() {
            return field9;
        }
    
        public void setField9(String field9) {
            this.field9 = field9;
        }
    
        public String getField10() {
            return field10;
        }
    
        public void setField10(String field10) {
            this.field10 = field10;
        }
    
        public String getField11() {
            return field11;
        }
    
        public void setField11(String field11) {
            this.field11 = field11;
        }
    
        public String getField12() {
            return field12;
        }
    
        public void setField12(String field12) {
            this.field12 = field12;
        }
    
        public String getField13() {
            return field13;
        }
    
        public void setField13(String field13) {
            this.field13 = field13;
        }
    
        public String getField14() {
            return field14;
        }
    
        public void setField14(String field14) {
            this.field14 = field14;
        }
    
        public String getField15() {
            return field15;
        }
    
        public void setField15(String field15) {
            this.field15 = field15;
        }
    
        public String getField16() {
            return field16;
        }
    
        public void setField16(String field16) {
            this.field16 = field16;
        }
    
        public String getField17() {
            return field17;
        }
    
        public void setField17(String field17) {
            this.field17 = field17;
        }
    
        public String getField18() {
            return field18;
        }
    
        public void setField18(String field18) {
            this.field18 = field18;
        }
    
        public String getField19() {
            return field19;
        }
    
        public void setField19(String field19) {
            this.field19 = field19;
        }
    
        public String getField20() {
            return field20;
        }
    
        public void setField20(String field20) {
            this.field20 = field20;
        }
    }
    

    Then you can use it to store data in you original code

    public static void bulkLoad(NamedCache cache, Connection conn)
        {
        Statement s;
        ResultSet rs;
    
        try
            {
            s = conn.createStatement();
            String sql = "select key, value, value2, " +
                    "value3, value4, value5, value6, " +
                    "value7, value8, value9, value10 " +
                    "value11, value12, value13, value14, " +
                    "value15, value16, value17, value18, " +
                    "value19, value120 from table";
    
            rs = s.executeQuery(sql);
            while (rs.next())
                {
                Integer key   = new Integer(rs.getInt(1));
                Data data = new Data();
                data.setField1(rs.getString(2));
                data.setField2(rs.getString(3));
                data.setField3(rs.getString(4));
                data.setField4(rs.getString(5));
                data.setField5(rs.getString(6));
                data.setField6(rs.getString(7));
                data.setField7(rs.getString(8));
                data.setField8(rs.getString(9));
                data.setField9(rs.getString(10));
                data.setField10(rs.getString(11));
                data.setField11(rs.getString(12));
                data.setField12(rs.getString(13));
                data.setField13(rs.getString(14));
                data.setField14(rs.getString(15));
                data.setField15(rs.getString(16));
                data.setField16(rs.getString(17));
                data.setField17(rs.getString(18));
                data.setField18(rs.getString(19));
                data.setField19(rs.getString(20));
                data.setField20(rs.getString(21));
                cache.put(key, data);
                }
            ...
            }
        catch (SQLException e)
            {...}
        }    
    

    Of course your data object would need the appropriate field names and you will have no channels for all types. It must also implement equals and hashCode and ideally PortableObject.

    JK

  • How batch edit several files to add images on each page

    Hello

    I have pdf files (about 1000) and all of them have several files. Is it possible using Acrobat DC (grammatically or using a function or tool) I can change everything in batch to have an image at the bottom of each page?

    The same image on each page in each file? If so, you can use the command Add watermark in an action brought in Acrobat Pro to achieve this.

  • Load a file in tiara with a use using LabVIEW

    Is it possible to load a file into tiara with a use that is customized by using LabVIEW.  I looked through the palette and see nothing.

    Hi Siriusly,

    I've added 2 additional lines of configuration of trainer to the use, and now that the last row of empty values has disappeared from a single file you sent me.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • How to open a file with the extension .odg using Vista?

    How to open a file with the extension .odg using Vista?

    Hi Defiant503,

    Thank you for visiting the forums of answers.microsoft.com.

    I did some research and a file ending with .odg is an OpenDocument Document OpenOffice/StarOffice (Ver 2) of graphics by Sun Microsystems, Inc.    This means that in order to open this file, you will need this program to open it.  You will not be able to open this file with Vista.

    I hope this information helps.

    Kavita M
    Microsoft Answers Support Engineer
    Visit the Microsoft Answers Feedback Forum site
    and let us know what you think.

  • How to load the file name in the table target. ?

    Hi Expertise,

    I load the data of 100 files of same schema using packages,

    It is a variable stores the names of files. I used this link for reference: ODI gurus: SEVERAL FILES - TARGET SINGLE TABLE - SINGLE INTERFACE & several files simple single interface target .

    but now I need what files have been executed in the interface. Please give me some ideas?
    I need when the data from a particular file was loading then in DB, the particular file name must also be sent to the target.

    using ODI 11.1.1.9 & wls 10.3

    Help with kindness,

    Thank you

    Shakur

    In my example src_file_name is a column name

    and #projectName.variableName - is a variable

    If you want to store in the column you define '#projectName.variableName.txt '- don't forget the single quotes - (as a result, you get an error)

  • How to load several SWF my main flash file?

    I use the following code

    In stock for 1 frame:

    ( var myrequest:URLRequest =new URLRequest ()'A.swf'();
    ( var myloader:Loader =new Loader()();
    myLoader. load () myrequest ();

    img1. addEventListener () MouseEvent. ( CLICK, button click();

    ( function button click ()event: MouseEvent ():void{ }
    Stadium. addChild () myloader ();
    }

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

    {

    gotoAndStop (13).

    }

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, unloadFunction);

    function unloadFunction(event:Event):void {}

    stage.removeChild (myloader);

    }

    This code works perfectly fine. My only problem is how to make several swf loaded. When I tried to copy and paste the same code for the another swf, but the following errors appear. I'm sure theres a way to have several sovereign wealth funds (btw the multiple SWFS will be bound to different frames).

    Scene 1, Layer 'PAGES!', frame 2, line 7 1021: duplicate function definition.

    Scene 1, Layer 'PAGES!', frame 2, line 2 1151: there is a conflict with the myloader definition in the internal namespace.

    Scene 1, Layer 'PAGES!', frame 2, line 1 1151: there is a conflict with myrequest definition in the internal namespace.

    Can anyone help me please with this. Thank you

    I have to get a new keyboard one day... it ignores things...  That sentence was supposed to have read "You can not set the same variable name or function more than once in a file" If you don't know not what that means, read it a few times because it's as simple as possible.

    In regards to the other code, try and see what you get... No need to wait for me to try something yourself and see.

  • How to register several files/attatchments on UCM using RIDC?

    Hello

    I would like to know how can I check in several files on UCM using CRMI. I'm currently checking - in one document at the University Complutense of MADRID with some metadata bsuiness and a specified file, but the end user must be able to specify more than one file to download.

    We provide several files entry on the UI so that the user can choose, in addition to the main file, several files (for example, up to 3) that are not created in the form of documents on the University Complutense of MADRID, but rather as the other files for a given document attatched.

    Should I simply archive them like I do with the first file and then specify on the side of the WCC that others are "other files". Or there is one way to treat these files attatched or another for a given document?

    Thanks in advance.

    Kind regards

    Filipe Baptista

    Hi Filipe,

    Upon check-in, you cannot select multiple files that WCC because both would take 1 primary and 1 file replacement as entries per request. If you are looking to add multiple files for a content of Check - in component ZipRenditions can be used to add attachments "multiple" the archived file. But again, this would be a check-post operation. A code for this example would be like this:

    Consignment:

    DataBinder dataBinder = idcClient.createBinder ();

    dataBinder.putLocal ("IdcService", "CHECKIN_NEW");

    dataBinder.putLocal ("dDocAuthor", "weblogic");

    dataBinder.putLocal ("dDocTitle", "CRMI-AttachTest1");

    dataBinder.putLocal ("dDocType", "Document");

    dataBinder.putLocal ("xIdcProfile", "RIDCProfile");

    dataBinder.putLocal ("dSecurityGroup", "Public");

    dataBinder.addFile ("primaryFile" ", new File("/home/oracle/test/run.sh "));

    dataBinder.addFile ("alternateFile" ", new File("/home/oracle/test/run1.sh "));

    dataBinder.putLocal ("doFileCopy", "1");

    dataBinder.putLocal ("fParentGUID", "6CD583399ED00A8D86A689BBF0AF89C7"); If she wants to be archived in a framework folder.

    Then the answer to this would be a fact and dDocName you need to use and check if the status is started:

    dataBinder.putLocal ("IdcService", "DOC_INFO");

    dataBinder.putLocal ("dDocName", "");

    dataBinder.putLocal ("a", "");

    If the answer to dStatus RELEASED =, and then run the code example attachment of multiple file like this:

    dataBinder.putLocal ("IdcService", "EDIT_RENDITIONS");

    dataBinder.putLocal ("a", "");

    dataBinder.putLocal ("renditionKeys", "addRendition0");

    dataBinder.putLocal ("addRendition0.name", "FileAttach");

    dataBinder.putLocal ("addRendition0.action", "modify");

    dataBinder.putLocal ("addRendition0.file:path", "\ridc\test.txt");

    dataBinder.addFile ("addRendition0.file", new leader ("test.txt"));

    addRendition0 is the first attachment that can be added, like wise, you can use addRendition1, addRendition2, addRendition3 etc to add more number of attachments to the same content.

    Re: using ZipRenditionManagement

    So, it is not a case where the checkin request itself you can add attachments himself (this feature is available with WCC 12 c - archive of content items and attachments together)

    With the UCM 11 g, you will need to check the response for the checkin data and then add attachments (which at one point I think that you can select 6).

    I hope this helps.

    Thank you

    Srinath

  • How to load several HTML5 canvas on the same page (the right way)

    Hello

    I struggled to load several animations of canvas on the same page. At the beginning, I thought that export movies with different namespaces and reload the libraries in a sequential workflow might work, but it doesn't. It still load just the last loaded movie. More info here: coding challenge: what am I doing wrong?

    Here's a sample of what I'm doing:

    1: publish two flash animations with namespaces customized to "lib" defined in the "publication settings": "libFirst" and "libSecond".

    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and another one called "secondCanvas".

    3rd: change the javascript like this:

            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
    
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
    
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
    
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
                }
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
    
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
    
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
    
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
                }
            </script>
    
    <body onload="initFirstAnimation(); initSecondAnimation();">
    
    
    
    

    Could someone please answer with best practices on how to do it? If possible, without the need to reload all libraries...

    If I only need to show a flash animation at the same time, it would be more efficient to cut/paste the canvas using jQuery tag in the DOM and reload a different lib on this subject?

    Thank you very much!

    #flash #reborn

    I was able to remedy. In the end, it was easier than I thought. Just publish using namespace different 'lib' for each film, load all the scripts at the end of theand add the following in the onload or ready events:

    $(document).ready(function () {
    
            var canvas, stage, exportRoot;
    
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
    
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
    
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
    });
    
  • How to load several books in planning using FDM ERPI?

    Hello

    I use FDM and ERPI 11.1.2 to load data from Oracle GL R12 to Hyperion Planning 11.1.2.

    In Oracle GL, I have several books: one for each accounting entities.

    In ERPI:
    -an import format is associated with a single entity accouting
    -a location is associated with an import format, then with a reporting entity
    -a rule of data loading is associated with a place, then with a reporting entity

    In FDM, when configuring the ERPI adapter, you must enter the data load rule name that you want to use.

    So: How to load data from several reporting entities (= books) in planning through FDM/ERPI?

    Thank you in advance for your help!

    Fanny

    Fanny,

    You have no need to fill the data rule option - load adapter. By the documentation, you can also fill the places metadata integration Option n ° 1 with load rule name. This lets you use an adapter in the application of FDM; but the pull of several great books.

    Of course, each book would be a separate location of the FDM.

    Thank you

  • How to load SWF files?

    I created a flash game which is about 11 MB in size, and I created the progBar in the first frame of the swf file.

    But it only shows the loading process after only a few MB of data loaded... beign that could take some time and that the user to close the tab...

    I don't want to do... How can I tell the user at least that the swf loads without any percentage and all animations...

    As put a < div > tag to the back of the swf file... so up to load swf can be demonstrated the div with the message 'loading... ' I tried this method but it did not work for me and I don't know why.

    I hope masters flash at this forum could help me.

    TQ

    You must use two SWFs - your game and a loader which load the game. The charger would use the Loader class to load the game, and you can use the progress event to display correctly the information loading. The first thing of charger framework has never been a good solution...

Maybe you are looking for