Nested Queries in SQL Utility/Prod versions

Can you tell which XML product versions are in production....
we are implementing a custom XML solution for a B2B client, and are using
the 8i and the tools from oracle with quite a bit of custom code...
I have a couple of questions.
1. as suggested , i was able to get the oraclexmlsql.jar from the servlet zip and loading
it solved the problem of the jdbc string being printed int he cursor
syntax . it works from the xmlgen utility withing pl/sql. but when using OracleXML in a java prog the
results still printout the jdbc string..
any ideas...
2. Is there anyway to supress the rownum attribute tag in the subquery (cursor) results...that is the setRowIdAttrName .... w/o using xslt
3. We are implementing a solution using these tools.... we wanted to know which were the production versions.
thanks.
jayant

| 1. as suggested , i was able to get the oraclexmlsql.jar
| from the servlet zip and loading it solved the problem of
| the jdbc string being printed int he cursor syntax . it
| works from the xmlgen utility withing pl/sql. but when
| using OracleXML in a java prog the results still printout
| the jdbc string.. any ideas...
Could only be a CLASSPATH problem difference in your two
tests.
| 2. Is there anyway to supress the rownum attribute tag in
| the subquery (cursor) results...that is the
| setRowIdAttrName .... w/o using xslt
Not at this time. Rownum supression on the subquery should
probably follow your settings on the main query. I'll
suggest to the devs.
| 3. We are implementing a solution using these tools.... we
| wanted to know which were the production versions.
XDK Components for XML and XSLT are production.
XML SQL Utility and XSQL Servlet are still Technical
Previews and as such are not yet production.
null

