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

Similar Messages

  • SOAP  oracle xml sql utility class definition not found error

    I have created a java class that connects to database using JDBC runs an sql statement and produces xml using Oracle XML SQL Utility class. The java class works perfectly when I deploy it as a soap web service and try to run through SOAP server it gives a SOAP error oracle/xml/sql/query/OracleXML/Query [java.lang.NoClassDefFoundError].
    Can anyone help please.
    Thanks
    Alina

    Sounds like you have not included the xsu12.jar file in the server-side CLASSPATH.
    This depends also on the xmlparserv2.jar and on the Oracle JDBC driver. Later versions
    of XSU may also depend on the xdb.jar file, too.

  • Oracle XML SQL utility, error oracle.xml.sql.OracleXMLSQLException:....

    I am using Oracle XML SQL utility to generate some XML using CURSOR
    operator.
    Following is the query -
    SELECT PROJECT.PROJ_CD,
    PROJECT.PROJ_TITLE,
    CURSOR(SELECT ISSUES.ISSUE_ID
    FROM ISSUES
    WHERE PROJECT.PROJ_ID = ISSUES.PROJ_ID )
    as ISSUES_DATA
    FROM PROJECT
    WHERE PROJECT.PROJ_ID = 1
    This query works fine when I create a direct connection using Oracle JDBC
    thin driver. But when I execute same thing using a connection from a
    Weblogic connection pool (which uses exactly the same Oracle JDBC thin
    driver, classes12.zip), I get following error-
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: this method
    is not supported by OracleXMLDataSetGenJdbc' class. Please use
    'OracleXMLDataSetExtJdbc' instead.</ERROR>
    Following are the details about my environment:
    Weblogic5.1 on Windows NT 4.0
    Oracle 8.1.5 on Sun Solaris
    Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
    Oracle XML SQL utility XSU12_ver1_2_1
    Does anyone have any idea what is going on. Please help.
    Thanks.

    Thanks for your reply.
    Here is what I am doing:
    I have connection pool defined in welogic.properties file
    weblogic.jdbc.connectionPool.oraclePool=\
    url=jdbc:oracle:thin:@192.168.2.251:1521:orcl,\
    driver=oracle.jdbc.driver.OracleDriver,\
    loginDelaySecs=1,\
    initialCapacity=1,\
    maxCapacity=15,\
    capacityIncrement=1,\
    allowShrinking=true,\
    shrinkPeriodMins=5,\
    refreshMinutes=5,\
    testTable=,\
    props=user=someuser;password=somepasswd
    weblogic.allow.reserve.weblogic.jdbc.connectionPool.oraclePool=everyone
    weblogic.jdbc.TXDataSource.orclDataSource=oraclePool
    Then I have a DBConnection class which gets connection from the pool
    following is some code from DBConnection class
    private Connection con = null;
    private DataSource ds = null;
    private String providerURL;
    private String dataSource;
    private String contextFactory;
    private IpmsProps ipmsProp = null;
    public Connection getConnection() {
    if ( con == null ) {
    try {
    ipmsProp = IpmsProps.getInstance();
    providerURL = ipmsProp.getProviderURL();
    dataSource = ipmsProp.getDataSource();
    contextFactory = ipmsProp.getContextFactory();
    Properties p = new Properties();
    p.put(javax.naming.Context.PROVIDER_URL, providerURL);
    p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
    contextFactory);
    Context ctx = new InitialContext(p);
    Context ctx = new InitialContext();
    ds = (DataSource) ctx.lookup(dataSource);
    con = ds.getConnection();
    } catch (Exception e) {
    System.out.println("Error While creating connection! " +
    e.toString());
    } // catch
    I Hope you will be able to provide me some work around.
    Thank you very much for the help.
    Rajinder.
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Hi. It's probably because you're calling some Oracle-specific method,passing it
    a pool JDBC object, and though the Oracle methos signature says it will
    take a generic java.sql.XXX object, it really is going to assume the thingis
    an Oracle class, and fails when it tries to cast it to such.
    Depending on how you're getting your pool connection, I may have aworkaround.
    Joe
    Rajinder Arora wrote:
    I am using Oracle XML SQL utility to generate some XML using CURSOR
    operator.
    Following is the query -
    SELECT PROJECT.PROJ_CD,
    PROJECT.PROJ_TITLE,
    CURSOR(SELECT ISSUES.ISSUE_ID
    FROM ISSUES
    WHERE PROJECT.PROJ_ID =
    ISSUES.PROJ_ID )
    as ISSUES_DATA
    FROM PROJECT
    WHERE PROJECT.PROJ_ID = 1
    This query works fine when I create a direct connection using OracleJDBC
    thin driver. But when I execute same thing using a connection from a
    Weblogic connection pool (which uses exactly the same Oracle JDBC thin
    driver, classes12.zip), I get following error-
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: cursorGetMetaData: thismethod
    is not supported by OracleXMLDataSetGenJdbc' class. Please use
    'OracleXMLDataSetExtJdbc' instead.</ERROR>
    Following are the details about my environment:
    Weblogic5.1 on Windows NT 4.0
    Oracle 8.1.5 on Sun Solaris
    Oracle JDBC thin Classes12.zip (from Oracle 8.1.6)
    Oracle XML SQL utility XSU12_ver1_2_1
    Does anyone have any idea what is going on. Please help.
    Thanks.--
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advancedpositions
    for people who want to work with Java, XML, SOAP and E-Commerceinfrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San JoseCA.
    Send resumes to [email protected]

  • 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

  • Oracle XML SQL Utility for Java ..

    I installed the Oracle SQL utility. But when i give a command on client side like
    C:\>java OracleXML
    it gives an error OracleXML class not found.
    Can anybody help how to run this utility.
    Thanks
    Shrikant

    You have to make sure that the oraclexmlsql.jar is in your java CLASSPATH.
    Assume you have oraclexmlsql.jar in C:\temp
    On NT, you would do something like:
    C:\> set CLASSPATH=C:\temp\oraclexmlsql.jar;%CLASSPATH%
    C:\> java OracleXML
    and it will work.

  • Getting rid of RowSetTag in Oracle XML SQL utility

    Hi,
    I am using Oracle XMLSQL utility to get the query results in XML. I know that there will be just one row retrieved from the
    query. I do not want any <RowSet> tag and i want to set the <Row> tag.
    So, I did:
    query.setMaxRows(1);
    query.setRowSetTag("")l
    query.setRowTag("Entity");
    and performed the query. The result is an <error> saying that since both rowset and row tags are set to null, i can only retrieve
    one row..
    If i remove the setRowSetTag("") line then i get the result :
    <RowSet>
    <Entity>
    </Entity>
    </RowSet>
    from which i want the <rowset> to be gone.
    Can someone tell me how to do it?
    Also,
    is there a way in which i can add a DTD statement on the top when i want to print the DOM tree of the query results as an XML
    document?? I do not want any validation against it though (the package that reads this XML needs that <!DOCTYPE> directive
    on top.. )
    regards,
    Gangadhar

    For your first question:
    To ensure the result XML to be well-formed, <ROWSET> tag need to be include no matter how many rows you will got. To remove the <ROWSET> Why not use:
    <xsl:value-of select="/ROWSET/ROW"/>
    null

  • Errors when loading XML SQL Utility

    I'm working on a Unix machine, attempting
    to load the Oracle XML SQL Utility classes
    into my database so that I can use them in
    stored procedures.
    My problem is occuring when I try to use
    loadjava to install the classes. I haved
    altered both env.csh and oraclrxmlsqlload.csh to match my shell and desired settings, but I get a core dump when loadjava executes in the script:
    SIGSEGV received. Processing terminated
    full version ""
    Full thread dump:
    "Async Garbage Collector" (TID:0x3002bd00, sys_thread_t:0x2006b7d8)
    Native Thread State: ThreadID: 00000203 Reuse: 1 DAEMON MONITOR WAIT
    Native Stack Data : base: 201133a0 pointer 20113018 used(904) free(257144)
    ----- Monitors held -----
    ----- Native stack -----
    ------ Java stack ------ () prio=1
    "Finalizer thread" (TID:0x3002bd38, sys_thread_t:0x2006b588)
    Native Thread State: ThreadID: 00000102 Reuse: 1 DAEMON MONITOR WAIT
    Native Stack Data : base: 200ca230 pointer 200c9f68 used(712) free(257336)
    ----- Monitors held -----
    ----- Native stack -----
    ------ Java stack ------ () prio=1
    "main" (TID:0x3002bd70, sys_thread_t:0x20007278)
    Native Thread State: ThreadID: 00000001 Reuse: 1 USER PRIMORDIAL RUNNING
    Native Stack Data : base: 2ff22004 pointer 2ff1f658 used(10668) free(247380)
    ----- Monitors held -----
    java.lang.Class java/sql/DriverManager@30025318
    oracle.jdbc.oci8.OCIDBAccess@300304e8
    ----- Native stack -----
    eoj_memcpy(d15779b8)
    eoj_memcpy(d1574d08)
    eoj_memcpy(d1574484)
    inflate_copyright(2c203a6e)
    inflate_copyright(2c203a6e)
    [sigsegv]...
    ------ Java stack ------ () prio=5 current thread
    Anyone have any ideas what might be the problem?

    Sorry...missed your first question there.
    I'm running AIX 4.3.2 on an IBM RS/6000 Server. I've got Java 1.1.6 installed.

  • XML SQL utility - Installation problem

    Hi,
    I have downloaded XML SQL utility. When I tried to execute oraclexmlsqlload.bat file I get this error....
    ORA-12203: TNS:unable to connect to destination.
    Can any one help me ??
    vik

    Hi Howard,
    It looks like your DB is not jave enabled. You have to have
    your 8i or later DB java enabled in order to load the java
    classes and have them run within the database (jvm of the
    database).
    Howard Feng (guest) wrote:
    : Oracle gurus,
    : I downloaded the Oracle XML SQL Utility for Java and plan to
    use
    : it in my PL/SQL code on the server-side (Solaris). However I
    : cannot get it to install correctly:
    : 1. I can run the famous
    : java OracleXML getXML -user "cquant/cquant1" ...
    : test, so my Java paths are all right.
    : 2. When I try to tun the oraclexmlsqlload.csh script, I got the
    : following message early (just a sample, the actual messages are
    : thousands of lines; they are the same for both jar files),
    : identical: oracle/xml/sql/name/OracleADTName is unchanged from
    : previously loaded
    : file
    : then,
    : resolving: oracle/xml/parser/v2/PathExpr
    : Error while resolving class oracle/xml/parser/v2/PathExpr
    : ORA-04043: object oracle/xml/parser/v2/PathExpr does not
    : exist
    : then the PL/SQL stuff blows up. I tried several times, the same
    : thing. I believed that we have run the initjvm script.
    : 3. I physically dropped these "Java CLass" from the Oracle DB,
    : and they are gone. However, these error messages are the same
    : when I try to run oraclexmlsqlload.csh again.
    : Please help! Thanks,
    : Howard Feng
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL Utility - OracleXMLStore?

    I am stepping thru the release notes for the "Oracle XML SQL
    Utility for Java". I have incorporated the env.csh into my
    .cshrc file as shown below. I am currently trying to "Load the
    Oracle XML SQL Utility for Java into an Oracle DB". I am having
    problems running the oraclexmlsqlload.csh. It seems to run
    @xmlgenpkg.sql without errors; however, the
    @oraclexmlsqltest.sql produces the following error:
    ERROR at line 1
    class OracleXMLStore does not exist
    at SCOTT.XMLGEN line 32
    at line 38
    class OracleXMLStore does not exist
    Here is my .cshrc file
    # @(#)cshrc 1.11 89/11/29 SMI
    umask 022
    set path=( /bin /usr/bin /usr/ucb /etc /usr/openwin/bin
    /usr/local/bin /usr/sbin /usr/ccs/bin .)
    if ( $?prompt ) then
    set history=32
    endif
    #setenv ORACLE_HOME /usr/oracle-home
    setenv ORACLE_BASE /usr/oracle
    setenv ORACLE_HOME /usr/oracle/8.1.5
    set path = ( $path $ORACLE_HOME/bin )
    #setenv PATH $PATH:$ORACLE_HOME/bin:/usr/openwin/bin:/usr/sbin
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    setenv ORACLE_SID p
    setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
    setenv PD $ORACLE_HOME/OracleXSU
    setenv CLASSPATHJ $ORACLE_HOME/jdbc/lib/classes111.zip
    setenv XMLSQL_DIR $PD/lib/oraclexmlsql.jar:$PD
    setenv ORACLE_PARSER $PD/lib/xmlparser.jar
    setenv JDK_HOME /usr/java1.1
    set CLASSPATH = ($ORACLE_PARSER $CLASSPATHJ $JDK_HOME
    $XMLSQL_DIR)
    setenv TNS_ADMIN $ORACLE_HOME/network/admin
    setenv ORACLE_TERM sun5
    echo 'Running .cshrc...'
    alias ls ls -F
    null

    Oracle XML Team,
    After running the initjvm script and re-executing
    oraclexmlsqlload, no errors occurred. Also, the sample java
    files which come with the kit worked correctly. Thanks for all
    the help that you have provided. The support was fantastic!
    Oracle XML Team wrote:
    : Hello Ron,
    : It sounds more and more like your db is not java enabled. To
    : java enable it connect to it using server manager as internal
    and
    : then run the initjvm script (goto javavm/install directory and
    : you should see the initjvm script). The other option which
    would
    : make life easier is for you to contact your dba. Let me know
    how
    : things go.
    : Ron Newby (guest) wrote:
    : : Ahhhh, executing the script with csh started several
    loading...
    : : and creating... commands; however, an error did occur:
    : : Creating xmlparser _2.0.0.1.0_beta
    : : Error creating xmlparser _2.0.0.1.0_beta
    : : ORA-29547 Java system class not available
    : : oracle/aurora/rdbms/Compiler
    : : After this error, several "ORA-29534 referenced object...
    could
    : : not be resolved" errors occured.
    : : Oracle XML Team wrote:
    : : : Your db might be already java initialized (if not, please
    : : look
    : : : at your documentation on how to do this). One problem that
    I
    : : did
    : : : notice is that you are trying to execute a csh script in
    sh.
    : : : Please try
    : : : $ csh oraclexmlsqlload.csh
    : : : or
    : : : $ tcsh oraclexmlsqlload.csh
    : : : Let me know the outcome.
    : : : Ron Newby (guest) wrote:
    : : : : After a closer look at the output from running
    : : : oraclexmlsqlload,
    : : : : it doesn't look like the loadjava worked correctly. We
    are
    : : : : running Oracle 8.1.5. What is required to make the db
    java
    : : : : enabled? I have run the examples using the thin driver
    : which
    : : : : worked correctly. Below are the results of running
    : : : : oraclexmlsqlload.csh.
    : : : : $ sh oraclexmlsqlload.csh
    : : : : Loading jar files...
    : : : : Loading xmlparser...
    : : : : loadjava: Usage: loadjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-resolve] [-andresolve] [-force] [-synonym]
    : : : : [-definer] [-resolver r
    : : : : esolver] [-grant user,user...] [-schema schema] [-debug]
    : : : : [-oracleresolver] class
    : : : : es..jars..resources..properties...
    : : : : Loading oraclexmlsql.jar...
    : : : : loadjava: Usage: loadjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-resolve] [-andresolve] [-force] [-synonym]
    : : : : [-definer] [-resolver r
    : : : : esolver] [-grant user,user...] [-schema schema] [-debug]
    : : : : [-oracleresolver] class
    : : : : es..jars..resources..properties...
    : : : : Cleaning up...
    : : : : dropjava: Usage: dropjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-schema schema] [-debug]
    : : : : classes..jars..resources..properties...
    : : : : Completed loading classes
    : : : : Creating functions...
    : : : : SQL*Plus: Release 8.1.5.0.0 - Production on Fri Nov 26
    : : 10:03:37
    : : : : 1999
    : : : : (c) Copyright 1999 Oracle Corporation. All rights
    : reserved.
    : : : : Enter password:
    : : : : Oracle XML Team wrote:
    : : : : : Hi Ron.
    : : : : : Before creating the xmlgen pkg, oraclexmlsqlload.csh
    : : tries
    : : : to
    : : : : : load the oracle xml parser and the oraclexmlsql.jar
    into
    : : your
    : : : : db
    : : : : : (i.e. it does a "loadjava..."). Is that part finishing
    : : : : properly?
    : : : : : Realize that to be able to run the utility within the
    : db
    : : : you
    : : : : : need to have at least Oracle 8.1.5 and have it java
    : : enabled.
    : : : : If
    : : : : : you don't have this you can always run the utility as a
    : : : client
    : : : : : connecting via the Oracle JDBC1.22 compliant drivers.
    : : : : : Ron Newby (guest) wrote:
    : : : : : : I am stepping thru the release notes for the "Oracle
    : XML
    : : : SQL
    : : : : : : Utility for Java". I have incorporated the env.csh
    : into
    : : my
    : : : : : : .cshrc file as shown below. I am currently trying to
    : : "Load
    : : : : the
    : : : : : : Oracle XML SQL Utility for Java into an Oracle DB".
    I
    : am
    : : : : : having
    : : : : : : problems running the oraclexmlsqlload.csh. It seems
    to
    : : run
    : : : : : : @xmlgenpkg.sql without errors; however, the
    : : : : : : @oraclexmlsqltest.sql produces the following error:
    : : : : : : ERROR at line 1
    : : : : : : class OracleXMLStore does not exist
    : : : : : : at SCOTT.XMLGEN line 32
    : : : : : : at line 38
    : : : : : : class OracleXMLStore does not exist
    : : : : : : Here is my .cshrc file
    : : : : : : # @(#)cshrc 1.11 89/11/29 SMI
    : : : : : : umask 022
    : : : : : : set path=( /bin /usr/bin /usr/ucb /etc
    /usr/openwin/bin
    : : : : : : /usr/local/bin /usr/sbin /usr/ccs/bin .)
    : : : : : : if ( $?prompt ) then
    : : : : : : set history=32
    : : : : : : endif
    : : : : : : #setenv ORACLE_HOME /usr/oracle-home
    : : : : : : setenv ORACLE_BASE /usr/oracle
    : : : : : : setenv ORACLE_HOME /usr/oracle/8.1.5
    : : : : : : set path = ( $path $ORACLE_HOME/bin )
    : : : : : : #setenv PATH
    : : : : $PATH:$ORACLE_HOME/bin:/usr/openwin/bin:/usr/sbin
    : : : : : : setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    : : : : : : setenv ORACLE_SID p
    : : : : : : setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
    : : : : : : setenv PD $ORACLE_HOME/OracleXSU
    : : : : : : setenv CLASSPATHJ
    $ORACLE_HOME/jdbc/lib/classes111.zip
    : : : : : : setenv XMLSQL_DIR $PD/lib/oraclexmlsql.jar:$PD
    : : : : : : setenv ORACLE_PARSER $PD/lib/xmlparser.jar
    : : : : : : setenv JDK_HOME /usr/java1.1
    : : : : : : set CLASSPATH = ($ORACLE_PARSER $CLASSPATHJ $JDK_HOME
    : : : : : : $XMLSQL_DIR)
    : : : : : : setenv TNS_ADMIN $ORACLE_HOME/network/admin
    : : : : : : setenv ORACLE_TERM sun5
    : : : : : : echo 'Running .cshrc...'
    : : : : : : alias ls ls -F
    : : : : : Oracle Technology Network
    : : : : : http://technet.oracle.com
    : : : Oracle Technology Network
    : : : http://technet.oracle.com
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Oracle.xml.sql.OracleXMLSQLException:Cannot enable auto commit within JTS transaction

    Hi All,
    OracleXMLSave class in the Oracle XDK is being used to load XML data into an 8170 database. The Java code is running in IBM WebSphere with container-managed transactions. When JTA is enabled with the Merant JDBC driver for Oracle, we get the following error when the XML is loaded:
    oracle.xml.sql.OracleXMLSQLException: Cannot enable auto commit within JTS
    transaction
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2213)
         at oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
    This suggests the OracleXMLSave class is not aware of the fact that it is now operating in a JTS transaction where control is managed elsewhere. i.e. should also not attempt to commit or rollback, as this is the responsibility of the container.
    Is there a property which needs to set to prevent the above or does the XDK not work with J2EE (JTS) transactions?.
    If you have any useful comments, let me know. Testing the above presents me with a number of problems so if this is easily explained , let me know.
    Thanks,
    Malcolm

    Clearly , there does seem to be something a bit odd with the above stack.
    <Bug:1917808> mentions OracleXMLSave in context of plsql equivalent : dbms_xmlsave . i.e dbms_xmlsave is a wrapper around OracleXMLSave class.
    disabling autocommit on connection as follows should help:
    conn = DriverManager.getConnection("connect string","scott","tiger");
    conn.setAutoCommit(false);
    to disble auto commit and see if this has an effect.
    This issue might be <Bug:1497506>. If disabling autocommit does not work then it appears that it could be this issue .
    Malcolm
    Hi All,
    OracleXMLSave class in the Oracle XDK is being used to load XML data into an 8170 database. The Java code is running in IBM WebSphere with container-managed transactions. When JTA is enabled with the Merant JDBC driver for Oracle, we get the following error when the XML is loaded:
    oracle.xml.sql.OracleXMLSQLException: Cannot enable auto commit within JTS
    transaction
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2213)
         at oracle.xml.sql.dml.OracleXMLSave.insertXML(Compiled Code)
    This suggests the OracleXMLSave class is not aware of the fact that it is now operating in a JTS transaction where control is managed elsewhere. i.e. should also not attempt to commit or rollback, as this is the responsibility of the container.
    Is there a property which needs to set to prevent the above or does the XDK not work with J2EE (JTS) transactions?.
    If you have any useful comments, let me know. Testing the above presents me with a number of problems so if this is easily explained , let me know.
    Thanks,
    Malcolm

  • 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

  • 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]

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

  • Problem to load XML SQL Utility into other user

    Hi,
    I need help to load XML Utility into other user than
    "scott"tiger".
    I loaded both xmlparser.jar and oraclexmlsql.jar into
    "scott/tiger", it works and creating functions and testing work
    fine. But when change USER_PASSWORD to another user, it gave me
    some errors like
    creating : org/xml/sax/helpers/AttributeListImpl
    Error while creating class org/xml/sax/helpers/AttributeListImpl
    ORA-29506: invalid query derived from USING clause
    ORA-00942: table or view does not exist
    Error while accessing MD5 table
    ORA-00942: table or view does not exist
    Do I need create any table or view for my another oracle account?
    Or did I missed any thing. From the installation instruction, I
    cano not find any about creating table or view before I load the
    two jar files.
    Thanks
    Yuping
    null

    Hi Yuping,
    Great to hear that! Thx for posting the solution to the
    problem! Let us know if you have any problems with the utility
    or if u need any enhancements!
    Thx
    Murali
    Yuping Zhu (guest) wrote:
    : Hi,Murali,
    : The problem is fixed now. When load xmlparser into the user, it
    : creates two tables automatically, my mistake is I did not grant
    : "create table" privilege to the user. After I granted the
    : privilege to it, it works fine.
    : Thanks!
    : Yuping
    : Murali K (guest) wrote:
    : : Hi,
    : : I will check this out with the Java folks and let u know
    : : Thx
    : : Murali K
    : : Yuping Zhu (guest) wrote:
    : : : Hi, Murali
    : : : I'm using Oracle8i on Solaris 2.6. When I load xmlparser
    : using
    : : : loadjava -resolve -verbose -user $USER_PASSWORD
    xmlparser.jar
    : : : I get error message and I catch part of erros
    : : : PS, I can load it into scott/tiger.
    : : : Thanks!
    : : : Yuping
    : : : loading : org/w3c/dom/html/HTMLLegendElement
    : : : Error while loading org/w3c/dom/html/HTMLLegendElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLLegendElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLLegendElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : org/w3c/dom/html/HTMLImageElement
    : : : Error while loading org/w3c/dom/html/HTMLImageElement
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : creating : org/w3c/dom/html/HTMLImageElement
    : : : Error while creating class
    org/w3c/dom/html/HTMLImageElement
    : : : ORA-29506: invalid query derived from USING clause
    : : : ORA-00942: table or view does not exist
    : : : Error while accessing MD5 table
    : : : ORA-00942: table or view does not exist
    : : : loading : oracle/xml/parser/v2/XSLException
    : : : Error while loading oracle/xml/parser/v2/XSLException
    : : : ORA-04068: existing state of packages has been
    discarded
    : : : ORA-04063: package body "IOEXML.LOADLOBS" has errors
    : : : ORA-06508: PL/SQL: could not find program unit being called
    : : : ORA-06512: at line 1
    : : : Murali K (guest) wrote:
    : : : : Hi Yuping,
    : : : : I tried the same on a 8i database and it seems to be
    : : working
    : : : : fine. (loading into two schemas). In fact I just created
    : the
    : : : : other user and it doesnt have any tables or anything in
    it.
    : : : : You do not need to create anything (table/view) extra
    for
    : : : these
    : : : : to work.
    : : : : Which database (Oracle8 or 8i) are u using?
    : : : : Thanks
    : : : : Murali
    : : : : Yuping Zhu (guest) wrote:
    : : : : : Hi,
    : : : : : I need help to load XML Utility into other user than
    : : : : : "scott"tiger".
    : : : : : I loaded both xmlparser.jar and oraclexmlsql.jar into
    : : : : : "scott/tiger", it works and creating functions and
    : testing
    : : : work
    : : : : : fine. But when change USER_PASSWORD to another user,
    it
    : : gave
    : : : me
    : : : : : some errors like
    : : : : : creating : org/xml/sax/helpers/AttributeListImpl
    : : : : : Error while creating class
    : : : : org/xml/sax/helpers/AttributeListImpl
    : : : : : ORA-29506: invalid query derived from USING clause
    : : : : : ORA-00942: table or view does not exist
    : : : : : Error while accessing MD5 table
    : : : : : ORA-00942: table or view does not exist
    : : : : : Do I need create any table or view for my another
    oracle
    : : : : account?
    : : : : : Or did I missed any thing. From the installation
    : : instruction,
    : : : I
    : : : : : cano not find any about creating table or view before
    I
    : : load
    : : : : the
    : : : : : two jar files.
    : : : : : Thanks
    : : : : : Yuping
    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

Maybe you are looking for

  • Calling procedure in oracle forms

    Hi all,i have a procedure in the backend and when i am calling it in forms nothing happens.The procedure is syntactically correct. Procedure PROCEDURE XXC_MTL_TRANSACTIONS(v_file_number IN VARCHAR2) IS BEGIN INSERT INTO mtl_transactions_interface    

  • Setting up a SAP development system

    Most of my applications I have developed using SAP systems at client sites. I would love to be able to setup a development system in my own LAB. Could anyone advise me as to how I can get hold of a copy of SAP so I can develop my applications in hous

  • Process flow: validation error: VLD-10010

    OWB 10.2 process flow: I simply put a mapping in a process flow between the START and END activity and want to validate it. But I get the error: "VLD-10010: MAP_TEMP_POS's bound object null of type null?? has been deleted." The mapping itself is alre

  • Lens/distortion correction updates?

    I haven't been able to find any reference to how new profiles for lens corrections will be updated in the new Lightroom, anyone have any insight?

  • If the delta is break in my R3 production system.

    Hello All, How to initialise the delta if the delta is break in my production system in R3. The delta is fetching records in more then 1 ODS. Once set up how to check if no single record is missed. Is there any proocedure how to take care of the exis