XML SQL Utility (XSU) in BPEL process

Is it possible to use XML SQL Utility (XSU) in BPEL process? I would like to generate XML from a query.

I'm using Oracle 8.1.6.1.0 (but instead of classes12.zip I'm attempting to use ojdbc14.jar)

Similar Messages

  • 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

  • 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

  • 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

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

  • 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 - declaration error

    Hi,
    I'm trying to use the XSU API in a Java server page and am getting an error with the <?xml version='1.0'> declaration tag. The parser seems to think it is not well-formed. Here is what I am doing: Using JSP, I query my database and use XSU to return the results as an XML string. I'm working on an Oracle personal edition version 8.1.7 on an Windows 2000 machine. When I had the Microsoft XML Parser version 2.5 installed, XSU would work and it would print out the XML document tree view. The document was well-formed, according to IE5.5. However, I wanted to use an XSLT stylesheet that would print out the xml results in an HTML table. The MS XML Parser 2.5 had to be upgraded to version 3.0 in replace mode, in order for the XSLT stylesheets to work. When I upgraded, the stylesheets worked, but then for all the JSP pages that were utilizing the XML SQL Utility, when I tried to view the page in IE5.5, I would get the declaration tag error I mentioned above.
    Any suggestions on how I can get the JSPs to work with XSU (without having to revert back to the older MS parser)? Is there another parser that I can use? I'm working with the Apache web server that Oracle personal edition installs.
    Thanks,
    SY

    The XML Declaration needs to be:
    <?xml version="1.0"?>
    and it must be the very first bytes of the file. There must not be any whitespace before the <?xml version="1.0"?> in what the JSP returns to the browser.
    This extra whitespace is frequently the cause of the problem in JSP cases that I've seen.

  • XML SQL Utility or XSQL Servlet ?

    Hi,
    I am trying to generate a well formed XML file by querring from oracle8i database and also include different XSL files to render different output styles.
    Should I use XML SQL Utility or XSQL Servlets ??
    From the documentation I see that both XML SQL utility and XSQL servlets will do the job(am I right ?). But I am sure which one I should be using.
    Can any one advice me on this ?
    Thanks.
    Kane

    "HI u have to use XML SQl utility to run ur SQL and ur sqlservelet to process and get the output in the browser"
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Kane:
    Hi,
    I am trying to generate a well formed XML file by querring from oracle8i database and also include different XSL files to render different output styles.
    Should I use XML SQL Utility or XSQL Servlets ??
    From the documentation I see that both XML SQL utility and XSQL servlets will do the job(am I right ?). But I am sure which one I should be using.
    Can any one advice me on this ?
    Thanks.
    Kane<HR></BLOCKQUOTE>
    null

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

  • 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

  • XML SQL Utility with Oracle 8.0.5

    hi,
    Is it possible to use XML SQL Utility with Oracle 8.0.5.
    Thanks,
    -Mourad
    null

    Yes. You need to use the Oracle8i 8.1.6 JDBC driver with XSU, but it can connect to an 8.0.5 instance.

  • XML SQL utility ( Urgent)

    Hi,
    I am trying to install XML SQL utility. I have jdk1.2.2 and
    oracle xml parser v2. I ran the env.bat file. Then when I try to
    run the oraclexmlsqlload.sql file i got 822 errors. Then I try
    to run the first file "loadjava -resolve -verbose -user %
    USER_PASSWORD% xmlparser.jar" I got some these kind of errors,
    resolving: org/w3c/dom/html/HTMLBodyElement
    Error while resolving class org/w3c/dom/html/HTMLBodyElement
    ORA-04043: object org/w3c/dom/html/HTMLBodyElement does not
    exist
    resolving: org/xml/sax/helpers/LocatorImpl
    Error while resolving class org/xml/sax/helpers/LocatorImpl
    ORA-04043: object org/xml/sax/helpers/LocatorImpl does not
    exist
    resolving: oracle/xml/parser/v2/Axis
    Error while resolving class oracle/xml/parser/v2/Axis
    ORA-04043: object oracle/xml/parser/v2/Axis does not exist
    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
    resolving: oracle/xml/parser/v2/FromDescPrecedingSibling
    Error while resolving class
    oracle/xml/parser/v2/FromDescPrecedingSibling
    ORA-04043: object
    oracle/xml/parser/v2/FromDescPrecedingSibling does not exi
    st
    "I GOT SOME VIEW/TABLE DOES NOT EXIST ERROR ALSO"
    Here is my env.bat file..................
    rem Copyright (c) Oracle Corporation 1999. All Rights Reserved.
    rem
    rem NAME
    rem env
    rem
    rem DESCRIPTION
    rem environmental variables needed to compile or run
    OracleXML utility
    rem
    rem ------------------------ oraclexmlsql utility directory path
    rem set PD to point to the directory in which you expanded the
    zip file
    set PD=C:\Oracletools\OracleXSU
    rem ------------------------ JDBC classes
    set CLASSPATHJ=D:\Oracle\Ora8i\jdbc\lib\classes111.zip
    rem ------------------------
    rem This need not be changed
    set XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%
    PD%\sample
    rem ------------------------ Oracle XML parser settings
    rem This need not be changed
    set ORACLE_PARSER=%PD%\lib\xmlparser.jar
    rem ------------------------ JDK_HOME
    set JDK_HOME=C:\JDK1.2.2
    rem ------------------------ CLASSPATH settings
    set CLASSPATH=%ORACLE_PARSER%;%CLASSPATHJ%;%JDK_HOME%
    \lib\classes.zip;%XMLSQL_DIR%;%CLASSPATH%
    I need urgent help from you...........
    Thanks,
    Chandran...
    null

    Hi,
    Here is the problem. As per your suggestion I had installed
    Jdk1.8.8 and jdbc driver too. Though I am having one JDBC driver
    in oracle8i, I have downloaded from your site and set the env
    path and run the env.bat file. Then when I tried to execute the
    Java OracleXML getXML -user "scott/tiger" "select * from emp"
    file I got runtime error. But first time what I did was I had
    already run the oraclexmlsqlload file so there are lot of
    chances for OracleXML class file to be deleted. So Again I ran
    the oraclexmlsqlload bat file, so definitely it should load the
    oraclexmlsql file and xmlparser file. I didn't get any error. So
    I tried the file for xmlgenpkg it says package created with no
    errors and when I tried the oraclexmlsqltest file I got the same
    error...what I did get yesterday............
    Here is the output , please help me out....
    SQL> @C:\Oracletools\OracleXSU\lib\oraclexmlsqltest.sql;
    SQL> Rem
    SQL> Rem $Header: oraclexmlsqltest.sql 27-jul-99.22:53:37
    vnimani Exp $
    SQL> Rem
    SQL> Rem oraclexmlsqltest.sql
    SQL> Rem
    SQL> Rem Copyright (c) Oracle Corporation 1999. All Rights
    Reserved.
    SQL> Rem
    SQL> Rem NAME
    SQL> Rem oraclexmlsqltest.sql - <one-line expansion of
    the name>
    SQL> Rem
    SQL> Rem DESCRIPTION
    SQL> Rem <short description of component this file
    declares/defines>
    SQL> Rem
    SQL> Rem NOTES
    SQL> Rem <other useful comments, qualifications, etc.>
    SQL> Rem
    SQL> Rem MODIFIED (MM/DD/YY)
    SQL> Rem vnimani 07/27/99 - add testing for
    setStyleSheetType
    SQL> Rem vnimani 06/19/99 -
    Rem mkrishna 06/13/99 -
    Rem mkrishna 06/13/99 - add more testsSQL> Rem mkrishna 05/27/99 - sql testing the db loaded util
    SQL> Rem mkrishna 05/27/99 - Created
    SQL> Rem
    SQL>
    SQL> Rem Do not set serveroutput to be on here. There are
    problems (bug) when the
    SQL> Rem serveroutput is turned on before the last PL/SQL block
    is executed.
    SQL>
    SQL> set long 4000
    SQL> set pages 8000
    SQL> set echo on
    SQL>
    SQL> Rem Use these to test the results..
    SQL> select xmlgen.getXML('select * from scott.emp',1) from dual;
    select xmlgen.getXML('select * from scott.emp',1) from dual
    ERROR at line 1:
    ORA-29540: class OracleXMLStore does not exist
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at line 1
    SQL> select xmlgen.getXML('select * from all_Tables where
    owner=''SCOTT''') from dual;
    select xmlgen.getXML('select * from all_Tables where
    owner=''SCOTT''') from dual
    ERROR at line 1:
    ORA-29540: class OracleXMLStore does not exist
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at line 1
    SQL>
    SQL> Rem
    SQL>
    SQL>
    SQL> commit;
    Commit complete.
    Thanks,
    Chan...
    Oracle XML Team wrote:
    : Hi Chan,
    : Soon we will release a version of the XSU which runs with
    : JDK1.2 but for now the XSU requires JDK1.1.x. Also, your
    : Oracle8i (or later) database must be java enabled.
    : for starters, try and run the command line front end of the
    : utility:
    : java OracleXML getXML -user "scott/tiger" "select * from emp"
    : once you get this part running then proceed trying to load
    the
    : utility into the db. Note, to run the command line front end
    you
    : will need to have the Oracle JDBC drivers for use with
    JDK1.1.x.
    : They are freely available from:
    : technet.oracle.com/tech/java/sqlj_jdbc
    : Chan (guest) wrote:
    : : Hi,
    : : I am trying to install XML SQL utility. I have jdk1.2.2
    and
    : : oracle xml parser v2. I ran the env.bat file. Then when I try
    : to
    : : run the oraclexmlsqlload.sql file i got 822 errors. Then I
    try
    : : to run the first file "loadjava -resolve -verbose -user %
    : : USER_PASSWORD% xmlparser.jar" I got some these kind of
    errors,
    : : resolving: org/w3c/dom/html/HTMLBodyElement
    : : Error while resolving class org/w3c/dom/html/HTMLBodyElement
    : : ORA-04043: object org/w3c/dom/html/HTMLBodyElement does
    not
    : : exist
    : : resolving: org/xml/sax/helpers/LocatorImpl
    : : Error while resolving class org/xml/sax/helpers/LocatorImpl
    : : ORA-04043: object org/xml/sax/helpers/LocatorImpl does
    not
    : : exist
    : : resolving: oracle/xml/parser/v2/Axis
    : : Error while resolving class oracle/xml/parser/v2/Axis
    : : ORA-04043: object oracle/xml/parser/v2/Axis does not
    exist
    : : 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
    : : resolving: oracle/xml/parser/v2/FromDescPrecedingSibling
    : : Error while resolving class
    : : oracle/xml/parser/v2/FromDescPrecedingSibling
    : : ORA-04043: object
    : : oracle/xml/parser/v2/FromDescPrecedingSibling does not exi
    : : st
    : : "I GOT SOME VIEW/TABLE DOES NOT EXIST ERROR ALSO"
    : : Here is my env.bat file..................
    : : rem Copyright (c) Oracle Corporation 1999. All Rights
    : Reserved.
    : : rem
    : : rem NAME
    : : rem env
    : : rem
    : : rem DESCRIPTION
    : : rem environmental variables needed to compile or run
    : : OracleXML utility
    : : rem
    : : rem ------------------------ oraclexmlsql utility directory
    : path
    : : rem set PD to point to the directory in which you expanded
    the
    : : zip file
    : : set PD=C:\Oracletools\OracleXSU
    : : rem ------------------------ JDBC classes
    : : set CLASSPATHJ=D:\Oracle\Ora8i\jdbc\lib\classes111.zip
    : : rem ------------------------
    : : rem This need not be changed
    : : set
    : XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%
    : : PD%\sample
    : : rem ------------------------ Oracle XML parser settings
    : : rem This need not be changed
    : : set ORACLE_PARSER=%PD%\lib\xmlparser.jar
    : : rem ------------------------ JDK_HOME
    : : set JDK_HOME=C:\JDK1.2.2
    : : rem ------------------------ CLASSPATH settings
    : : set CLASSPATH=%ORACLE_PARSER%;%CLASSPATHJ%;%JDK_HOME%
    : : \lib\classes.zip;%XMLSQL_DIR%;%CLASSPATH%
    : : I need urgent help from you...........
    : : Thanks,
    : : Chandran...
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • XML SQL Utility Thread Error

    Greetings:
    I am working on how to use xml and 8i to our benefit. I have
    installed Oracle 8i and I have downloaded the XML SQL Utility.
    In checking out the installation using the standard "java ...
    select from" example I get the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError:
    OracleXML
    The first place I checked was the env.bat file, I found an
    incorrect classpath and changed it:
    rem - JDK_HOME
    set JDK_HOME=C:\JDK1.1.6 (no such folder)
    to
    rem - JDK_HOME
    set JDK_HOME=C:\JDK1.2.2
    All other paths look good. I executed the bat file and tried the
    example again. Same error.
    Any Ideas??
    null

    Still same error.
    Here is what I've done.
    1. rem the JDK Home
    2. downloaded Java 1.1.8 JDK
    3. changed computer env. path to include 1.1.8 JDK
    I have checked all the paths in the bat file and all are pointing
    to the correct place to find the file listed with one exception:
    I don't have a src file in the %PD% folder.
    rem This need not be changed
    set
    XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%PD%\
    sample
    Where should it be pointing for the src file?
    Oracle XML Team wrote:
    : Hi Michael,
    : Based on the symptoms described, I am guessing something in
    : your environment still isn't right (i.e. env.bat hasn't been
    : configured correctly). Please confirm that all the paths in
    that
    : directory point to the right places. In particular make
    : sure that your CLASSPATH includes the directory in which
    : oraclexmlsql.jar and parser.jar reside. Also, the XSU is
    : supposed to run against JDK1.1.6 (we haven't tested it against
    : 1.2). One last thing... make sure that JAVA_HOME environment
    : variable is NOT set (i.e. make sure it is undefined).
    : Michael Cline (guest) wrote:
    : : Greetings:
    : : I am working on how to use xml and 8i to our benefit. I have
    : : installed Oracle 8i and I have downloaded the XML SQL
    Utility.
    : : In checking out the installation using the standard "java ...
    : : select from" example I get the following error:
    : : Exception in thread "main" java.lang.NoClassDefFoundError:
    : : OracleXML
    : : The first place I checked was the env.bat file, I found an
    : : incorrect classpath and changed it:
    : : rem - JDK_HOME
    : : set JDK_HOME=C:\JDK1.1.6 (no such folder)
    : : to
    : : rem - JDK_HOME
    : : set JDK_HOME=C:\JDK1.2.2
    : : All other paths look good. I executed the bat file and tried
    : the
    : : example again. Same error.
    : : Any Ideas??
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • 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

Maybe you are looking for