XSU for C++

Does anyone know if there will be a version of XSU for C++? I want to insert/delete/update records in a database, given a XML document from a C++ program.
Do I have any other options if I cannot use the current version of XSU?
Thanks,
Jon Shuler

Does anyone know if there will be a version of XSU for C++? I want to insert/delete/update records in a database, given a XML document from a C++ program.
XSU is a Java-based utility. For your case, you can create PL/SQL procedures with XSU for PL/SQL and use your C++ program to invoke them.Do I have any other options if I cannot use the current version of XSU?
This really depends on your current database version. With Oracle9i, you should use XMLType.

Similar Messages

  • Using XSU for Storing XML data

    Please how can I use the XSU API for storing XML documents in Oracle8i? I know part of the code to store a document but how do I import the XSU API?
    Do I have to download it or use it via Oracle?
    example:
    String xmlDoc = "my_xml_document";
    Connection conn = >>DriverManager.getConnection(...);
    OracleXMLSave sav = new OracleXMLSave
    (conn,"purchaseOrderTab");
    sav.insertXML(xmlDoc);But how do I use OracleXMLSave? How do I import the XSU API?
    thanks for your help
    null

    What is XSU? I think you question should be posted at the XML or XDK forum.

  • Any examples of using XSU for multi level nesting

    Are there any examples of inserting into a set of object tables using the XSU where the parent-child relationship is more than 2 levels deep. i.e where you have to use REF's or views to do this.
    I have had no problems with a 2 level insert using object tables but that's not much use to me.
    I know that natively only 2 levels of nesting are supported.
    I may have to resort to parsing the data manually using the PL/SQL parser if I can't get the XSU to do it.
    null

    lAnubisl wrote:
    My customer's solution has several issues generating PDF files and we are looking at the Acrobat SDK as at the instance of the final truth.
    I use Interop.Acrobat.dll as a .NET project reference to open and resave PDF documents. I'd like to do all things I mentioned above.
    After years and years, I have concluded that if you do serious PDF development, you need a set of libraries. For instance, if you are doing typesetting type of work ("vertical center", "horizontal center", "margin", etc., etc) , there is an excellent library from a guy in Germany (land of Johannes Gutenberg and printing presses)...
    ... which turned out to be useless in my next project which dealt with AcroForms.
    I know exactly what you mean by "the final truth", sometimes I wish Adobe had some sort of official validating tool (like XML does).
    Per your comments, I would recommend you to consider this library. It is available in all languages and its output is the same quality as Adobe's or at least in the same league:
           http://www.pdftron.com/pdfnet/index.html
    If you want to comment further, we must go to a different forum, since we are not supposed to discuss any non-Adobe products here.

  • XSU for ORACLE v8.1.5?

    I am running ORACLE v8.1.5 and I would like to use the XML SQL utility. So, I believe I need to download XSU111 rather than XSU12. Is this the case? And, if so, from where do I download XSU111? I have only been able to find XSU12.
    Thanks.

    Can u please let me know that how u installed it.
    I have also downloaded the XSU111 and loaded all the java classes. but the when I load OracleXMlsql.jar it does not resolves classes OracleXMLStore, OracleXML and OracleXMLSave givinf error ORA-29354. Due to which I cannot generate a XML document through SQL query.
    Mazhar
    null

  • What kind of XML concepts does XSU support?

    From the XSU release notes I have learned that XML attributes are ignored and an XML document has to be transformed via XSLT.
    What about other tags like choice nodes, sequences?
    Does XSU also support inheritance and is it capable of recognizing multiple occuring elements? Or can all this achieved only via an XSLT transformation of the original document?
    Thanks for your help,
    Bernhard

    From the XSU release notes I have learned that XML attributes are ignored and an XML document has to be transformed via XSLT.
    What about other tags like choice nodes, sequences?
    Does XSU also support inheritance and is it capable of recognizing multiple occuring elements? Or can all this achieved only via an XSLT transformation of the original document?
    Thanks for your help,
    Bernhard I think you mean using XSU for data loading. Then, what XSU support is a format like:
    <ROWSET>
    <ROW>
    <COLUMN_NAME>....</COLUMN_NAME>
    </ROW>
    </ROWSET>
    Currently the XML SQL Utility (XSU) can only store data in a single table. Otherwise, you need help from XSLT or INSTEADOF Trigger.

  • Converting Oracle XML Query Result in Java String by using XSU

    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

    Hmmm.. Pretty basic just look at the example:
    OracleXMLQuery qry = new OracleXMLQuery(conn,"Select max(ps.datum) from preise ps where match='"+args[0]+"'");
    String xmlString = qry.getXMLString();
    Hi,
    I have a problem by converting Oracle XML Query Result in Java
    String by using XSU. I use XSU for Java.
    For example:
    String datum=new OracleXMLQuery(conn,"Select max(ps.datum) from
    preise ps where match='"+args[0]+"'");
    String datum1=datum;
    I become the following error:
    Prototyp.java:47: Incompatible type for declaration. Can't
    convert oracle.xml.sql.query.OracleXMLQuery to java.lang.String.
    Can somebody tell me a method() for converting to solve my
    problem??????
    Thanks

  • Errors loading XSU

    8.1.6
    JDK 1.2 or 1.1.6
    When when running the XSU install script loadjava fails with:
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/dml/OracleXMLStaticSave could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/query/OracleXMLQuery could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/query/OracleXMLQuery could not be resolved
    ORA-29534: referenced object SCOTT.oracle/xml/sql/query/OracleXMLStaticQuery could not be resolved
    All of the above objects exist in an invalid state in the scott schema and will not complile successfully. I feel I'm probably missing somthing from my classpath but unable to determine what it is. What is the technique for determining what I'm missing?

    Never mind... I found the answer, I was trying to load the wrong level of the XSU for 8.1.6.

  • Managing commit and rollback via XSU

    Hi there
    I am using the XSU for Java version 8.1.7. on an Oracle 8.1.7 database.
    I am managing updates on multiple tables from a single XML document, by splitting the XML into sections and calling insertXML, updateXML and deleteXML for each table requiring changes.
    I would like to know how I can manage any commits on the database, so that the whole batch may be rolled back if some data is not committed. Is there a call in the XSU to handle this, or should it be done on the JDBC connection? I have looked at the setBatchSize and setCommitBatch functions, but they seem to be dependent on the number of rows of XML being processed, and I just want to commit after all calls to the XSU have completed successfully.
    Can anyone help or enlighten me?
    TIA
    Tim McMaster

    Trouble using forums?
    Can this be solved
    Still having problems!
    Why would you want to start a new thread?
    This just makes it harder for people to help you because all of a sudden they have to
    * ask you lots of questions because you don't really provide enough info, or
    * search for the old threads and read through what happened so far.
    Have you done basic troubleshooting?
    [ like making a test table with all the same columns [b]except that infamous 'Postco' column - and test inserting into this test table? ]

  • PLSXML vs. XSU

    This question is for experienced users out there..
    What's the difference (advantage/disadvantage) of using PLSXML or XSU when generating XML datagrams.
    I need to generate a XML document from SQL query within PL/SQL (8.1.7) and searching documentation I came accross information about XSU for PL/SQL (DBMS_XMLQuery package) and PLSXML utilities (DBXML package). What's the difference? Can you use both of them with more-or-less equal results?
    Thanks!

    Thanks Matt.
    That is one of the things that will be investigated. My worry was that I don't consider it a "tweak" to get a 3500 up to a Pentium III. So here is a list of things we are trying in the not too distant future:
    * Use JDK 1.3 on the Sun
    * Get Net8 set up and use oci drivers
    * Run XMLLoader inside the Oracle JVM. This is 1.1.8 or so, but since it looks like the slowness is with insertXML and deleteXML, being in Oracle's memory should help (?) It LOOKS like the XSU stuff is already loaded because I think that is what the PutXML and GetXML front ends use (Steve? I see some kind of Java code in there for insertXML, etc. when poking around with DBA Studio.) If that's not the case then I'd like to know why they load simple tables faster than XMLLoader.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Kennedy ([email protected]):
    You'll see much greater than 20% difference on the sun between 1.1.8 and 1.3 with hotspot. Perhaps in the 200% - %300 range. Especially with multiple processors. I would try that rather than trying to hunt down any other problems.
    <HR></BLOCKQUOTE>
    null

  • Downloading xsu

    where do I download XSU for Oracle 8.1.6 and what other APIs are required to run the utility from Java(not from SQL)
    thanks in advance

    XSU is now an integrated part of the Oracle XDK for Java download at http://otn.oracle.com/tech/xml

  • How to load XML files into ORACLE8i database?

    SAP data is being extracted into XML format (via IDOC) files which are being transferred to an ORACLE8i box. There will be a large amount of data transferred on a daily basis which will include updates and inserts. From all the information that I have read on this subject there are 2 options available :
    1. XML-SQL Utility - which converts XML into INSERT, UPDATE or DELETE SQL. There does not appear to be that much functionality available by this method for decodes, transformations on the input data.
    2. SQL*Loader - There was a statement in 1 piece of documentation stating that SQL*Loader could be used for loading XML format data files. I cannot however find any further information on how this is achieved or how it works.
    If anyone has any experience in loading XML format data files using either of the above methods (preferably SQL*Loader as it has more functionality) then could you please provide me with examples or guidance on this matter? Any help would be greatly appreciated as I am not familiar with XML format data files. I am from an Oracle 7.3 background but do not have much experience with Oracle 8 onwards.
    Disclaimer.
    Any views expressed in the above paragraphs are my own and not that of Hewlett Packard Ltd.

    We are loading XML into our database using CLOB datatypes. We don't use the XSU for inserts as it is too slow. We parse the incoming XML document into a PL/SQL record type and then build a generic insert. This might not work well if you have many tags to parse into columns. We also store the entire XML CLOB into a column without parsing the individual tags into separate columns. We then use Intermedia Text for fast, index-based searching within the XML column.
    Check out The Oracle XML Portal website for code examples on how to do this:
    www.webspedite.com/oracle

  • XML to table mapping in oracle database

    Hi,
    I am having 2 modules in my application:
    First module takes the XML file, parse it, fetches data, creates a table in database and stores the data into that table.
    Second module does vice versa. it takes a table, retrives data and write out an XML file.
    In first module I use DOM parser. But I want to use Oracle XSU for the second module. But it seems that I can not use oracle XSU and DOM togather.
    when I include xmlparserv2.jar in class path I can not run my first module.
    Is it possible that I can use dom for first module and XSU for second module?
    It gives me error like ..
    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLText
    at oracle.xml.parser.v2.NonValidatingParser.<init>(NonValidatingParser.java:139)
    at oracle.xml.parser.v2.XMLParser.<init>(XMLParser.java:122)
    at oracle.xml.parser.v2.DOMParser.<init>(DOMParser.java:82)
    at oracle.xml.jaxp.JXDocumentBuilder.<init>(JXDocumentBuilder.java:71)
    at oracle.xml.jaxp.JXDocumentBuilderFactory.newDocumentBuilder(JXDocumentBuilderFactory.java:72)
    BUT if I remove xmlparserv2.jar from classpath then it works fine...
    I would really appreciate if anyone can throw light ...
    Thanks in advance
    rp

    Hi,
    I had somewhat a similar problem.
    Did you use oracle.xdb.XMLType.getDOM()?
    getDOM() needs xmlparserv2.jar, which only provides a DOM implementation that is DOM 1.0 and Core 2.0 compliant.
    In my case, when I used DOM 3.0 methods in org.w3c.dom, I ran into the "method not found" type of error.
    My solution was to use the DocumentBuilder that comes with the JDK to create the DOM instance in the code.
    P.

  • XML SQL Utility - settagcase - all tags are upper or lower

    I am using the XML SQL Utility (XSU) for PL/SQL to generate a xml document from some tables and objects. Is it possible to have the xml elements start and end tags appear in the case of the objects I have defined (i.e. CamelCase)? I can either have them appear as all upper or all lower case. However the oracle documentation has a SETTAGCASE function with an option for "as are". Is this supposed to allow for the case to follow how i have defined the fields in the object? If not is there a way?
    For example here is an object
    create or replace TYPE     CREDIT_APPLICANTTYPE AS OBJECT
      First VARCHAR2(15 BYTE),
      Last  VARCHAR2(35 BYTE),
      Middle VARCHAR2(1 BYTE),
      Suffix VARCHAR2(3 BYTE)
    );Settagcase 0 option doesn't seem to do anything different than the upper_case option when i generate the xml
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmlque.htm#i1033636
    set serveroutput on
    declare
      queryCtx dbms_xmlquery.ctxType;
      charstring VARCHAR2(255);
      outxml CLOB;
    begin
        queryCtx := dbms_xmlquery.newContext('select CREDIT_APPLICANTTYPE(''Joe'',''Smith'',''A'',''Jr.'') as AppName from dual');
        dbms_xmlquery.settagcase(queryCtx, 0);
        outxml := dbms_xmlquery.getXml(queryCtx);
        dbms_xmlquery.closeContext(queryCtx);
        charstring := dbms_lob.substr(outxml, 255, 1);
        dbms_output.put_line(charString);
    end;Output is in uppercase but i would like camel case:
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <APPNAME>
    <FIRST>Joe</FIRST>
    <LAST>Smith</LAST>
    <MIDDLE>A</MIDDLE>
    <SUFFIX>Jr.</SUFFIX>
    </APPNAME>
    </ROW>
    </ROWSET>

    Actually I figured out the issue. Oracle automatically outputs the column alias as upper case unless you put it in quotes. I defined my object like this and it works with settagcase 0
    create or replace TYPE CREDIT_APPLICANTTYPE AS OBJECT
    "First" VARCHAR2(15 BYTE),
    "Last" VARCHAR2(35 BYTE),
    "Middle" VARCHAR2(1 BYTE),
    "Suffix" VARCHAR2(3 BYTE)
    );

  • Building big XML file from scratch - Urgent

    Oracle 8.1.7.3 on windows NT platform
    What is the best way to generate a quiet big XML file from multiple tables ?
    I have information stored in many relational tables from which I need to generate a XML flat file either stored in a CLOB field or in a text file in a system directory. This XML file will be then used
    as an input to generate a report either in HTML using XSLT, or in a PDF file using apache-fop or in a MS Excel file using SoftArtisan ExcelWriter.
    My XML file has many levels in it structure, I mean that it is composed of one root element with 2 children, each children has a 3 children. One on these 3 children has 2 children and so on. Actually there are more or less 10 nested levels.
    To generate this XML file, I tried to use XSU for PL/SQL with the nested cursor() feature plus XSLT to transform the raw XML file to my requirements.
    But obviously there are some limitations using this method. Particularly, if the inner cursor returns an empty set I get exhausted resultset java error... A TAR confirmed that limitation.
    So I had to give up this method to use basic nested PL/SQL cursors. Each fetched row is then inserted into a table (varchar2) with a sequence number so that with a cursor like select xml_chunk from my_table order by sequence, I get the whole XML file that I save either in a flat file or in a CLOB (using append method).
    This method works fine, but it takes time and it's not flexible at all as I have to construct each XML tag. I guest this way of proceeding is not the more efficient...
    Using DOM method won't be better as I still need PL/SQL cursor to select each level of my XML structure and in addition I might for sure encounter a problem of memory.
    So what solutions would you suggest to generate this XML file. It must be quiet fast. The XML file can be up to 2Mo big. My system is actually a kind of on-the-fly reports generation. I mean that the XML file needs to be created with up-to-date data many times during the working hours !
    Quick answers or suggestions would be greatly appreciated. It's very urgent !!
    Thanks

    I looks like the best way is to using the SAX processing for your application? Do you know the DTD or XML schema of your output XML document?
    Would you send me the sample code for the method "to use XSU for PL/SQL with the nested cursor() feature plus XSLT to transform the raw XML file" to reproduce the problem?

  • How can i query oracle database data to xml file with c++?

    I want query data to xml file directly in my c++ application .
    I know the oracle XSU provide interferce for query data to xml
    file directly.
    But XSU for oracle8i does not support c++.
    I do not know if XSU for oracle9i support c++.
    can you tell me?
    If i do not use XSU to finish my applicayion.
    what interface that oracle provide can help me do my work?
    thank you !

    BTW why do you want to migrate oracle database data to db2 database? Any specific project requirement like Parallel run with Oracle database (e.g data replication)? Or any other issues - Cost? Manageability? Availability? Business requirements?
    Do you need to do a day-to-day data transfer or it is for permanent migration?

