Xml SQL Utility for java and Dr.Watson for WIN-NT

hello everybody.
when i am running the sample code in xml Sql utility for java documentation,
Dr. watson for windows NT error occures.
what may be the problem? please suggest a solution
thanks
dev

Set JDK_HOME to the directory where you install your JDK (Java Development Kit).
So instance, I've install JDK1.1.8 on my
C drive so
set JDK_HOME=c:\jdk1.1.8;c:\jdk1.1.8\bin

Similar Messages

  • HOWTO: Writing Out XML Query Results of Any Size in Java with XML SQL Utility

    A customer mailed me asking for an example of how to use our XML SQL Utility to write out query results for tons of query result rows.
    With tons of data, the getXMLDOM() and getXMLString() methods are not really appropriate due to the size.
    The XML SQL Utility offers a getXMLSAX() method that streams SAX2 events to report the data being queried. This is the approach we can use to handle data of any size.
    It dawned on me today that by putting together the XML SQL Utilities getXMLSAX() routine, and the oracle.xml.parser.v2.XSLSAXPrintDriver SAX2 ContentHandler, we can effectively stream out data of any length to an appropriate writer.
    Here's a code example to get the point across:
    package test;
    import java.io.BufferedOutputStream;
    import java.io.PrintWriter;
    import java.sql.Connection;
    import java.sql.Driver;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.Properties;
    import javax.xml.transform.OutputKeys;
    import oracle.jdbc.OracleDriver;
    import oracle.xml.parser.v2.XSLException;
    import oracle.xml.parser.v2.XSLOutput;
    import oracle.xml.parser.v2.XSLSAXPrintDriver;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Example  {
      private static final String QUERY = "select * from emp";
      public static void main(String[] args) throws Throwable  {
          Connection conn = getConnection();
          OracleXMLQuery q = new OracleXMLQuery(getConnection(),QUERY);
          // Any printwriter will do. Here's we're output to standard out.
          PrintWriter output = new PrintWriter(new BufferedOutputStream(System.out));
          // This is a SAX2 Content Handler used by the Oracle XSLT Engine
          // to serialize a stream of sax2 events as an XML document
          // We'll use it to serialize the sax2 events from the XML SQL Utility
          // out as an XML document.
          XSLSAXPrintDriver ch = new XSLSAXPrintDriver(output, outputOptions());  
          // This asks XML SQL Utility to fire sax events for the data
          // being fetched instead of creating DOM nodes or returning text.
          // By using the XSLSAXPrintDriver content handler, these events
          // get handled by writing them directly to the output stream
          q.getXMLSAX(ch);
          ch.flush();
          q.close();
          conn.close();     
      private static XSLOutput outputOptions() throws XSLException {
        XSLOutput x = new XSLOutput();
        Properties props = new Properties();
        props.put(OutputKeys.METHOD,"xml");
        props.put(OutputKeys.INDENT,"yes");  // Set to "no" for non-indented
        x.setProps(props);
        return x;
      public static Connection getConnection() throws SQLException {
        String username = "scott";
        String password = "tiger";
        String thinConn = "jdbc:oracle:thin:@localhost:1521:ORCL";
        Driver d = new OracleDriver();
        return DriverManager.getConnection(thinConn,username,password);
    }

    Hi Uber,
    This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
    included in the System Center 2012 Configuration Manager Service Pack 1.
    As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
    http://support.microsoft.com/KB/914159
    Hope this helps.
    Regards,
    Mike Yin
    Mike Yin
    TechNet Community Support

  • Is XML-SQL Utility for Java run on Client Side?

    A question about the XML-SQL Utility for Java
    When a client program connect to a Oracle database (the clinet program and Oracle DB is run on two different machine. Oracle 8i is used) and use the oracle.xml.sql.query.OracleXMLQuery Class (form the XSU) to generate XML by given a SQL query. I want to know the transforation process is execute in the Clinet side or the database?
    Is there any method that i can retrieve the XML directly from the database rather then doing the transformation form the Client side?

    Set JDK_HOME to the directory where you install your JDK (Java Development Kit).
    So instance, I've install JDK1.1.8 on my
    C drive so
    set JDK_HOME=c:\jdk1.1.8;c:\jdk1.1.8\bin

  • 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

  • XML SQL Utility and Oracle 8.0.5

    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.
    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

  • How to use my own DTD and table using the XML SQL utility.

    Hey,
    Here is my question. I have succesfully installed Oracle XML SQL utility and I had played around on that. Now I have my own DTD that too from Rosettanet(PIP). Tell me how can I use my own table, and my dtd using the existing utility. What are all the changes do I need to do. I am strugling it from past 4 days. I couldn't. Please help me!

    Hi chris,
    Yes, the SQL can be changed only by using Discoverer Administrator.
    Open the report/workbook that is based on the custom SQL that you want to change in Discoverer Plus. Look at the Folder that is being used to select the columns of the report.
    Open up the Discoverer Administrator with the id that has access to the tables referenced in the report. And the custom folder with the same name as in Disc Plus would be listed down in the Business Area (Which Business Area the custom folder belongs to can be determined with the help of disc plus).
    Just open up that folder, and change the SQL in it. You can pasted your new sql in there and click on Validate SQL to validate it for errors. If no errors, then the custom folder is successfully changed.
    In order to have it reflected, close your existing disc plus session and reopen it, and you can go about using the custom folder.
    Hope this helps!
    Thanks.

  • XML/SQL Utility and stored procedure

    Hi there,
    Is it possible to use the XML/SQL Utility passing a stored
    procedure call, which returns a result set (ref cursor), instead
    of a SELECT statement? If yes, how should I call the
    OracleXMLQuery constructor?
    Thanks,
    Flavio.
    null

    Here's a sample. The next code drop of the XSQL Servlet will make the easy-to-do from within XSQL Pages:
    package package1;
    import org.w3c.dom.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    public class Class1 extends Object {
    public static void main( String[] arg ) throws Exception {
    Connection conn = getConnection();
    CallableStatement ocs = conn.prepareCall("begin ? := App.HotItems('PAUL'); end;");
    ocs.registerOutParameter(1,OracleTypes.CURSOR);
    ocs.execute();
    ResultSet rs = ((OracleCallableStatement)ocs).getCursor(1);
    OracleXMLQuery oxq = new OracleXMLQuery(conn,rs);
    System.out.println(oxq.getXMLString());
    oxq.close();
    rs.close();
    ocs.close();
    conn.close();
    public static Connection getConnection() throws Exception {
    String username = "scott";
    String password = "tiger";
    String dburl = "jdbc:oracle:thin:@localhost:1521:xml";
    String driverClass = "oracle.jdbc.driver.OracleDriver";
    Driver d = (Driver)Class.forName(driverClass).newInstance();
    return DriverManager.getConnection(dburl,username,password);
    null

  • 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

  • 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

  • 1.2 JVM crashes using XML SQL Utility 1.1.10 (NT 8.1.5)

    I am trying to use the XML SQL Utility for Java (Oracle 8.1.5) to obtain a DTD or XML schema for tables in our database.
    I have installed the XSU111.ZIP archive,
    set the CLASSPATH and stuff, loaded the JAR
    files (xmlparserv2.jar, oraclexmlsql.jar)
    processed the xmlgenpkg.sql script (following the installation instructions)
    When I execute the samples in Java, the JVM (JDK 1.2.2) crashes in javai.dll.
    The same error occurs when I run java OracleXML getXML ....
    The installation file (env.bat) lists the JDBC driver ZIP as CLASSES12.ZIP, which is of course, not available for 8.1.5, which is what the download instructions indicated is appropriate for XSU 1.1.1.
    Any ideas? Do I need to upgrade to 8.1.6?
    Can I patch the JDBC with classes12.ZIP.
    By the way, when I execute the commands in PL/SQL using xmlgen package, everything is fine.
    Regards and Much thanks

    Set JDK_HOME to the directory where you install your JDK (Java Development Kit).
    So instance, I've install JDK1.1.8 on my
    C drive so
    set JDK_HOME=c:\jdk1.1.8;c:\jdk1.1.8\bin

  • XML SQL utility

    Hi,
    When I try to execute this query using XML SQL utility
    I am getting the following error. I had declared 'XMLGEN &
    GETXML' as CLOB and tried but got the same error. Advice me. I
    am struggling to find the solution using XSQL Servlet..but
    couldn't get..I spend one week on that..no results...this is the
    second trial. Is there any online help or service to do that.
    xmlString := xmlgen.getXML('select * from scott.emp');
    ERROR at line 9:
    ORA-06550: line 9, column 16:
    PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    ORA-06550: line 9, column 3:
    PL/SQL: Statement ignored
    I have Oracle XML parser for Java 2, and XML SQL utility and
    oracle 8i database....
    This is the query.........(Your example)
    declare
    xmlString CLOB;
    amount integer:= 4000;
    position integer := 1;
    charString varchar2(4000);
    i binary_integer := 0;
    inclDTD number := 0;
    begin
    xmlString := xmlgen.getXML('select * from scott.emp');
    dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    loop
    dbms_lob.read(xmlString,amount,position,charString);
    dbms_output.put_line(charString);
    position := position + amount;
    end loop;
    exception
    when no_data_found then
    dbms_lob.close(xmlString);
    dbms_lob.freetemporary(xmlString);
    end;
    null

    Have you loaded the xmlgenpkg.sql in the schema in which you
    are trying to execute your PL/SQL block?
    Chan (guest) wrote:
    : Hi,
    : When I try to execute this query using XML SQL utility
    : I am getting the following error. I had declared 'XMLGEN &
    : GETXML' as CLOB and tried but got the same error. Advice me. I
    : am struggling to find the solution using XSQL Servlet..but
    : couldn't get..I spend one week on that..no results...this is
    the
    : second trial. Is there any online help or service to do that.
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : ERROR at line 9:
    : ORA-06550: line 9, column 16:
    : PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    : ORA-06550: line 9, column 3:
    : PL/SQL: Statement ignored
    : I have Oracle XML parser for Java 2, and XML SQL utility and
    : oracle 8i database....
    : This is the query.........(Your example)
    : declare
    : xmlString CLOB;
    : amount integer:= 4000;
    : position integer := 1;
    : charString varchar2(4000);
    : i binary_integer := 0;
    : inclDTD number := 0;
    : begin
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    : loop
    : dbms_lob.read(xmlString,amount,position,charString);
    : dbms_output.put_line(charString);
    : position := position + amount;
    : end loop;
    : exception
    : when no_data_found then
    : dbms_lob.close(xmlString);
    : dbms_lob.freetemporary(xmlString);
    : end;
    Oracle Technology Network
    http://technet.oracle.com
    null

  • 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

  • Re: usage of XML SQL Utility

    Hi there,
    I have such a design issue, which I posted a few days ago and I reworded here. Hopefully, I made it clearer this time.
    The working scenario, coded in Java, goes like this:
    1> Given an XML string, I parse it out and get a set of values for a certain set of elements, say in one ROW.
    2> I embed this set of values in the WHERE clause of a query string, do a SELECT.
    3> Based on the result from the above SELECT, I do UPDATE, SELECT and INSERT to a few tables.
    My question:
    Could Oracle XML SQL Utility be used here? If yes, how?
    From my reading so far, the Oracle XSU handles the SQL-XML and XML-SQL Mapping very well, in terms of a whole XML string. But, if at some point, I want to break the XML string and get some business logic mingled in it, say a simple calculation, how can I efficiently deal with it?
    Any suggestion would be greatly appreciated. Thanks.
    ---Denali
    null

    Here are the five choices I see:
    [list]
    [*] XSU111_ver1_2_1.zip -- to be used with JDBC1.x (JDK1.1.x or later) and loadable into Oracle8.1.5 (486 KB)
    [*] XSU12_ver1_2_1.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.6 or later (508 KB)
    [*] XSU111_816_ver2_1_0_beta.zip -- to be used with JDBC1.0 and JDK1.1.8 (486 KB)
    [*] XSU12_816_ver2_1_0_beta.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.6 (486 KB)
    [*] XSU12_ver2_1_0_beta.zip -- to be used with JDBC2.0 (JDK1.2.x or later) and loadable into Oracle8.1.7 or later (508 KB)
    [list]

  • Xml sql utility limitation

    Hi, Oracle:
    Are there upper limit with regard to OracleXMLSave.insertXML(),
    such as upper limit for field size, upper limit for file size,
    uppper limit for number of columns you can have, upper limit for
    number of rows(records) you could have?
    Prompt response will be greatly appreciated!
    Thanks,
    Tony
    null

    First, let me thank you for the reply.
    Here is the situation: I want to insert a xml file about 3 MB
    into an Oracle 8.0.5 table, in the table, I have a field called
    resume which is of type LONG. I am using OracleXMLSave.insertXML
    to do the insertion and oci8 jdbc connection. Here the error
    messsage I got:
    SIGSEGV 11* segmentation violation
    si_signo [11]: SIGSEGV 11* segmentation violation
    si_errno [0]:
    si_code [1]: SEGV_MAPERR [addr: 0x342c9fe8]
    stackbase=EFFFF298, stackpointer=EFFFD5D4
    Full thread dump:
    "SIGQUIT handler" (TID:0xed6662a0, sys_thread_t:0xfb400,
    state:R, thread_t: t@5, sp:0xef373a90 threadID:0xef373de0,
    stack_base:0xef373d74, stack_size:0x22000) prio=0
    "Finalizer thread" (TID:0xed666088, sys_thread_t:0xfb370,
    state:CW, thread_t: t@4, sp:0xef473a30 threadID:0xef473de0,
    stack_base:0xef473d74, stack_size:0x22000) prio=1
    "main" (TID:0xed6660b0, sys_thread_t:0xedff8, state:R,
    thread_t: t@1, sp:0xefffedd8 threadID:0x20a18,
    stack_base:0xeffff298, stack_size:0x800000) prio=5 *current
    thread*
    oracle.jdbc.oci8.OCIDBAccess.executeFetch(Compiled Code)
    oracle.jdbc.driver.OracleStatement.doExecuteOther
    (Compiled Code)
    oracle.jdbc.driver.OracleStatement.doExecuteWithBatch
    (Compiled Code)
    oracle.jdbc.driver.OracleStatement.doExecute(Compiled
    Code)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout
    (Compiled Code)
    oracle.jdbc.driver.OraclePreparedStatement.executeUpdate
    (Compiled Code)
    oracle.jdbc.driver.OraclePreparedStatement.execute
    (Compiled Code)
    oracle.xml.sql.dml.OracleXMLSave.insertNodeVal(Compiled
    Code)
    oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
    oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
    TestSave.main(Compiled Code)
    Monitor Cache Dump:
    oracle.jdbc.oci8.OCIDBAccess@ED66A7E8/ED751B68: owner "main"
    (0xedff8, 1 entry)
    oracle.jdbc.driver.OracleCallableStatement@ED6D0390/EDF17818:
    owner "main" (0xedff8, 2 entries)
    Registered Monitor Dump:
    PCMap lock: <unowned>
    Thread queue lock: <unowned>
    Name and type hash table lock: <unowned>
    String intern lock: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class loading lock: <unowned>
    Java stack lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Has finalization queue lock: <unowned>
    Finalize me queue lock: <unowned>
    Waiting to be notified:
    "Finalizer thread" (0xfb370)
    Monitor registry: owner "main" (0xedff8, 1 entry)
    Abort
    ======= End of error message ========
    If I have a smaller size file, such as 1MB, it works. What could
    be wrong? Oracle JDBC driver? the implementation of
    OracleXMLSave.insertXML?
    Here is the source code of my java program:
    import oracle.xml.sql.dml.*;
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class TestSave {
    public static void main(String args[])
    if (args.length != 2) {
    System.out.println("Usage: java TestSave tablename
    filename");
    System.exit(1);
    Connection conn;
    String tablename = args[0];
    String filename = args[1];
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:oci8:@econ",
    "rich", "roy33");
    OracleXMLSave xmlSave = new OracleXMLSave(conn, tablename);
    System.out.println("xmlSave = " + xmlSave);
    int num_row ;
    java.net.URL url=xmlSave.createURL(filename);
    System.out.println("url="+url);
    num_row=xmlSave.insertXML(url);
    System.out.println("num_row: " + num_row);
    catch(Exception e)
    e.printStackTrace();
    }// end main
    }// end TestSave
    ======= End of source code ====================
    Any suggestions? Please help!!!
    Tony
    Oracle XML Team wrote:
    : Hi Tony,
    : I tried out an example with > 4000 binds and it seemed to
    work
    : with 3 clobs. How big is the sample? Can u attach a small
    sample
    : (dont have to have the big file. just the structure of the
    XML?).
    : Also currently the XML SQL utility simply binds CLOB columns
    as
    : strings. We will fix that so that it creates temp CLOBs and
    : binds them. In that way you will not get into this problem.
    : Thx
    : Oracle XML team
    : Tony (guest) wrote:
    : : All right, I got a problem already. I have a table has 2
    clob
    : : columns, this is the message I got:
    : : oracle.xml.sql.OracleXMLSQLException: java.sql.SQLException:
    : ORA-
    : : 01026: multiple buffers of size > 4000 in the bind list
    : : at java.lang.Throwable.<init>(Compiled Code)
    : : at java.lang.Exception.<init>(Compiled Code)
    : : at java.lang.RuntimeException.<init>(Compiled Code)
    : : at oracle.xml.sql.OracleXMLSQLException.<init>
    : (Compiled
    : : Code)
    : : at oracle.xml.sql.dml.OracleXMLSave.insertXML
    (Compiled
    : : Code)
    : : at oracle.xml.sql.dml.OracleXMLSave.insertXML
    (Compiled
    : : Code)
    : : at TestSave.main(Compiled Code)
    : : Does above mean that the utility can not handle a table has
    : more
    : : than one clob column?
    : : In my applicaiton, I have two fields greater than 4000
    : : characters that I need to insert into a table.
    : : Thanks,
    : : Tony
    : : Tony (guest) wrote:
    : : : I do not see any problems yet, however, I am going to have
    : big
    : : : field size (> 5000 characters), big file size(around 100
    MB)
    : : : which means lots of records. I just want to know whether
    the
    : : : utility can take it, if not, what are the options?
    : : : Thanks,
    : : : Tony
    : : : Oracle XML Team wrote:
    : : : : No designed-in limits. Are you hitting a problem
    : : : : with a large-sized file?
    : : : : Oracle XML Team
    : : : : http://technet.oracle.com
    : : : : Oracle Technology Network
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Probleme after installation XML-SQL Utility

    Hallo
    After installation XML-SQL Utility, after execution the xdkload i have executed the test example but the result is not good and the result of execution is:
    Rem Use these to test the results..
    SQL> select dbms_xmlquery.getxml('select * from dual', 2) from dual;
    DBMS_XMLQUERY.GETXML('SELECT*FROMDUAL',2)
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: java.lang.NullPointerException</ERR
    OR>
    SQL> Rem
    SQL>
    SQL> exit;
    Please if need a help to continue. If you have given me a solution.
    Best Regard
    Hatem

    go thru technet.oracle.com/tech/xml for the installation info.

Maybe you are looking for

  • How do I move a folder from one user to another

    I copied folders and files from a PC to my new Mac Pro (running Yosemite).  I am now trying to figure out how to move some some of the folders transferred in from my old PC from one user to another on the Mac.  I am a first time user of a Mac desktop

  • Customer exit variable output error

    Hi gurus, I have created one customer exit variable. in the selection screen i am giving multiple plant and material value, my code is working for sigle plant and single material. when i have taken multiple value. i am getting error message error is

  • The cisco snmp oids do not work, I can't get cpu or memory data.

    Hello. I want to monitor the cpu and memory usages on my cisco devices using snmp. I found the snmp oids related to cpu in the following page : http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a94.shtml I just copy the t

  • Ipod classic not connecting (not even showing 'do not disconnect' on Ipod)

    Help! I have an ipod classic and, since I upgraded to itunes 9, I have noticed that, all of a sudden, my ipod won't connect at all. When I connect the USB cable to the ipod, the screen lights up but does not start charging nor does it show 'do not di

  • Usage decision printing problem

    Hi All, I have one issue while printing the rejected labels. After the usage decision is made rejected labels are to be printed automaticaly. But this is not happening it is going to spool. Thanks in advance, Babu