Oracle 10.1, Whats the best way to load XML in database?

Hi All,
I am a typical Oracle developer. I know some Java and some XML technologies, but not an expert.
I will be receiving XML files from some system, which will be,
- of reasonable size like 2 to 15 MBs
- of reasonable complexity, like the root element have children, grand-children and great-grand-children, with attributes and all
- Every day it needs to be loaded to Oracle database, in relational format
- we need not update the XML data, only put the XML data in relational table
My questions are,
- With Oracle 10.1, XML DB, what is the best way to load this XML file to relational Oracle tables ?
- What can be the steps in this process ?
- In the documentation, I was lost and was not able to decide anything concrete
- If I write a pure Java program with SAX API and load the data to Oracle database in same program, is it a good idea?
- Is there any pure Oracle based way to do this?
- If I want to avoid using DOM parser, as it will need more JAVA_POOL_SIZE, what can be the way ?
Please help.
Thanks

Many customer solve this problem by registering an XML Schema that corresponds to their XML and then creating relational views over the XML that allow them to access the content in a relational manner. They then use insert as select operations on the relational views to transfer data from the XML into relational tables where necessary. There are a large number of threads in this forum with detailed examples of how this can be done. Most of the customers who have adopted this approach have discovered that this is the least complex approach in terms of code that to be developed / maintained and offeres acceptable performance.

