the fastest way to load an XML file

What is the fastest way to generate an xsd-based oracle table and then load data from a file that conforms to the xml document in the xsd.

I would do something like this:

SQL > insert into tmp_xml

2 values)

3 xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'))

4  );

1 row inserted

SQL >

SQL > select x1.col_a, x1.col_b, x1.col_c, x2.*

tmp_xml 2 t

3, xmltable)

4 "/ parent/Child1.

5 passage t.object_value

path of 6 columns col_a varchar2 (10) '@ColumnA '.

7 road of varchar2 (10) col_b '@ColumnB '.

8 road of varchar2 (10) col_c '@ColumnC '.

9, child2 xmltype path "Child2".

(10) x 1

11, xmltable)

12 ' / Child2'

13 passage x1.child2

path of 14 columns col_d varchar2 (10) 'ColonneD '.

15 road of varchar2 (10) col_e "child3/column.

16, road of varchar2 (10) col_f "child3/ColumnF.

17 road of varchar2 (10) col_g "child3/column".

18 road of varchar2 (10) col_h "child3/ColumnH.

19 road to varchar2 (10) col_i 'ColumnI.

(20) x 2

21;

COL_A, COL_B, COL_C COL_D COL_E COL_F COL_G COL_H COL_I

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

CAF ClientID ClientName 20130121 D 20752,19 AUD

FCA ClientID ClientName M 20130121 235.39 bla Blahdeblah AUD

(you can adjust data types as needed)

Tags: Database