Similar Messages

  • XML SQL utility - Error

    Hi,
    I am trying to retrieve data from a DB table and generate an XML file. I am using Oracle8i and IIS 4.0.
    I have downloaded XML SQL utility and I followed the installation instructions. I executed oraclexmlsqlload.bat file. It got executed and then I got the following error
    ORA-12203: TNS:unable to connect to destination.
    Let me know whether I should have JDK1.1x and JDBC 1.x compliant drivers installed in my machine. can any one help me ??
    vik

    Use xmlgen.setDateFormat('yyyy-MM-dd hh:mm:ss') and try it out
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mark Hansen:
    I am having trouble with the xmlgen package within the XML SQL utility software version 1.1.1. I wrote a package that gets an XML file and loads it into a temporary CLOB and then using xmlgen.insertXML it inserts the XML into table. Everything works fine except for a date column in the table. I get an error when it tries to parse the date. Using the procedure xmlgen.setDateFormat, I tried to set the default date format, but I still get an error. Below you will find the text of the error message that I am getting:
    ORA-29532: Java call terminated by uncaught Java exception:
    oracle.xml.sql.OracleXMLSQLException: Exception
    'java.text.ParseException:Unparseable date: "2000-08-24 08:34:24"' encountered
    during processing ROW element 0All prior XML row changes were rolled back. in
    the XML document.
    ORA-06512: at "SITESTEPPER.SS_LOG", line 30
    ORA-06512: at line 1
    I've tried a number of diferent date formats including the database default date format. I have a work around to this but it involves the use of a temporary table. Please Help!
    <HR></BLOCKQUOTE>
    null

  • SQL Parser supporting nested queries

    Hi,
    I require a SQL parser that supprt nested queries. JavaCC doesnt support nested queries so that one is out. If anyone knows of any open sourse parser, please enlighten me. I have already looked enough on Google but not of much use.
    thanks,
    abulkd

    | 1. as suggested , i was able to get the oraclexmlsql.jar
    | from the servlet zip and loading it solved the problem of
    | the jdbc string being printed int he cursor syntax . it
    | works from the xmlgen utility withing pl/sql. but when
    | using OracleXML in a java prog the results still printout
    | the jdbc string.. any ideas...
    Could only be a CLASSPATH problem difference in your two
    tests.
    | 2. Is there anyway to supress the rownum attribute tag in
    | the subquery (cursor) results...that is the
    | setRowIdAttrName .... w/o using xslt
    Not at this time. Rownum supression on the subquery should
    probably follow your settings on the main query. I'll
    suggest to the devs.
    | 3. We are implementing a solution using these tools.... we
    | wanted to know which were the production versions.
    XDK Components for XML and XSLT are production.
    XML SQL Utility and XSQL Servlet are still Technical
    Previews and as such are not yet production.
    null

  • Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database"

    Hi, Can I use Microsoft SQL Server Management Studio version 11.0 to write SQL queries for "SQL Server Compact 4.0 Local Database" ?
    When I use Connect Object Explorer, the "Connect to Server" dialog box which pops up has only 4 selections in the Server Type Drop Down List. They are Database Engine, Analysis Services, Reporting Services & Integration Services. I have read
    somewhere that there should be a compact database option. but I do not see it.
    What I would like to do is use free form SQL Queries against the tables in "SQL Server Compact 4.0 Local Database" .
    Once I have validated these queries, then I will use them in my Visual Studio 2012 C#, ASP.NET application. I created the Local Database using Visual Studio 2012 for use by my application.
    Thank you for your help..
    diana4

    Hello,
    With SSMS 2005 we have had the Option to work with SQL CE database files, but not with higher Version of SSMS.
    You can use the free SQL CE Toolbax instead; see
    http://sqlcetoolbox.codeplex.com/
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Unable to load Oracle XML SQL utility

    The following error appears for each java
    class, when we attempt to load Oracle XML sql
    utility into Oracle using the oraclexmlsqlload
    script:
    E.g.
    Error while resolving class OracleXMLStore
    ORA-00904: invalid column name
    Does anyone know why we would receive this error?
    Platform: Hp-UX 11.0
    Oracle Version: 8.1.5.0
    Background information:
    The database was original created with the
    compatible=8.0.5 set in the init.ora file, and
    the creatation of java classes failed due to this,
    so switched compatible to 8.1.0. Now after we
    we adjusted the compatible setting and restarted
    database, we started to receive the errors as
    described above.
    null

    Murali,
    Thank you, after I initialized Oracle's javavm
    the errors disappeared.
    The scripts were located under the javavm/install
    directory.
    Thanks again.
    Murali K (guest) wrote:
    : Hi Steven,
    : Is the JavaVM loaded. i.e. are all the classes necessary for
    : running Java in the server are loaded into the server? The
    most
    : common answer to your problem is that the javavm has not been
    : initialized correctly or the database does not have all the
    java
    : library files necessary to load java programs.
    : Please read chapter 4 in the Oracle8i java developers guide
    : which talks about initializing a java-enabled database by
    : running the initjvm script.
    : If this still occurs then maybe it is a bug and we will have
    to
    : look at it.
    : Thx
    : Murali
    : Steven Wegner (guest) wrote:
    : : The following error appears for each java
    : : class, when we attempt to load Oracle XML sql
    : : utility into Oracle using the oraclexmlsqlload
    : : script:
    : : E.g.
    : : Error while resolving class OracleXMLStore
    : : ORA-00904: invalid column name
    : : Does anyone know why we would receive this error?
    : : Platform: Hp-UX 11.0
    : : Oracle Version: 8.1.5.0
    : : Background information:
    : : The database was original created with the
    : : compatible=8.0.5 set in the init.ora file, and
    : : the creatation of java classes failed due to this,
    : : so switched compatible to 8.1.0. Now after we
    : : we adjusted the compatible setting and restarted
    : : database, we started to receive the errors as
    : : described above.
    null

  • Help Needed -- Oracle XML/SQL utility and PL/SQL parser

    Let's say we have an xml file
    <?xml version="1.0" standalone="no"?>
    <abc>
    <def>
    <ghi>test</ghi>
    </def>
    <jkl>
    <mno>testing</mno>
    </jkl>
    </abc>
    We can store the <def> tag in one table say def and <jkl> tag in another table say jkl.
    Is there a way to combine def and jkl and insert in one table so that there in one row with two columns test and testing??
    null

    Hi,
    Are u sure that it is a java enabled database? The most common
    case of failure with the xmlgen package is because the loadjava
    command did not succeed.
    Please make sure that oraclexmlsqlload.bat file loaded all the
    java procedures successfully. If not then u would have to java-
    enable your database by running the initjvm script. (please see
    the docs).
    Thx
    Murali
    Iveta Vojtko (guest) wrote:
    : Hi,
    : I have downloaded XML SQL Utility for Java against Oracle
    8.0.5
    : on WindowsNT. The xmlgen package was created successfully but
    : its body is invalid and my PL/SQL test has failed because of
    : following error: PLS-00103: Encountered the symbol "NAME"
    : when expecting one of the following: := . ( @ % ; not null
    range
    : renames default character. The symbol ":= was inserted abefore
    : "NAME" to continue.
    : Is it because I am not using Oracle8i? I just want to use the
    : server side of XML SQL. Please, reply asap. Thank you.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Sql*net patch version 2.3.2.1.12 down load

    While I am migrating 7.3 database to 8i, system is asking for install sql net patch version 2.3.2.1.12. How can I get this patch. Is it possible to download.
    Thanks/Rgds
    Biju

    I know that I should first download and apply the AD related patches separetly. But, what is the best practice for downloading the rest of them? How does an experienced Applications DBA handle this kind of situation? I was trying to use the Patching Wizard on OAM, but the request errored out stating that "****No codeline specified". Where do I specify this when I download a list of patches? I just pasted a comma separated list of 249 patches into the PatchList field on Download Patches page.Please see these docs.
    'Analyze specific Patch' via Patchwizard is failing with java.lang.NullPointerException [ID 1066985.1]
    Patch Wizard Utility [ID 976188.1]
    Patch Wizard FAQ [ID 976688.1]
    Patch Wizard : Overview [ID 1077813.1]
    Thanks,
    Hussein

  • Oracle 8i Lite and XML SQL Utility

    Can I use XML SQL Utility with Oracle 8i Lite
    using the Oracle 8i Lite Driver
    null

    There will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
    Oracle XML Team

  • XML SQL Utility, Unicode

    Hi,
    I have some questions to the XML-SQL-Utility:
    1.) Is there a bug in the oracle.xml.sql.query class:
    OracleXMLQuery qry = new OracleXMLQuery(conn,"select POSITION from DATAS");
    qry.setRowTag("DROW");
    OracleXMLDocGenDOM gdoc = new OracleXMLDocGenDOM();
    qry.getXML(gdoc);
    conn.close();
    Document docin = gdoc.getXMLDocumentDOM();
    NodeList rows = docin.getDocumentElement().getElementsByTagName("DROW");
    // The Node "DROW" wasn't found.
    // It work if I do it below
    NodeList rows = docin.getDocumentElement().getElementsByTagName("ROW");
    // It doesn't matter what is set in the "qry1.setRowTag("DROW");"
    (I use the sun parser)
    2.) I have a problem by insertXML(Document);
    I will insert a Document with a structure as below in my database:
    <?xml version="1.0" encoding="UTF-16"?>
    <ROOTDOC>
    <ROW>
    <DOCUMENTREF>133-12224</DOCUMENTREF>
    <TEXT>hello</TEXT>
    </ROW>
    <ROW>
    <DOCUMENTREF>133-124</DOCUMENTREF>
    <TEXT>world</TEXT>
    </ROW>
    </ROOTDOC>
    XmlDocument sdoc = new XmlDocument();
    Element rootDEl = sdoc.createElement("ROOTDOC");
    sdoc. appendChild(rootDEl);
    Element rowEl = sdoc.createElement("ROW");
    Element docREl = sdoc.createElement("DOCUMENTREF");
    docREl.appendChild(sdoc.createTextNode("133-12224"));
    NodeList rows = sdoc.getDocumentElement().getElementsByTagName("ROW");
    int size = rows.getLength();
    System.out.println("SIZE: " size "\n");
    // The size is null, what's wrong ?
    OracleXMLSave save = new OracleXMLSave(conn, tabName);
    int rowCount = save.insertXML(sdoc);
    // It didn't insert something in my table !
    3.) I save Unicode UTF-16 in my database with the XML SQL Utility:
    <?xml version="1.0" encoding="UTF-16"?>
    <ROOTDOC>
    <ROW>
    <TEXT>D$55DD</TEXT>
    </ROW>
    <ROW>
    <TEXT>tt%zu||</TEXT>
    If I read it whit the oracle.xml.sql.query, it is Unicode UTF-8:
    OUTPUT IS:
    <?xml version="1.0"?>
    <ROOTDOC>
    <ROW num="1">
    <TEXT>D$55--</TEXT>
    </ROW>
    <ROW num="2">
    <TEXT>tt%zu33</TEXT>
    </ROW>
    I want a output as the input (Unicode UTF-16).
    Can anyone please advise on the problems.
    Thanks
    null

    Hi H.Ozawa,
    thanks for trying but non of the solution helped me, sorry.
    Question 1:
    I'll try it again like this:
    OracleXMLQuery qry = new OracleXMLQuery(conn,"select POSITION from DATAS");
    qry.setRowTag("DROW");
    Document docin = qry.getXMLDOM();
    conn.close();
    NodeList rows = docin.getDocumentElement().getElementsByTagName("DROW");
    // The Node "DROW" wasn't found.
    Question 2:
    <?xml version="1.0" encoding="UTF-16"?>
    <ROOTDOC>
    <ROW>
    <DOCUMENTREF>133-12224</DOCUMENTREF>
    <TEXT>hello</TEXT>
    </ROW>
    <ROW>
    <DOCUMENTREF>133-124</DOCUMENTREF>
    <TEXT>world</TEXT>
    </ROW>
    </ROOTDOC>
    XmlDocument sdoc = new XmlDocument();
    Element rootDEl = sdoc.createElement("ROOTDOC");
    sdoc. appendChild(rootDEl);
    Element rowEl = sdoc.createElement("ROW");
    Element docREl = sdoc.createElement("DOCUMENTREF");
    docREl.appendChild(sdoc.createTextNode("133-12224"));
    Element docTEl = sdoc.createElement("TEXT");
    docTEl.appendChild(sdoc.createTextNode("hello"));
    An error message occur:
    java.lang.reflect.InvocationTargetException: java.lang.IllegalAccessError: try to access class com/sun/xml/tree/ParentNode from class project/dbase/xmlwritedb at project.dbase.xmlwritedb.main(xmlwritedb.java:33)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.borland.jbuilder.util.BootStrap.invokeMain(Unknown Source)
    at com.borland.jbuilder.util.BootStrap.main(Unknown Source)
    Question 3:
    I try it like below but the output is "UTF-8" encoding
    OracleXMLDocGenDOM gdoc = new OracleXMLDocGenDOM();
    query.getXML(gdoc);
    XMLDocument docin = (XMLDocument)gdoc.getXMLDocumentDOM();
    docin.setEncoding("ISO-8859-1"); //docin.setEncoding("UTF-16");
    NodeList rows = docin.getDocumentElement().getElementsByTagName("ROW");
    Element row = (Element)rows.item( i );
    NodeList elements = row.getElementsByTagName( "DOCUMENTREF" );
    So you or someone have another idea to fix this problems.
    Thanks
    null

  • 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)
    );

  • Generating multi-level XML in Oracle 8i using XML-SQL utility

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

    Oracle 8i has a limitation when it comes to the object types. Only one-level nesting of collection is allowed. Oracle 9i apparently removes this limitation.
    I am trying to generate XML for a hierarchical (conceptually) structure. To do that I am using XML-SQL utility (XSU) running agains an object view build on top of the relational data. The problem is the limit to onelevels of colelction nesting. Oracle 8i gives you a way to create a view with more levels of nesting by using references (REF). The problem is that when XSU runs agains a view with the references, it inserts the references into the XML document (instead of dereferencing them).
    Is there a way to generate XML with Oracle 8i with more than two levels of collection nesting?
    Thank you.
    Michael

  • XML SQL Utility:Why it doesn't work?

    I am trying to use the XML SQL Utility
    by modifying the given example samp1.java
    for the JDBC-ODBC driver but errors emerged.
    Is there any thing wrong? Thanks.
    (The classpath setting is ok, I think)
    ***** Here is the error message:
    D:\OracleXSU\sample>java Sample
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/Datum
    at oracle.xml.sql.query.OracleXMLQuery.<init>(OracleXMLQuery.java:127)
    at Sample.main(Sample.java:42)
    D:\OracleXSU\sample>
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    // import oracle.jdbc.*;
    // import oracle.jdbc.driver.*;
    public class Sample
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "sbook";
    String user = "scott/tiger";
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    Connection conn = DriverManager.getConnection("jdbc:odbc:SQLUtil");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from "+tabName );
    if(rset!=null)
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

    Firstly I think it is because the XML SQL Utility does not work with JDBC-ODBC driver.
    So I try it again with Oracle driver.
    But it still doesn't work? Why?
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    public class Sample2
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "emp";
    String user = "scott/tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    //init a JDBC connection
    Connection conn = DriverManager.getConnection ("...Connection information...");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    // ResultSet rset = stmt.executeQuery("select * from "+tabName );
    ResultSet rset = stmt.executeQuery("select * from COFFEES" );
    // Test if connection is sucessful -- it works!
    int i=0;
    while(rset.next())
    i++;
    System.out.println("Total rows="+i);
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

  • Updating a database using XML SQL Utility

    Hi all,
    It seems that the Oracle XML SQL Utility provides only to insert rows into a table/view. However, if one wants to update a table from an XML no support is available.
    How does one proceed if this is to be achieved?
    Thanks in advance.
    Regards,
    Manoj
    null

    While inserting i get a
    oracle.xml.sql.OracleXMLSQLException and further a
    NumberFormatException. Which parameter do I have to set to avoid
    these Exceptions. I can insert the file in my local db but I get
    the Exception on the server db. The value I want to insert for
    expample is 30,1. Maybe the JDBC-Driver tries to convert the String ;30,1+ to an
    Integer-Object. This will cause the described Exception since
    the Integer-Class requires ;.+ instead of ;,+ for decimal point.
    I have another problem generating an xmlfile when there
    are "Umlaute" in the data. E.g. V and \. Exchanging these to Oe
    and Ue than it works fine.Use ISO-8859-1 character set to work with umlauts, e.g.:
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    .. but you can use the default UTF-8 encoding too, umlauts will
    be replaced by equivalents as ;C&#376;+
    Alex

  • Help : javax.ejb.EJBException: nested exception is: SQL Exception: Database

    Hello,
    I found a write up of error connecting to DB2 from SUSE linux
    i am using websphere admin console , jdbc db2 universal driver to
    connect to a remote db (DB2).
    the test connection works...but the application gives
    the above error
    jdbc test connection trace
    [ibm][db2][jcc] BEGIN TRACE_DRIVER_CONFIGURATION
    [ibm][db2][jcc] Driver: IBM DB2 JDBC Universal Driver Architecture 1.1.67
    [ibm][db2][jcc] Compatible JRE versions: { 1.3, 1.4 }
    [ibm][db2][jcc] Range checking enabled: true
    [ibm][db2][jcc] Bug check level: 0xff
    [ibm][db2][jcc] Trace level: 0xffffffff
    [ibm][db2][jcc] Default fetch size: 64
    [ibm][db2][jcc] Default isolation: 2
    [ibm][db2][jcc] Collect performance statistics: false
    [ibm][db2][jcc] No security manager detected.
    [ibm][db2][jcc] Detected local client host: SUSE.SYSDEV/127.0.0.2
    [ibm][db2][jcc] Access to package sun.io is permitted by security manager.
    [ibm][db2][jcc] JDBC 1 system property jdbc.drivers = null
    [ibm][db2][jcc] Java Runtime Environment version 1.4.1
    [ibm][db2][jcc] Java Runtime Environment vendor = IBM Corporation
    [ibm][db2][jcc] Java vendor URL = http://www.ibm.com/
    [ibm][db2][jcc] Java installation directory =
    /opt/WebSphere/AppServer/java/bin/../jre
    [ibm][db2][jcc] Java Virtual Machine specification version = 1.0
    [ibm][db2][jcc] Java Virtual Machine specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Virtual Machine specification name = Java Virtual
    Machine Specification
    [ibm][db2][jcc] Java Virtual Machine implementation version = 1.4.1
    [ibm][db2][jcc] Java Virtual Machine implementation vendor = IBM Corporation
    [ibm][db2][jcc] Java Virtual Machine implementation name = Classic VM
    [ibm][db2][jcc] Java Runtime Environment specification version = 1.4
    [ibm][db2][jcc] Java Runtime Environment specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Runtime Environment specification name = Java
    Platform API Specification
    [ibm][db2][jcc] Java class format version number = 48.0
    [ibm][db2][jcc] Java class path =
    /opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/lib/bootstrap.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/lmproxy.jar:/opt/WebSphere/AppServer/lib/urlprotocols.jar:/opt/WebSphere/AppServer/
    [ibm][db2][jcc] Java native library path =
    /opt/WebSphere/AppServer/java/bin/../jre/bin:/opt/WebSphere/AppServer/java/jre/bin/classic:/opt/WebSphere/AppServer/java/jre/bin:/opt/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/usr/lib
    [ibm][db2][jcc] Path of extension directory or directories =
    /opt/WebSphere/AppServer/java/bin/../jre/lib/ext
    [ibm][db2][jcc] Operating system name = Linux
    [ibm][db2][jcc] Operating system architecture = x86
    [ibm][db2][jcc] Operating system version = 2.4.19-64GB-SMP
    [ibm][db2][jcc] File separator ("/" on UNIX) = /
    [ibm][db2][jcc] Path separator (":" on UNIX) = :
    [ibm][db2][jcc] User's account name = root
    [ibm][db2][jcc] User's home directory = /root
    [ibm][db2][jcc] User's current working directory = /opt/WebSphere/AppServer
    [ibm][db2][jcc] END TRACE_DRIVER_CONFIGURATION
    **************************************imp ***********************
    [ibm][db2][jcc] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc] Attempting connection to nnn.nnn.nnn.nnn:50000/was40
    [ibm][db2][jcc] Using properties: { dataSourceName=null,
    password=<escaped>, portNumber=50000, fullyMaterializeLobData=true,
    securityMechanism=3, cliSchema=dbo, resultSetHoldability=2,
    serverName=167.16.183.11, currentPackageSet=null, loginTimeout=0,
    planName=null, traceFile=/opt/WebSphere/AppServer/logs/server1/trace,
    kerberosServerPrincipal=null,
    retrieveMessagesFromServerOnGetMessage=true, currentSchema=dbo,
    driverType=4, description=null, readOnly=false, deferPrepares=true,
    databaseName=was40, traceLevel=-1, user=db2inst1 }
    [ibm][db2][jcc] END TRACE_CONNECTS
    *************************************imp *******************
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: EXCSAT (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0072D0410001006C 10410027115E8482
    .r.A...l.A.'.^.. ..}....%.....;db
    [ibm][db2][jcc][t4] 0010 F2918383E28599A5 9385A34BC5958789
    ...........K.... 2jccServlet.Engi
    [ibm][db2][jcc][t4] 0020 95854BE3998195A2 979699A3A2407A40
    ..K..........@z@ ne.Transports :
    [ibm][db2][jcc][t4] 0030 F2000F116DE2E4E2 C54BE2E8E2C4C5E5
    ....m....K...... 2..._SUSE.SYSDEV
    [ibm][db2][jcc][t4] 0040 000E115AC4C2F2D1 C3C340F14BF00018
    [email protected]... ...!DB2JCC 1.0..
    [ibm][db2][jcc][t4] 0050 1404140300032407 0007240F00071440
    ......$...$....@ ...............
    [ibm][db2][jcc][t4] 0060 000614740005000C 1147D8C4C2F261D1
    ...t.....G....a. ..........QDB2/J
    [ibm][db2][jcc][t4] 0070 E5D40026D0010002 0020106D000611A2
    ...&..... .m.... VM..}......_...s
    [ibm][db2][jcc][t4] 0080 000300162110A681 A2F4F04040404040
    ....!......@@@@@ ......was40
    [ibm][db2][jcc][t4] 0090 4040404040404040
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: EXCSATRD (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0066D04300010060 1443001C115E8482
    .f.C...`.C...^.. ..}....-.....;db
    [ibm][db2][jcc][t4] 0010 F28995A2A3F18482 F281878595A3F0F0
    ................ 2inst1db2agent00
    [ibm][db2][jcc][t4] 0020 F0F1F9C6F3F60018 1404140300032407
    ..............$. 019F36..........
    [ibm][db2][jcc][t4] 0030 0005240F00071440 000614740005000D
    [email protected].... ....... ........
    [ibm][db2][jcc][t4] 0040 1147D8C4C2F261F6 F0F0F0000C116D84
    .G....a.......m. ..QDB2/6000..._d
    [ibm][db2][jcc][t4] 0050 82F28995A2A3F100 0F115AC4C2F240E4
    ..........Z...@. b2inst1...!DB2 U
    [ibm][db2][jcc][t4] 0060 C4C240F74BF20010 D0030002000A14AC
    [email protected]........... DB 7.2..}.......
    [ibm][db2][jcc][t4] 0070 000611A20003 ......
    ...s..
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: SECCHK (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 003ED04100010038 106E000611A20003
    .>.A...8.n...... ..}......>...s..
    [ibm][db2][jcc][t4] 0010 00162110A681A2F4 F040404040404040
    ..!......@@@@@@@ ....was40
    [ibm][db2][jcc][t4] 0020 404040404040000C 11A08482F28995A2
    @@@@@@.......... ....db2ins
    [ibm][db2][jcc][t4] 0030 A3F1000C11A18482 F28995A2A3F100A8
    ................ t1...~db2inst1.y
    [ibm][db2][jcc][t4] 0040 D001000200A22001 00162110A681A2F4 ......
    ...!..... }....s......was4
    [ibm][db2][jcc][t4] 0050 F040404040404040 4040404040400006
    .@@@@@@@@@@@@@.. 0 ..
    [ibm][db2][jcc][t4] 0060 210F2407000C112E D1C3C3F0F1F0F0F0
    !.$............. ........JCC01000
    [ibm][db2][jcc][t4] 0070 003C210437D1C3C3 F0F1F0F0F0D1E5D4
    .<!.7........... .....JCC01000JVM
    [ibm][db2][jcc][t4] 0080 4040404040404040 4040404040404084
    @@@@@@@@@@@@@@@. d
    [ibm][db2][jcc][t4] 0090 82F2918383E28599 A59385A34BC59587
    ............K... b2jccServlet.Eng
    [ibm][db2][jcc][t4] 00A0 8995858482F28995 A2A3F100000D002F
    .............../ inedb2inst1.....
    [ibm][db2][jcc][t4] 00B0 D8E3C4E2D8D3C1E2 C300172135C1C3F1
    ...........!5... QTDSQLASC....AC1
    [ibm][db2][jcc][t4] 00C0 C6F1F2F7C54BD7C3 F1F200FD9591649F
    .....K........d. F127E.PC12..nj..
    [ibm][db2][jcc][t4] 00D0 001600350006119C 04B80006119D04B0
    ...5............ ................
    [ibm][db2][jcc][t4] 00E0 0006119E04B8 ......
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: SECCHKRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0420001000F 1219000611490000
    ...B.........I.. ..}.............
    [ibm][db2][jcc][t4] 0010 000511A4000033D0 020002002D220100
    ......3.....-".. ...u...}........
    [ibm][db2][jcc][t4] 0020 0611490000000C11 2EE2D8D3F0F7F0F2
    ..I............. .........SQL0702
    [ibm][db2][jcc][t4] 0030 F3000D002FD8E3C4 E2D8D3C1E2C3000A
    ..../........... 3....QTDSQLASC..
    [ibm][db2][jcc][t4] 0040 00350006119C0333
    .5.....3 ........
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] setDB2CurrentSchema () called
    [ibm][db2][jcc][Connection@887519a] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc][Connection@887519a] Successfully connected to server
    jdbc:db2://167.16.183.11:50000/was40
    [ibm][db2][jcc][Connection@887519a] User: db2inst1
    [ibm][db2][jcc][Connection@887519a] Database product name: DB2/6000
    [ibm][db2][jcc][Connection@887519a] Database product version: SQL07023
    [ibm][db2][jcc][Connection@887519a] Driver name: IBM DB2 JDBC
    Universal Driver Architecture
    [ibm][db2][jcc][Connection@887519a] Driver version: 1.1.67
    [ibm][db2][jcc][Connection@887519a] END TRACE_CONNECTS
    [ibm][db2][jcc][t4] DRDA manager levels: { SQLAM=5, AGENT=3,
    CMNTCPIP=5, RDB=7, SECMGR=6 }
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.getConnection () returned a
    logical connection
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] getAutoCommit () returned true
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] isClosed () returned false
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection() ()
    called
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection ()
    returned void
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.close() (close the
    phycical connection) called
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: RDBCMM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 000AD00100010004 200E
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: ENDUOWRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0520001000F 220C000611490004
    ...R...."....I.. ..}.............
    [ibm][db2][jcc][t4] 0010 0005211501000BD0 03000100052408FF
    ..!..........$.. .......}........
    [ibm][db2][jcc][t4]
    application error
    Exception Message:: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Localized Message :: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Do you have any suggestions
    Regards,
    Sunil

    Hi Peter,
    You are right. Child is being inserted even before parent got inserted (actually "committed") into the DB.we would need to look at your code where are you doing all these creates (may be ejbCreate). Most probably ur error should get fixed by changing the transactional attributes in the DD files. Try using <delay-database-inserts-until> element.
    More details available at:
    http://e-docs.bea.com/wls/docs70/faq/ejb.html#257426
    If it doesn't help, open up a case with BEA Support.
    Hope it helps!
    Thanks
    -Rais

  • Validating in SQL Utility

    I am trying to validate a XML file before load it into Oracle database(using OracleXMLsave()), if it is not valid, don't load into the database. By using Sun's xml package, I just changed the system property,
    -Dorg.xml.sax.parser=com.sun.xml.parser.ValidatingParser
    I tried to use SAXParser.setValidateMode(true), it just gave me one message (not warning or error): "Element 'XXXX' used but not declared" and still parsed the XML file. I hope it can stop due to not valid. I don't know how it can be done in Oracle parser. Any suggestion are very very welcome!

    | 1. as suggested , i was able to get the oraclexmlsql.jar
    | from the servlet zip and loading it solved the problem of
    | the jdbc string being printed int he cursor syntax . it
    | works from the xmlgen utility withing pl/sql. but when
    | using OracleXML in a java prog the results still printout
    | the jdbc string.. any ideas...
    Could only be a CLASSPATH problem difference in your two
    tests.
    | 2. Is there anyway to supress the rownum attribute tag in
    | the subquery (cursor) results...that is the
    | setRowIdAttrName .... w/o using xslt
    Not at this time. Rownum supression on the subquery should
    probably follow your settings on the main query. I'll
    suggest to the devs.
    | 3. We are implementing a solution using these tools.... we
    | wanted to know which were the production versions.
    XDK Components for XML and XSLT are production.
    XML SQL Utility and XSQL Servlet are still Technical
    Previews and as such are not yet production.
    null

Maybe you are looking for