Similar Messages

  • What the best way to create XML files from JAVA application?

    Hi to all,
    I need to edit and to create new filex in format of xml. I know to parse, but what would be the best way to do:
    1. - Create new file, create like simle text file, or there is some clases that know to do it in more simple way
    2.a - Edit XML file, to take some data and add it to the XML in the place I want to.
    2.b - Also Edit, but not to add fields, just update some of them.
    Code examples or links to samples woul be welcomed.
    Best regards, Nick.

    I have tried working with XML directly using the Java classes but this was a pain. I then looked at DOM4J and JDOM and found JDOM easier to use.

  • Whats the best way to load test?

    So our app is ready for prime time and we are concerned about response times whether we will survive 100 simultaneous users.
    It would be additionally useful if I knew how many users we could tolerate simulataneously.
    I attempted running jmeter but I didn't spend a lot of time with it and it didn't overwhelm me with information.
    I get the sense that I would probably have to spend a couple weeks to really create useful, valid test simulations which I didn't have time for.
    Also, is it even legitimate? The fact that it is one single machine trying to simulate a hundred users on distributed machines?
    So, I really lacked a lot of confidence in my test.
    In fantasyland it would be great, if say there were some distributed google cloud machines that could simulate 100 users and start firing away at my app.
    Starting at 10 users and ramping up until no longer responsive and then providing those results.
    The fact is I don't have a lot of experience with this and would appreciate insight.
    Also, it just occurred to me that this is an internal app inaccessible from outside the organization.
    Does anyone have something they might consider the holy grail of load testing or good advice? Thx.

    If you have money to spend, I would recommend using Oracle's Application Test Suite (ATS) since it is the only test tool I know of that allows you to create a functional test and then convert it to a load test. The capabilities of this tool are pretty amazing considering that it is a single tool where the go to toolset in the past was Win Runner / Load Runner. With Win Runner, you needed 50 machines (or VMs) if you wanted to generate front end load for 50 users. With ATS, you record a script with your browser, and then convert it into a load test. You can adjust things like think time, ramp up time, sustained load, etc.
    What a lot of people miss is that testing tools can be used indefinitely, not just for getting through a migration. If you script your tests appropriately (which means that your user base trusts them), you can use them for every code release because it takes very little effort to run a test script. On top of that, you can set up strategically placed machines around your network that are set up to run a specific test script (think of a common transaction) so that performance metrics can be captured. I worked for a company that had 160 locations around the world and we used our testing tool as a performance monitor in the locations with the worst performance. Having a tool allowed us to see whether our performance issues were related to network, database, app servers, etc. This took the burden of explaining performance issues off of the users. Most users can't really articulate what the problems are anyway (and they aren't expected to).
    If budget is an issue, you can use JMeter from Apache, which will give you the load testing capability but you will miss out on the excellent reporting and management capabilities of the Oracle Application Test Suite.

  • [noob question] whats the best way to load movieclips with a loading screen

    for each level i have a number of movieclips bitmaps and sprites etc.. should i just load multiple swf's of everything in my level or keep all objects in the library and call upon them in the main fla
    this is for a mobile game btw.
    I have a loading screen.png file also, how do i know when each item is finished loading to stop the loading screen image?

    If you have money to spend, I would recommend using Oracle's Application Test Suite (ATS) since it is the only test tool I know of that allows you to create a functional test and then convert it to a load test. The capabilities of this tool are pretty amazing considering that it is a single tool where the go to toolset in the past was Win Runner / Load Runner. With Win Runner, you needed 50 machines (or VMs) if you wanted to generate front end load for 50 users. With ATS, you record a script with your browser, and then convert it into a load test. You can adjust things like think time, ramp up time, sustained load, etc.
    What a lot of people miss is that testing tools can be used indefinitely, not just for getting through a migration. If you script your tests appropriately (which means that your user base trusts them), you can use them for every code release because it takes very little effort to run a test script. On top of that, you can set up strategically placed machines around your network that are set up to run a specific test script (think of a common transaction) so that performance metrics can be captured. I worked for a company that had 160 locations around the world and we used our testing tool as a performance monitor in the locations with the worst performance. Having a tool allowed us to see whether our performance issues were related to network, database, app servers, etc. This took the burden of explaining performance issues off of the users. Most users can't really articulate what the problems are anyway (and they aren't expected to).
    If budget is an issue, you can use JMeter from Apache, which will give you the load testing capability but you will miss out on the excellent reporting and management capabilities of the Oracle Application Test Suite.

  • What is the best way to import a full database?

    Hello,
    Can anyone tell me, what is the best way to import a full database called test, into an existing database called DEV1?
    when import into an existing database do you have drop the users say pinfo, tinfo schemas are there. do i have drop these and recreate or how it will work, when you impport full database?
    Could you please give step by step instructions....
    Thanks a lot...

    Nayab,
    http://youngcow.net/doc/oracle10g/backup.102/b14191/rcmdupdb005.htmA suggestion that please don't use external sites which host oracle docs since there can not be any assurance that whether they update their content with the latest corrections or not. You can see the updated part no in the actual doc site from oracle,
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmdupdb.htm#i1009381
    Aman....

  • HT3819 I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    I have 2 Ipod touch's, one a 64gb and one an 8gb.  Whats the best way to use them both on the same itunes account?

    Click here for options.
    (64410)

  • Whats the best way to transfer everything from my old macbook pro to a new mac mini, i have a external hard drive which i backup to regularly via time capsule

    whats the best way to transfer everything from my old macbook pro to a new mac mini, i have a external hard drive which i backup to regularly via time capsule

    Check out > OS X Lion: How to use Migration Assistant to transfer files from another Mac

  • Wipe my hard drive clean except for the OS whats the best way?

    I need to wipe my hard drive clean except for the OS whats the best way?

    From Kappy (note: with this method, you will need to update to the present OS version using the appropriate Combo Update from Apple Downloads.)
    Boot from the OS X Installer Disc One that came with the computer. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities (Installer menu if using Panther or Jaguar) menu. After DU loads select the startup volume from the left side list then click on the Erase tab. Set the format type to Mac OS Extended (Journaled) then click on the Options button. Select the one pass Zero Data option and click on the OK button. Then click on the Erase button.
    Note: You can skip the Zero Data option if you are not concerned about removing sensitive personal data from the hard drive. If you choose to skip this part of the process then it is possible for others to recover data from the hard drive. The Zero Data procedure will prevent others from getting access to your personal information.
    This process will take 30 minutes to several hours depending upon the size of the hard drive. After formatting has completed quit DU and return to the installer. Now complete the OS X installation. At the completion of the installation do not restart the computer. Instead just shut it off. The next user will be presented with the Setup Assistant when they turn on the computer just as it would if new out of the box.
    https://discussions.apple.com/message/12364050?messageID=12364050#12364050

  • I want to connect a Mac mini to a Samsung 40", Whats the best way to do this?

    I want to connect a Mac mini to a Samsung 40" LED tv to use as the monitor, whats the best way of doing this?

    Understand that there is one HDMI port on your TV that is specifically designated for PC connectivity. The order that the TV or Mini are powered on may determine your results. For your specific TV model, check buyer reviews on Amazon or elsewhere that can include optimum TV/Computer settings adjustment for improved viewing results.

  • When I'm done with my fcp sequence, whats the best way to get it to dvd?

    When I'm done with my fcp sequence, whats the best way to get it to dvd?

    The advice to go to Compressor left out the part that you may want to convert your audio to AC3 becaus ethe MPEG2 bitrate is probably too high for DVD specs.
    This method is in the DVDSP manual and it's in the Compressor manual, both difficult to locate, but easily searchable.
    Here's what I'd do: Export the timeline form FCP in the native sequence settings, self-contained. Bring that self-contained movie into DVDSP and let DVDSP handle the transcode.
    The advice to go to iDVD is even easier.
    bogiesan

  • Whats the best way to get dvd onto 5800

    Peoples,
    I'm strugglin to get DVD onto my noka 5800. It's not obvious in the user manual and looking around the web i need to 'convert' it to the fim on.
    Please does anybody have an easy, fool proof way of doing this??????
    Message Edited by blueleaches on 21-Aug-2009 06:02 PM

    If its possible there should be some walkthrough's on google. 
    http://www.lmgtfy.com/?q=whats+the+best+way+to+get+dvd+onto+5800 

  • Whats the best way to get a big text file in a CLOB variable?

    Hi,
    I have a very premitive type of question.
    I have a big text file, say 30 MB, in a Unix directory (Solaris). I want to get the whole text of that file in a CLOB variable.
    I saw the procedure dbms_lob.loadfromfile/loadclobfromfile. In both these cases, according to the documentation, the target where is collect the data will be a BLOB and not a CLOB. So, I have to convert that blob into a clob.
    If I want to avoid all this conversion process, whats the best way to get a text from a file into a CLOB variable?
    Please suggest.
    Regards

    In addition, LoadFromFile is overloaded to handle both BLOB and CLOB:
    PROCEDURE LOADFROMFILE
    Argument Name                  Type                    In/Out Default?
    DEST_LOB                       BLOB                    IN/OUT
    SRC_LOB                        BINARY FILE LOB         IN
    AMOUNT                         NUMBER(38)              IN
    DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
    SRC_OFFSET                     NUMBER(38)              IN     DEFAULT
    <BR>
    PROCEDURE LOADFROMFILE
    Argument Name                  Type                    In/Out Default?
    DEST_LOB                       CLOB                    IN/OUT
    SRC_LOB                        BINARY FILE LOB         IN
    AMOUNT                         NUMBER(38)              IN
    DEST_OFFSET                    NUMBER(38)              IN     DEFAULT
    SRC_OFFSET                     NUMBER(38)              IN     DEFAULT

  • Im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    im having trouble with my ipad mini in regards with the icloud back up notification; if i press "ok" it doesnt dis appear, i couldn open my ipad/turn off because of this notification; whats the best way to get rid of this? please help

    Have you tried a soft-reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider if it appears), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Whats the best way to move files from a hard drive that wont boot?

    I made a bootable USB disk and it appears to work fine. I can still read and open files on the old disk (admin account only) from the new USB drive the old one doesn't boot. I don't have a backup but would like to move files to the USB and then reformat the old drive. 
    Whats the best way to capture the data?
    There are four user accounts on the old drive. Only one on the new drive so far. Do I need to set up four accounts on the new drive in order to copy data from each?

    Time Machine is for making backups and restoring ones it previously created. It doesn't restore data backed up or copied in other ways. In your case, it's better to use a cloning utility or manually drag the files than it is to use Time Machine.
    (124317)

  • Whats the best way to create USER variable in BI Apps?

    I have just installled BI Apps and am trying to integrate EBS R12 with OBIEE 11g
    We have USER variable already defined in the BI Apps rpd.
    In EBS Security context init block i need to define USER variable, but when i define it... it says *'USER' has already been defined in the variable "Authentication"."USER"*
    Whats the best way to create USER variable for EBS Security Context init block?
    1) Delete the existing USER variable and then define a new one ( in this case all the places where USER variable is getting used in the rpd would become <missing>)
    And i was told that it should not be done.
    Let me know how can it be done.
    Thanks
    Ashish

    Disable existing Init block and then double click on USER variable and hit on NEW... button to create new Init block
    Thanks
    Edited by: Srini VEERAVALLI on May 1, 2013 4:18 PM

Maybe you are looking for

  • How to avoid mutating error when insert or update record

    Hi , I have one transaction table which is having some detail record under one transaction number, after the one transaction number is over by insert or update, i want to check the total amounts of one flag should be matched on same table if it is no

  • Is it possible to have CFTREE auto expand? (with binding)

    Hi there, ColdFusion newbie here so please bear with me. I'm doing some tutorials on CFTREE right now, so far it works well as is, but I have a question: Is it possible to have the whole tree expanded automatically when the user first open the page?

  • SQL Developer 2.1 no longer allows to edit another granted schemas

    Hello, Just switched from 1.5.5 to 2.1 and going back! In 1.5.5 I was able to logon as me (developer) and edit functions of batch schemas. Guess what! Not any more in 2.1!! Even if my priviliges allows me to do this!! Any ideas how to bypass this pro

  • Function Vs Proc

    procedure has OUT parameters though function has returning a single value using return we also can have out parameters in function also.. so what is the criteria whether to go for function or procedure??

  • Manual removal of ZCM from SLES 64 bit...

    Is there a way to manually remove it? I tried the uninstall option and no go....