Maybe you are looking for

  • Ship to party Address is not Printing

    Hi All, We are facing a problem for a particular PO. When we see the print preview for a particular PO for the first time Ship to party address is not printing .Whereas in the next time if we see the print preview its showing that address.Its because

  • Should I buy a MacBook Pro or a MacBook Air

    I am currently going into high school and have saved enough money to buy a macbook. However, I am debating to if i should buy a MacBook Pro or a Macbook Air. I would use the laptop for these things 1. Basic Microsoft programs(Word, PowerPoint, Excel,

  • Still Error deploy war.....

    Hi, I am using 6.5 on win 2K. I used deployment tool to deploy my war. It doesn't return error or anything. However, when I tried to access the jsps (Login.jsp). I have the following message in kjs prompt and Login.java and Login.class are not create

  • IPhoto quits unexpectedly constantly

    iPhoto 6.0.5 quits after a period of time, after attempting to select music from iTunes for a slideshow, etc. I have done a complete rebuild (using command+option at iPhoto startup) and a manual rebuild but nothing has changed. I recently (August 200

  • I need a link for re-installing Design Premium and acrobat 9

    I had to replace a hard drive so now I need to load my software back to my laptop. I purchased Design Premium CS5 and APRO 9.0 in 2011.  How do I restore my products to the laptop?