Similar Questions

  • The fastest way to load the flex with complex menus of gui application

    Hello

    In my current project, I have a few menus. Each menu includes a tabbar with one to five tabs and gui-stuff more or less complex in the NavigatorContent.

    Most of the menu must be opened by clicking on a button.

    I could implement this by assigning to each menu visible and invisible when someone clicks on a button:

    <menu:MyFirstMenu id="first" visible="false" />

    <menu:MySecondMenu id="second" visible="false" />

    ...

    <s:Button click="first.visible = true;second.visible=false" />

    <s:Button click="first.visible = false;second.visible=true" />

    but I'm afraid that it takes some time, when the application is initialized.

    or I can add menus after the user has clicked on a button

    <s:SkinnableContainer id="menuArea" />

    <s:Button click="menuArea.addElement(new MyFirstMenu())" />

    <s:Button click="menuArea.addElement(new MySecondMenu())" />

    but I'm not so sure, if that's the right way to do it.

    (I know I must also remove the other menu when I click on one of the buttons, but you get the idea)

    So, what is to be implemented, robust way and good if I want to have my app loaded quickly?

    Well Yes, that's what I mean.

  • What is the fastest way bulk load the data from ACE / 400 to Oracle?

    Asked me to move data from the AS / 400 to Oracle11gR2 as fast that ODI may eventually. Quinte just no mapping, no transformation, no membership.

    An ODI11g agent is started on the computer of Oracle target, but being new ODI, I don't know how to use SQL for Oracle LKM loading in a scene and then updated incremental Oracle IKM layout from staging to the target table.

    It took 50 minutes to move recorded about 4 million. I need to get this in about 10 minutes. So guys, if there is a best practice to do this, please let me know, but now I'll try any suggestion you might think.

    Thank you in advance.

    Means the faster is to use a combination of ODI interface and ODI tool named OdiSqlUnload.
    N ° 1). Use the ODI OdiSqlUnload tool to export the data from the AS / 400 files in a flat file of the BONES.
    Step 2.) Use this flat file as source and LKM file for Oracle (SQLLDR) and Oracle IKM incremental update to load Oracle data.

    Your current path is slow because it operates on a row by row basis.

  • What is the fastest way to load a video so that I can share it with another user?

    Periodically, I take videos of my sessions clinical (I work as a psychologist) and I need to download them (strongly) to the internet to access to see my supervisor. I used to use the programe of Picture Motion Browser, until my computer crashed - I lost the program, but have since managed to understand that all I have to do is to connect my camcorder to my laptop Sony using the cable supplied with the video camera (not USB, other cable - I forgot what it's called) and I can see the videos with Windows Media Player.

    Also I tried to download videos on Youtube (using their private setting), but as short as 5 minutes video. has taken about an hour to download.

    How can I download the video for my supervisor has access to them? I have a program called Dropbox-it allows the sharing of files - I have not tried this one yet for videos, but wonder if anyone knows if it would be better than Youtube, or if you have any other ideas?

    Thanks in advance!

    Hi Psych13,

    You can try using Windows Live Skydrive and see if you can download the videos.

    SkyDrive is a free hosting service that allows users to upload files to a cloud storage and then access it from a Web browser.

    For more information, you can consult the following articles:

    Windows Live SkyDrive

    SkyDrive: Share photos and videos online

    Hope this information is useful.

  • The fastest way to load data

    Option 1:

    Insert the statement with:

    table view: NOLOGGING

    insert mode: APPEND

    in ARCHIVELOG mode: noarchive log mode

    Option 2:

    DEC in NOLOGGING mode

    The two options above would generate no redo log. What is the best for performance? I'm loading large or lines (a few million) on a daily basis and it is an intermediate table, so there is no problem when the reprocessing failure.

    The answer may depend on the availability of memory and index.

    ETG requires you to create indexes subsequently - but each index requires an analysis of the table.

    Insert / * + append * / can optimize for indexes by capturing the values of the columns needed as data is loaded, and then creating the index without having to re-read the table.

    Concerning

    Jonathan Lewis

  • shipment value of the PHP variable to Flash to load an xml file

    I would like to load an XML file to the local location or on the server to ignore the name of the file. I use PHP to send the name of the Flash file.

    Here it is the PHP code:

    <? PHP

    filesInDir ('C:\Documents and Settings\457305\My Documents\shrikant\Flash Tutorials\webassist');

    function filesInDir ($tdir)

    {

    $dirs = rewinddir(3) ($tdir);

    foreach ($dirs as $file)

    {

    If (($file == '.') |) ($file == '..'))

    {

    }

    else if (is_dir ($tdir. » /'. $file))

    {

    filesInDir ($tdir. » /'. $file);

    }

    on the other

    {

    echo "fileName = $file";

    }

    }

    }

    ? >

    And here is the Actionscript code loading:

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    to import flash.net.URLVariables;

    Stop();

    Set the PHP file to load

    var phpFile:String = " " http://localhost/WebAssist/test.php ";

    var cons_xml:XML;

    var xmlLoader:URLLoader = new URLLoader();

    Specify the property dataFormat of the URLLoader to be "VARIABLE".

    This ensures the variables loaded into Flash with the same variable names

    xmlLoader.dataFormat = pouvez;

    xmlLoader.load (new URLRequest (phpFile));

    xmlLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(evt:Event):void

    {

    trace (evt. Target.Data.FileName);

    cons_xml = new XML (evt.target.data.fileName);

    gotoAndPlay (2);

    }

    When I trace evt.target.data it displays "fileName = mainOpenEndedXML % 2Exml" and when I trace evt.target.data.fileName the file name is correctly displayed as 'mainOpenEndedXML.xml'.

    But in the two next lines where the loading is done that it does not load the file IE does not play the SWF to an xml file.

    I've searched the Internet to find answers, but not able to find solutions.

    Loading works fine if I insert the xml file directly in the code and the SWF in the XML file plays correctly. Here it is the code for the same thing:

    import flash.net.URLLoader;

    import flash.net.URLRequest;

    import flash.events.Event;

    to import flash.net.URLVariables;

    Stop();

    var cons_xml:XML;

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.load (new URLRequest ("mainOpenEndedXML.xml"));

    xmlLoader.addEventListener (Event.COMPLETE, processXML);

    function processXML(evt:Event):void

    {

    cons_xml = new XML (evt.target.data);

    gotoAndPlay (2);

    }

    Any help on this would be greatly appreciated


    You said you use PHP to send the name of the Flash file.  If the php file you provide only the name of the xml file that you need to load, then you will have to load the xml file in the same way that you show in your last set of code where you say that load you it directly.

  • The fastest way to transfer files between servers...

    I have a question regarding what would be the best option to accelerate the transfer of files between 2 servers to our VMware environment. We plan to spend our GroupWise email from netware to windows and upgrade to Groupwise (v7 to v8) at the same time. We will anticipate moving about ~ 125 gigabytes of data (files ~ 517 000) and expect that it will take several hours. We would like to minimize this time better we can so we wonder what would be the best configuration of things to get there? Two virtual machines on the same host? Two virtual machines on the data store even? On different hosts, or data warehouses? Our configurations are listed below:

    -In the course of running vSphere 4.1 ESXi

    -Data stored on 2 Dell Equalogic 5500 without

    -SAN one in each of the 2 sites, physically about 3 miles away

    -3 guests, 2 to a location and 1 in the other (same places the San)

    -Transfer of data from Netware 6.5 source, destination will be Windows 2008 R2 DataCenter

    -Links gigabit between all the elements of our VMware environment, including the link between the sites (on optical fiber).

    -3 guests are able to run all our virtual machines without overloading, so if we go to the virtual computer to another host, it is not a problem.

    We would like to know what is the best way to put everything in place for the transfer, so that we can prepare before hand. Any suggestions?

    Thanks in advance.

    Well, the fastest way would be to offload the clone/copy to the San operation. If your configuration supports VAAI then the clone would happen completely on the SAN by assuming that the source and destination storage device is the same SAN. Would it be different San then the network factors in anything. For what is running on the same host, which would be beneficial for cloning a virtual machine (mainly memory footprint) should not take place on the network.

    I hope this helps!

  • The fastest way to the files and folder to move

    I'm moving a lot of files to another drive and it takes a long time.   I do travel in the LR library now and an alternative is to move outside of the LR and use the catalog import option to add (don't know if it's a more quickly).

    You can select multiple folders in the LR library to move to the same location or do you need to do one at a time? This would be onen advantage to do outside of LR.

    Any thoughts?

    You cannot move several files in Lightroom.

    The fastest way is to move your "Pictures" folder all OS, then re - link in Lightroom by right-clicking and choosing 'find the missing folder '.

    If you need to move several subfolders selectively, then there is no quick way. You move quickly in the BONES and then go rebinding in Lightroom or move them slowly one by one in Lightroom.

  • Loading multiple Xml files.

    Ive got a menu based on xml and xml Photo Gallery based on the same chassis on my calendar.
    When I try to preview the film only the photogallery load xml file.

    I was wondering if anyone knows a method to load two xml files at a time or one after the other...

    Ive been after Jacques tutorials for menu xml and xml photo gallery... my code is very similar to them.
    Thanks in advance.
    Chris.

    Simply create separate XML objects.

    myXmlMenu = new XML();
    myXmlGallery = new XML();
    myXmlMenu.load (...)
    myXmlGallery.load (...)
    etc.

  • What is the best way to retrieve deleted mp3 files? I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I'll be very grateful for any help in this matter. Thanks to Chris

    Hello

    What is the best way to retrieve deleted mp3 files? I had a lapse of attention and I deleted a folder containing most of my music files. It is for the most part, the mp3 but there was regular audio files and some wav files in there also. I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I have another PPC machine to help the recovery, if I need, but at the moment, he is not appearing on my network (3 computers). I'm trying to change this soon. I'll be really grateful for any help in this matter.

    Thanks to Chris

    If you emptied the Recycle Bin after you move the folder to the trash, and you don't have a time Machine or another backup, then it is lost, sorry.

  • What is the best way to read this binary file?

    I wrote a program that acquires data from a card DAQmx and he writes on a binary file (attached file and photo). The data I'm acquisition comes 2.5ms, 8-channel / s for at least 5 seconds. What is the best way to read this binary file, knowing that:

    -I'll need it also on the graphic (after acquisition)

    -J' I need also to see these values and use them later in Matlab.

    I tried the 'chain of array to worksheet', but LabView goes out of memory (even if I don't use all 8 channels, but only 1).

    LabView 8.6

    I think that access to data is just as fast, what happens to a TDMS file which is an index generated in the TDMS file that says 'the byte positions xxxx data written yyyy' which is the only overload for TDMS files as far as I know.

    We never had issues with data storage. Data acquisition, analysis and storage with > 500 kech. / s, the questions you get are normally most of the time a result of bad programming styles.

    Tone

  • I recently bought a computer build-yourself. My question is what is the best way to mirror or save files on the two hard disks at the same time?

    Hello community,

    I recently bought a computer build-yourself.
    My question is what is the best way to mirror or save files on the two hard disks at the same time?
    I know there is a way in diskmgmt.msc, but I can't seem to make it work.
    Spec:
    Windows 7 Professional 64 bit
    8 GB ram ddr3
    2 x 1 TB hard drive

    On Saturday, 22 September 2012 00:53:18 + 0000, kevin.coe wrote:

    As I said, I think it's not only not a good idea, I think it's a very

    a poor man. Backup should be stored outside the computer content. Or
    use a service like Carbonite Online backup.

    Ken Blake, Microsoft MVP

    What is raid? A large number of people I know use raids.

    RAID 1 (mirroring) is not a backup solution. RAID 1 uses two or
    Several readers, each one duplicate of the other, to provide redundancy,
    no backup. It is used in situations (almost always inside)
    companies, not in homes) where any city cannot be tolerated.
    because the way it works is that if a disk fails the other takes
    more seamlessly.

    Although some people thing of RAID 1 as a backup technique, it is
    what it is, because it is subject to a simultaneous loss of the
    original and many of the main dangers facing the mirror
    your data - serious power, close to the lightning seeds, virus
    attacks, stolen computer, etc. Most companies that use RAID 1
    also have a solid plan of external backup in place.

    "Why the RAID is (usually) a Terrible idea".
    http://www.pugetsystems.com/articles?&ID=29
    Ken Blake, Microsoft MVP

  • What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    What is the fastest way to convert navigation app 1-level 2-level once a project has already been established?

    You cannot change a project to change this setting. You will need to create a new project.

  • What is the best way to get a SVG file generated from After Effects?

    What is the best way to get a SVG file generated from After Effects?

    Is there a script to do this? I use the SVG file directly in my work. I did research online, but find that it has no native support of EI to achieve.

    I found some scripts online, but they convert output Adobe AE to the JSON file. Is there something similar available for the SVG file?

    Thank you

    AE makes pixels not vectors, so it's not possible.

  • What is the best way to make a PDF file several Photoshop images, while maintaining editable layers?

    What is the best way to make a PDF file several Photoshop images, while retaining the layers in editable for later use mode? I tried to do in Acrobat, but it does not keep separate layers. I also tried to automate the PDF presentation in Photoshop, but it combines the layers as well. I need to enable layers from photoshop retain their ability to be edited.

    It is not possible at this time, Photoshop is not a page layout program and pdf is hardly a format suitable to hold several files psd layered or editable page layouts.

    Why would you do that anyway?

Maybe you are looking for