READ XML file + XSD file to create an load data in a table

Hi gurus,
What way you will use to create and load data in a SQL TABLE by reading xml+xsd files.
Can you provide my a running example?
Is it better to stage the XML structure + XML data in the database before creating/loading the real SQL table. (the size of the XML file could me 1GB)

See the FAQ..
For very large files make sure
1. Use FTP to load...
2. Ensure schema is registered with storeVarrayAsTable="true" and maintainDOM="false'
3. Install latest 10.2.0.3.0...
or
Look for SaxLoader example in the FAQ
-M

Similar Messages

  • XML and XSD file to an internal table

    I had read a lot of thread  but i don't understand how to deal with xml/xsd in R3.
    I need someone that have a definite example for this escenary please.
    With OPEN DATASET took from the server XML and XSD file, and put it in two internal tables type string.
    What functions or method have to use, and how to use them, to charge the XML file in an internal table?
    This is an example of XML and XDS:
    XML
    AND CONTINUE
    Best Regards,

    I just tried to interpret your question, it was not obvious what you wanted.
    I guess what you mean is that you have defined (statically) a deep structure, and you want to decode the XML into it. That is called a transformation (transaction STRANS, statement CALL TRANSFORMATION). You have the choice between 2 transformation languages: XSLT and ST. Of course, it depends what release you are running.
    I advise you to play first with the ID transformation, to convert an ABAP deep structured data object into XML, so that you see what XML is generated, this one is called asXML. If you create your own transformation, when you call it, it will first convert automatically the data object to asXML, and the transformation has to do the rest of the job.
    You can do the opposite, i.e. converting from XML to a data object, according to the same principle (intermediate asXML).
    Well, there are lots of things to say, I recommend you to read articles and documentation on XSLT and ST (search on SDN).
    About XSD, it won't help (and I did never see any possibility to use it) to decode the XML, as you must anyway define the target data object statically (and there's no tool to generate the ABAP code of the data object definition from the XSD).
    Note that you may also use iXML libraries to parse the XML.
    Please tell us more.
    BR
    Sandra

  • Where to place xml and xsd files in Tomcat

    Hi,
    This is rather a stupid question but I am totally new to JAXP technology and i wanted to know is there a specific location where i need to store the xml and xsd files i created?. And how would i mention the target name space for the xsd file? I am usinf eclipse IDE and Tomcat 5.5.
    Thanks for the patiance.

    Is the question so stupid that no one even want to try to reply?

  • Facing problem in xml schema xsd file registration

    Hi,
    i am facing problem in xml schema xsd file registration when
    the number of column is more. It is showing persing error.
    if i am deleting few column from xsd file . It is working otherwise
    showing error. Is there any solution for that please suggest me.
    The Error is
    ORA-31011:XML parsing failed
    ORA_19202: Error occurred in XML processing
    LPX-00230 : (message vary time to time-like invalid tag ending etc.)
    Regards
    Manoranjan
    and thanks in advance

    Where is you XML coming from. Are you sure it's valid. If you are hard coding it as a SQL String constant are you hitting the 4k / 32K limit on the size of SQL / PL/SQL constant. Have you tried loading the content from a bfile..

  • Getting Page not found while trying to read ws-addressing.xsd file in IE

    Hi All,
    Here I am creating dynamic partner link to call OSB service in my BPEL process. I wan make it dynamic to change run time server address and port numbers. Here I am getting Error (Error occurred reading inline schemas) while creating reference variable as per BPEL cook book. To resolve that exception, I have created /bpel/system/xmllib/ folders in SOA 11g and placed ws-addressing.xsd file. After I am trying to import in BPEL process, still I am getting same Exception.
    Even I tried to read ws-addressing.xsd file through IE browser (http://Host:Port/orabpel/xmllib/ws-addressing.xsd) after placing that directory(/bpel/system/xmllib/). My SOA server and everything is running.
    Thanks in advance.
    mally

    Paul,
    You can try the suggestion in this thread on the XE forum:
    Re: Problem with importing HTML DB applications
    It also shows how to turn on logging in the XE web server.

  • Generate xml from xsd file

    i would like to make my java application automaticaly convert a given .xsd file to an .xml one.
    i know that with jdev you can generate an xml file from xsd one, and i want my application do the same thing.
    i know also that i can use JAXB: first i bind the xsd file then i marshall the java class created to obtain xml. But i dont know how to do it.
    is there a simple way to use the "things" behind the jdev xml generation from xsd.

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

  • Validating a xml schema (xsd file)

    Hi,
    I was wondering - my program should accept schema files and before doing whatever it does with them I want to put them through a validation and present errors if any.
    I wasn't sure what is the right way to go about this - I know how to set up a validating parser with my own ErrorHandler and retrieve error info for simple xml files and xml schema instances, but how do I set up the parser to validate a schema definition?
    My first idea was to validate it like I would validate any schema instance, since xsd files also have their own schema definition, but that seems kind of funny, since obviously the parser already knows what a schema definition should look like.
    Has anyone done this?
    Thanks,
    Uri.

    Try something like this??
    DocumentBuilderFactory DBF = null;
    try
    DBF = DocumentBuilderFactory.newInstance();
    catch (Exception fce)
    // Set various configuration options
    DBF.setValidating(true);
    DBF.setNamespaceAware(true);
    DBF.setIgnoringComments(true);
    DBF.setIgnoringElementContentWhitespace(true);
    DBF.setCoalescing(true);
    DBF.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource", new File(Filename));
    DBF = DBF.newDocumentBuilder();
    DBF.setErrorHandler(this);
    DBF.setEntityResolver(this);
    catch (Exception pce)
    blah blah blah blah....
    I hope this is what you were looking/asking for... I could be way off base here 8-))

  • Create sql loader data file dynamically

    Hi,
    I want a sample program/approach which is used to create a sql loader data file.
    The program will read table name as i/p and will use
    select stmt will column list derived from user_tab_columns from data dictionary
    assuming multiple clob columns in the column list.
    Thanks
    Manoj

    I 'm writing clob and other columns to a sql loader dat file.
    Below sample code for writing clob column is giving file write error.
    How can I write multiple clobs to dat file so that control file will handle it correctly
    offset NUMBER := 1;
    chunk VARCHAR2(32000);
    chunk_size NUMBER := 32000;
    WHILE( offset < dbms_lob.getlength(l_rec_type.narrative) )
    LOOP
    chunk := dbms_lob.substr(l_rec_type.narrative, chunk_size, offset );
    utl_file.put( l_file_handle, chunk );
         utl_file.fflush(l_file_handle);
    offset := offset + chunk_size;
    END LOOP;
         utl_file.new_line(l_file_handle);

  • Newbie - XML File - How to load data and populate tables

    Hi,
    I'm newbie to XML data handling.
    I have a file that is provided in XML format with data from an external system.
    I need to load data from that file and populate some field in one or more tables.
    I have two options:
    1. Load the XML file directly from OS and populate the tables directly (I'm not sure if this is possible or not)
    2. Load the entire XML file from OS into a CLOB or a BLOB(?) and the select the data form the CLOB and populate my tables.
    I need some guidance about what is possible and how to do it.
    My preferred approach if possible is to load the data directly from OS and populate the target tables without loading into the database previously.
    Thanks for the help.
    Tech Info:
    OS : Unix / Windows
    DB Version: 11.2 or 11.1
    JF

    forum has many examples
    use search
    as example see
    Re: Load xml data in Oracle table
    Re: Load an XML file into table(s)
    Re: load a file

  • Loading data from oracle table to text file........

    how can i load data from a oracle table to a text file or CSV file using PL/SQL procedures where the pls/sql code will take the table name dynamically.........
    soumen

    Try this thread..
    Is it possible to export a pl/sql region as a csv file?

  • Error while loading  data into External table from the flat files

    HI ,
    We have a data load in our project which feeds the oracle external tables with the data from the Flat Files(.bcp files) in unix.
    While loading the data, we are encountering the following error.
    Error occured (Error Code : -29913 and Error Message : ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: un) while loading data into table_ext
    Please let us know what needs to be done in this case to solve this problem.
    Thanks,
    Kartheek

    Kartheek,
    I used Google (mine still works).... please check those links:
    http://oraclequirks.blogspot.com/2008/07/ora-29400-data-cartridge-error.html
    http://jonathanlewis.wordpress.com/2011/02/15/ora-29913/
    HTH,
    Thierry

  • How to load data from oracle table to XML using ODI ?

    Hello Team
    I am trying to load data from an oracle table to an xml file. I have configured the physical and the logical schemas for the same. I have used SQL to SQL as LKM and SQL to SQL Append as IKM with Sunopsis Memory Engine as staging area.
    After this, when I am executing the interface, it is executed without any errors but to my surprise I am not finding the relevant data in the xml file. What could be the reason ?
    Please look into this and lemme know how to solve it.
    Thanks.

    908458 wrote:
    Hello Phanikanth
    Even IKM SQL Control Append is not solving the problem. There are many " order columns" in the target xml table. I have not mapped them or specified any order. Does the problem persist because of this ?
    Thanks
    Manoj
    Ocle to XML file loading issue in ODI 10.1.3.5

  • How to read XML from UNIX file system

    Hi,
    I have this code with read a xml file from windows:
    Document doc = builder.build(new File(C:\\mywork\\src\\Contacts.xml));
    But how can I read the same file from UNIX? (The file is located in "\tmp\Contacts.xml")
    Thanks
    Kenny

    Hi,
    I have this code with read a xml file from windows:
    Document doc = builder.build(new
    File(C:\\mywork\\src\\Contacts.xml));
    But how can I read the same file from UNIX? (The file
    is located in "\tmp\Contacts.xml")
    Thanks
    KennyNo, the file is really located in "/tmp/Contacts.xml". You would writeDocument doc = builder.build(new File("/tmp/Contacts.xml"));Also, your original code would need quotes around the filename too.

  • Read xml from PHP file from Java

    Hello,
    I have a php file that returns xml data like :
    <?xml version="1.0" ?>
    - <reply>
    <message>Friend Request Send</message>
    <status>sucess</status>
    </reply>
    Using java (actually BlackBerry client) I need to get this data and based on status, dispaly the message. I don't want to use any SOAP. I am lost, with how to do and what to do to achieve the goal.
    I guess, I will have to use URL to sent and get the data. Am I correct or got to use something else which is better ??
    Can anyone help me how to do. Any help/guidance is highly appreciated. Any code line to achieve the same will be much better to understand and implement for me.
    Thanks

    Hi,
    Yes, I understand that socket programming can't and shouoldn't be done.
    In most of the cases, I will ahve to pass some data eg. for login - username & password, for register - all fields, etc. Then in that case, if i use URL, I will have to encode url like "http://...com/login?username=John&password=mathew", then open connection, then ????
    If I do url.openStream() straight away, i don't think its correct. I should be able to send data in some form and then get the resonse back.
    How can this be achieved?
    URL url = new URL("http://localhost/login.php");
    HttpURLConnection conn = new HttpURLConnection(url);
    conn.connect();
    conn.setRequestMethd("POST");
    Now how tdo I set parameters or set the url as http://localhost/login.php?username=John& password=mathew
    then how do i get the
    String msg = conn.getResponseMessage(); ' This may be normal msg or xml
    am I going this much correctly or doing something wrong. Then will also have to get the contents ou of xml - message, status, reply.
    Can you let me know about status till now and to move ahead.
    Thanks,

  • Flat file (csv) to oracle database - get dictionary data from oracle table

    Hello,
    I need to develop following scenario. I have flat csv file with some data, for example:
    City;Address;Name
    In oracle schema, there is table where data from imported csv should be written. Also, in the same schema, there is table named CityDictrionary. After ODI loads each row from csv, it should translate text representation of City to numerric ID got from CityDictionary table. And this numeric value should be placed to destination table, instead of direct text value from csv.
    What is the simplest way to accomplish this task? Can you provide any tips?

    You can achieve this easily with a single ODI interface. The flat file and the CityDictionary tables are your sources. Identify the field on the CityDictionary table and the corresponding field on the flat file that will be used to join the data sets (e.g. the city name). Create a join between the sources using these fields. Because you're using a flat file as one of your sources, the join logic will have to be performed on either the staging or the target.
    The target is your destination table, and you should map the ID from the CityDictionary table to the appropriate field in the target, as well as any other required fields from the flat file.
    This type of interface is a fairly typical method of populating a normalized table.
    Alternatively, you can use a lookup - see the following blog for an example. In your case, the flat file will be your source and the CityDictionary table will be used for the lookup.
    http://www.odigurus.com/2012/02/lookup-transformation-using-odi.html
    Edited by: _Phil on Oct 1, 2012 11:52 PM
    Edited by: _Phil on Oct 1, 2012 11:57 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Boot from time machine to start up my macbook Pro?

    Can I boot up from my time machine to start up my macbook pro with 10.7.5? I have not been able to start up from my diskWarrior 4.4 disk in order to rebuild my hard drive, and I did not get a 10.7 system disk when I bought my computer. Also, if I can

  • MacBooks not printing correctly on HP mfp from Filemaker.

    There are several Macbook Pros at our company and all of them are unable to print out of Filemaker 6 to our HP multi-function printers. All running 10.5.4. I have updated drivers, checked page setup, deleted presets. You know, the normal stuff. Also

  • HT1296 My calendar on iPad is not synching to the Mac

    I have checked the box on ITunes under the IPad for "Sync with this IPad over Wi-Fi" but it is not happening. Anybody able to help with this please?

  • Any one noticed issues when UCM contributor data files indexing in GSA

    Hi Guys, We are using Google search appliance to crawl UCM content (native documents). We don't have any issues with search results in this way. We are using dynamic converters to convert these documents into HTML in site studio web sites. But we hav

  • Problem with WTC

    Hi Experts I am new to WTC and tudexo and trying to setup WTC and call a TOUPPER Tuxedo service from java. My Tuxedo is installed in Unix box and my Weblogic in windows . I am using weblogic 10. When i created a WTC server and try to fire up the webl