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
Similar Messages
-
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. -
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
Hatemgo thru technet.oracle.com/tech/xml for the installation info.
-
Loading XML SQL Utility's OracleXMLStore class
I have downloaded the XSU111 and loaded all the java classes. but the when I load OracleXMlsql.jar it does not resolves classes OracleXMLStore, OracleXML and OracleXMLSave givinf error ORA-29354.
What can I do to load these particular
classes?I also have downloaded the XSU111 and loaded all the java classes. My situation is quite similar. Once I load OracleXMlsqlLoad.csh, it does not resolves classes OracleXMLStore, OracleXML and OracleXMLSave giving error ORA-29541. Then I tried to loadjava xsu111.jar, it can't create resource and can't fins valid column giving error ORA-29547 and ORA-00904.
-
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.
nullMurali,
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 -
Hi,
I'm trying to use the XML SQL Utility against a 8.0.5 database.
I coded a basic query against the SCOTT.EMP table.
I've instantiated an OracleXMLQuery object using both types of
constructors (i.e. Connection + ResultSet or query String). In
both cases the resulting XML String contains:
<?xml version="1.0"?>
<ERROR>Closed Resultset</ERROR>
I know that my Connection and ResultSet objects are valid because
I examined the ResultSet contents using standard JDBC getXXX
methods for the same Connection and query. I am establishing my
Connection using the thin driver. Is this the problem? Can you
also elaborate on the Oracle specific requirements for this API?
For example, will the API work for Connection and ResultSet
objects against non-Oracle databases? Thanks.
Fred
nullHi Fred,
The closed ResultSet problem would occur when u are trying to
re-use the same object,
e.g.
OracleXMLQuery oxq = new OracleXMLQuery(conn,resultsetobject);
// get the string..
String xmlString = oxq.getXMLString();
By default OracleXMLQuery closes the ResultSet after
completion. so if u use.
xmlString = oxq.getXMLString();
again, you will get this error.
To overcome this there is a call called keepCursorAlive() which
takes in a boolean value. So call that function on oxq before
getting the first string and everything will be all right.
Currently we also close the resultSet given by the user. This
is a bug (we should only close our internal resultset) and we
will fix it in the next drop. Also we will make this error
message much more legible!
Regarding working against other databases, we use Oracle
specific stuff currently in case of object features such as
ADTs, REFs and collections and LOBs. For regular relational data
such as number, varchar etc.., we don't do anything special.
So for plain relational data this should work against
ResultSet and Connection objects created from other databases.
But to be honest, we haven't tested that out. So if you do
indeed run into any problems with other databases, please let us
know and we will try to fix it.
Thx
Murali
Fred Criscuolo (guest) wrote:
: Hi,
: I'm trying to use the XML SQL Utility against a 8.0.5 database.
: I coded a basic query against the SCOTT.EMP table.
: I've instantiated an OracleXMLQuery object using both types of
: constructors (i.e. Connection + ResultSet or query String).
In
: both cases the resulting XML String contains:
: <?xml version="1.0"?>
: <ERROR>Closed Resultset</ERROR>
: I know that my Connection and ResultSet objects are valid
because
: I examined the ResultSet contents using standard JDBC getXXX
: methods for the same Connection and query. I am establishing
my
: Connection using the thin driver. Is this the problem? Can
you
: also elaborate on the Oracle specific requirements for this
API?
: For example, will the API work for Connection and ResultSet
: objects against non-Oracle databases? Thanks.
: Fred
null -
XML SQL Utility - persistent problems
Hi,
We are trying to install the XML SQL Utility for Oracle 8.1.5 on Solaris 2.6. We keep getting the problem OracleXMLStore could not be resolved. Based on different threads in this group, we have tried the following:
1. Installed JDK 1.1.8 in place of the 1.1.3 that we had. This did not change the error.
2. Carefully rechecked env.csh to ensure that the paths are all accurate.
3. Ran initjvm from within the SVRMGR.
The error we get is:
ERROR at line 1:
ORA-29541: class BETA_DEV.OracleXMLStore could not be resolved
ORA-06512: at "BETA_DEV.XMLGEN", line 412
ORA-06512: at line 10
Any suggestions on what to try next?
Thanks!Select * from User_errors
and see what errors are preventing it from being resolved. This might give a clue... -
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 ??
vikHi 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 -
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
nullFirst, 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 -
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
nullOracle 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 -
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...
nullHi,
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 -
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.
MichaelOracle 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 -
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
nullWhile 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Ÿ+
Alex -
XML SQL Utility, 8i, NT4, test code
I have been unable to get the sample code to run successfully
after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
Windows NT4 Service Pack 4.
To make sure I was doing nothing wrong, I reinstalled Oracle 8i
and loaded all the java into scott/tiger. Also the PLXMLPARSER
codes does appear to run correctly. At least the samples seem to
work.
I tried to use the oraclexmlsqlload.bat script, but the script
stopped after after loading oraclexmlsql.jar. So I ran each of
the loadjava scripts on the command line. They exited without
errors. Even the xmlgen package installed without errors. But
when I ran oraclexmlsqltest.sql, I got a message that said the
procedure completed successfully, but there was not output.
I put a dbms_output.put_line(SQLCODE) with each of the two
exceptions and got the following error. The procedure actually
failed on "when others" with error -29531. According to the
Error Manual this is
ORA-29531 no method string in class string
Cause: An attempt was made to execute a non-existent method in a
Java class.
Action: Adjust the call or create the specified method.
At this point I am not sure what to do.
nullHi Frank,
Frank, make sure that the two "select xmlgen....." are
returning a valid XML document. If these aren't working let me
know, otherwise add a:
set serveroutput on
after the commit.
Also, before you do this, restore oraclexmlsqltest.sql to its
original state ... the exception section was masking exceptions
which we are aware we generate. If you look closely you will see
that we do a very rough job outputing the lob containing the XML
document (we print out past the length of the LOB, which raises
an exception).
Let me know what happens.
Frank Hubeny (guest) wrote:
: I have been unable to get the sample code to run successfully
: after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
: Windows NT4 Service Pack 4.
: To make sure I was doing nothing wrong, I reinstalled Oracle 8i
: and loaded all the java into scott/tiger. Also the PLXMLPARSER
: codes does appear to run correctly. At least the samples seem
to
: work.
: I tried to use the oraclexmlsqlload.bat script, but the script
: stopped after after loading oraclexmlsql.jar. So I ran each of
: the loadjava scripts on the command line. They exited without
: errors. Even the xmlgen package installed without errors. But
: when I ran oraclexmlsqltest.sql, I got a message that said the
: procedure completed successfully, but there was not output.
: I put a dbms_output.put_line(SQLCODE) with each of the two
: exceptions and got the following error. The procedure actually
: failed on "when others" with error -29531. According to the
: Error Manual this is
: ORA-29531 no method string in class string
: Cause: An attempt was made to execute a non-existent method in
a
: Java class.
: Action: Adjust the call or create the specified method.
: At this point I am not sure what to do.
Oracle Technology Network
http://technet.oracle.com
null -
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 ??
vikUse 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
Maybe you are looking for
-
Difficulty displaying date as dd-MM-yyyy in jsp using jdeveloper [SOLVED]
Hi there, I have searched through these forums and can't find anyone with the same problem as I am having (probably because I'm just being really dumb). All I want to do is generate today's date and use this value in a html:text box on a .jsp page. I
-
WebDAV Navigation and Japanese
Hi All, I have an English Windows XP with the following settings within Control Panel -> Regional and Language Options: 1. Regional Options tab's Standards and Formats is set to Japanese. 2. Languages tab has had "Install files for East Asian languag
-
Final Cut Pro - startup with fullscreen black monitor
Hi, when I start Final Cut Pro I only get a fullscreen black monitor. Only the topnavigation shows up wehn I move the mouse to this area. regards arex-germany
-
Returning user... with questions...
First off.. Thanks for taking time to read this post... A little history : I started life on an Apple II and learned from there..I finally ended "the journey" on an Apple IIc (I know Mac was there, but not for me...$$)..I, like many entered "PC" land
-
Computer freezes while running Endeca Tools Service
Hello, We are facing a problem while running Endeca Tools Service with Experience Manager (v3.1.2 ) on Windows 7. My computer freezes recurrently while the service is running. The same issue is happening to all of my colleagues who have installed