Loading Datagrams with XML SQL Ulitility
I am trying to exercise the following command from Steve's book Chapter 12.
java OracleXML putXML -user xmlbook/xmlbook -filename out.xml newsstory
I get a class not found error.
Can you tell me where I can find the OracleXML in the PATH assuming I have installed everything correctly ?
Hi 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
Similar Messages
-
Oraclexe and loading file with .xml suffix
Using the Oraclexe utility to load an xml file it errors with xml error load, and that is all. I created a table (create table xmload of xmltype). Here is a snippet of the xml content. What needs to be done to "get there from here".
<Response RequestID="1000000080000" Client="PERMS" RequestStatus="Passed" SessionAuthToken="sessionAuthToken" TimeSlot="09:20:00 18:00:00">
<Soldier Status="Passed" NumberOfDocuments="53">
<SSN>123456789</SSN>
<SoldierName>Doe Jonnie</SoldierName>
<Site>M</Site>
<Document DocStatus="Passed" Pages="1">
<DocType>CRS RES/NR</DocType>
<DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
<SID>G</SID>
<EffDate>2002/03/15</EffDate>
<AcceptDate>2002/04/29</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202804760</DocID>
</DocumentID>
</Document>
<Document DocStatus="Passed" Pages="2">
<DocType>679DA</DocType>
<DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
<SID>A</SID>
<EffDate>2002/04/30</EffDate>
<AcceptDate>2002/09/14</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202932534</DocID>
</DocumentID>
</Document>
<Document DocStatus="Passed" Pages="1">
<DocType>CRS RES/NR</DocType>
<DocDescription>COURSE COMPLETION CERTIFICATE (RESIDENT OR NONRESIDENT)</DocDescription>
<SID>G</SID>
<EffDate>2000/04/14</EffDate>
<AcceptDate>2000/07/01</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>202074950</DocID>
</DocumentID>
</Document>
</Document>
<Document DocStatus="Passed" Pages="2">
<DocType>679DA</DocType>
<DocDescription>US ARMY OFFICER EVALUATION REPORT</DocDescription>
<SID>A</SID>
<EffDate>1999/04/04</EffDate>
<AcceptDate>1999/07/26</AcceptDate>
<DocumentID>
<ScanSite>S</ScanSite>
<DocID>201773383</DocID>
</DocumentID>
</Document>
</Soldier>
</Response>For those who are interested, the problem come from the differents drivers used for files :
In Sunopsis, by default :
- driver : com.sunopsis.jdbc.driver.FileDriver
- url jdbc : jdbc:snps:file
In ODI
- driver : com.sunopsis.jdbc.driver.file.FileDriver
- url jdbc : jdbc:snps:dbfile
Problem solved. -
HOWTO: Writing Out XML Query Results of Any Size in Java with XML SQL Utility
A customer mailed me asking for an example of how to use our XML SQL Utility to write out query results for tons of query result rows.
With tons of data, the getXMLDOM() and getXMLString() methods are not really appropriate due to the size.
The XML SQL Utility offers a getXMLSAX() method that streams SAX2 events to report the data being queried. This is the approach we can use to handle data of any size.
It dawned on me today that by putting together the XML SQL Utilities getXMLSAX() routine, and the oracle.xml.parser.v2.XSLSAXPrintDriver SAX2 ContentHandler, we can effectively stream out data of any length to an appropriate writer.
Here's a code example to get the point across:
package test;
import java.io.BufferedOutputStream;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
import javax.xml.transform.OutputKeys;
import oracle.jdbc.OracleDriver;
import oracle.xml.parser.v2.XSLException;
import oracle.xml.parser.v2.XSLOutput;
import oracle.xml.parser.v2.XSLSAXPrintDriver;
import oracle.xml.sql.query.OracleXMLQuery;
public class Example {
private static final String QUERY = "select * from emp";
public static void main(String[] args) throws Throwable {
Connection conn = getConnection();
OracleXMLQuery q = new OracleXMLQuery(getConnection(),QUERY);
// Any printwriter will do. Here's we're output to standard out.
PrintWriter output = new PrintWriter(new BufferedOutputStream(System.out));
// This is a SAX2 Content Handler used by the Oracle XSLT Engine
// to serialize a stream of sax2 events as an XML document
// We'll use it to serialize the sax2 events from the XML SQL Utility
// out as an XML document.
XSLSAXPrintDriver ch = new XSLSAXPrintDriver(output, outputOptions());
// This asks XML SQL Utility to fire sax events for the data
// being fetched instead of creating DOM nodes or returning text.
// By using the XSLSAXPrintDriver content handler, these events
// get handled by writing them directly to the output stream
q.getXMLSAX(ch);
ch.flush();
q.close();
conn.close();
private static XSLOutput outputOptions() throws XSLException {
XSLOutput x = new XSLOutput();
Properties props = new Properties();
props.put(OutputKeys.METHOD,"xml");
props.put(OutputKeys.INDENT,"yes"); // Set to "no" for non-indented
x.setProps(props);
return x;
public static Connection getConnection() throws SQLException {
String username = "scott";
String password = "tiger";
String thinConn = "jdbc:oracle:thin:@localhost:1521:ORCL";
Driver d = new OracleDriver();
return DriverManager.getConnection(thinConn,username,password);
}Hi Uber,
This is a known issue that error occurs when running report "Count of instances of specific software registered with Add or Remove Programs" due to non-printable characters for XML. Based on internal research, the hotfix for this issue will be
included in the System Center 2012 Configuration Manager Service Pack 1.
As a workaround, you can remove the nonprintable character populated into the report parameter by referring to the following KB article:
http://support.microsoft.com/KB/914159
Hope this helps.
Regards,
Mike Yin
Mike Yin
TechNet Community Support -
Hi all, can anyone help
can anyone shine a little light onto a little confusion I am having, I have a menu that already loads in images via an XML file on a menu, what I am trying to do is when an image/meni Item is click I would like to load in an swf into the same place as the image Item loads into! am I making any sense.
on a click event, do I use in the XML file the <link>link to swf</link> ????
this is what I have in my xml file that loads in the images so far;
<image name="image 12" path="img/img12.jpg"
title="Lorem ipsum 12"
text="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi commodo 12" />
what I am getting confused with is what I also put within the AS, I am sure it is not alot but I'm just not sure what needs to go where??
this is what I have within the AS that loads in XML, I hope its ok to paste this code, never like posting to much code incase is scares people off, I just don't want to leave anything out, hope thats ok with everyone:eek:
// Use URLLoader to load XML
xmlLoader = new URLLoader();
xmlLoader.dataFormat = URLLoaderDataFormat.TEXT;
// Listen for the complete event
xmlLoader.addEventListener(Event.COMPLETE, onXMLComplete);
xmlLoader.load(new URLRequest("data.xml"));
stage.addEventListener( MouseEvent.MOUSE_WHEEL, onMouseWheel );
//———————————————EVENT HANDLERS
private function onXMLComplete(event:Event):void
// Create an XML Object from loaded data
var data:XML = new XML(xmlLoader.data);
// Now we can parse it
var images:XMLList = data.image;
for(var i:int = 0; i < images.length(); i++)
// Get info from XML node
var imageName:String = images[i].@name;
var imagePath:String = images[i].@path;
var titles:String = images[i].@title;
var texts:String = images[i].@text;
// Load images using standard Loader
var loader:Loader = new Loader();
// Listen for complete so we can center the image
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImageComplete);
loader.load(new URLRequest(imagePath));
// Create a container for the loader (image)
var holder:MovieClip = new MovieClip();
holder.addChild(loader);
var button_main:Button_mr = new Button_mr(); /
holder.addChild(button_main);
var tooltip:ToolTip = new ToolTip();
tooltip.field.text = titles; //loads tooltip 1
tooltip.field2.text = texts; //loads tool tip 2
tooltip.x = -350;
tooltip.y = 0;
holder.addChild(tooltip);
// Same proceedure as before
holder.buttonMode = true;
holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
// Add it to the menu
circleMenu.addChild(holder);
many thanks for any help!!!!1. Be sure in main.swf there is no masking or layering hiding
the reflection area. A way to test quickly is to load in a plain
master swf that is much larger than the externals swf.
2. Know the weakness of loadMovie for timing issues that
require the external movie to be fully loaded before actions are
taken on it. I see a bunch of these in the code you posted. Best to
use
MovieClipLoader.onLoadInit
before you attempt to access the external swf properties or code or
add code.
3. Be sure the code is firing on load and all objects are
created. Add some trace statements for those objects.
4. I noticed you do not use BitmapData so this may not be
relevant but be sure to add
System.security.allowDomain("*");
to the main.swf as well as in external swfs and only if you
are using the BitmapData class.
5. As I started to look at the code a bit and noticed this
item:
There is no constructor for the Flash MovieClip class. You
will not see a compiler error message because you do not have the
code wrapped into a class.
var home:MovieClip = new MovieClip();
However it does not have impact on the code.
better would be
var home:MovieClip; -
HI
I want to load an xml file into a RDBMS table, using sunopsis xml driver.
I try to use an other xml file than the initial that is defined in the driver url.
I cannot run this instruction in a XML treatment before the interface :
LOAD FILE "C:/AXYUS/SURSAUD/entree/sosmed1.xml" WITH DTD "C:/AXYUS/SURSAUD/entree/sosmed.dtd" REPLACE READONLY AUTO_UNLOCK
the file doesn't change at alll and I always load the initial file ( sosmed.xml )
any idea ?Make sure that you issue your LOAD FILE command
- on the SAME Transaction (0, 1, 2, etc...) than the one used in the LKM,
- with the SAME logical schema as the source table logical schema
- and with the SAME Context (if you use the execution context - leave it unset).
This should do the trick, and the connection created in the procedure will be reused in the interface, provided that you chain both in a package.
Regards,
-FX -
Embedded container swf loading swf with xml
I'd call myself an intermediate AS3 newbe. I have a series of slideshows that is called by a 'container' Flash file.
These slideshow swf files are now rather large (230 kb) so as a test, I redid one of them as a Flash file that uses xml rather than the images called within the file itself (file size 68 kb), which is my first exploration into xml & AS3.
All the non-xml files load and play fine locally (well, sort of, since there's some weird glitchs which show up in different ways at different times in the container loading too many files one after another at times - and sometimes there's no problem at all) but that's not my current problem here.
Basic URL structure: document relative
1. container file (container.fla/container.swf) will be embedded in a html file. --> /Flash.container.swf The contain file has a series of links to other .swf files.
2. The container file other .swf files (selection of 10) from a subfolder called /sbrds i.e. --> UILoader loads "Flash/sbrds/albert.swf"
3. The albert.fla/albert.swf loads an xml slideshow from a subfolder of sbrds called /AlBert --> /Flash/sbrds/Albert code "loader.load(new URLRequest("AlBert/AlBertXX.xml"));" (quotes in message only)
4. Inside the /Albert folder I have the xml file and all the images. xml file is AlBertXX.xml (attached)
5. local structure --> desktop/workingFiles/storyboards (container.fla) /Flash /sbrds (albert.fla) /Albert (Albertxx.xml & image.jpgs)
would equal on the server as root html/Flash/sbrds/Albert
Locally... The albert.fla (in the /Flash/sbrds folder) itself works fine with no errors when calling the xml file. But when I test that file from the container.fla/swf I get a 2044/2032 error "Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///.../myLocalDesktopFolder/storyboards/AlBert/AlBertXX.xml at albert_fla::MainTimeline/albert_fla::frame1()"
I've check and rechecked for any typos in the xml slideshow test and don't find any. Any ideas?
Could it be that I'm calling a xml driven file from a non-xml driven file?
I have all the files including my buggy htm file at http://www.danwelter.com/susanTest_static.htm
All the pertinent fla and image files are in the /flash folder (too many to attach).
-- Thanks --- SusanHi Jan
Apparently the update went into place on my personal laptop
overnight last night. I awoke this morning to discover it had
rebooted itself and it was patiently waiting for me to enter my
bootup password. Anyhoo, I happened to notice that today when I
hovered the mouse over my Captivate movie, I saw the dreaded
“click to activate and use this control” message that
popped up in a tooltip. What to do?
Well, I did notice that it seemed to require a mouse click to
"activate" the control, but simply running the movie seemed to be
fine. I then wondered what would be disabled. When my movie got to
the first button, the initial click was used to enable the control.
Then the second click was accepted and progressed the movie.
I hopped out on the web and found a page at the following
URL:
http://www.amarasoftware.com/flash-problem.htm
After following the instructions there, my files seemed fine.
Here are the steps I followed:
1. Copied the code on the page and pasted into an empty
Notepad.
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects
.outerHTML = theObjects.outerHTML;
2. Saved as file name ieupdate.js.
3. Copied the link code and pasted between the closing object
and center tags.
Before:
</object>
</center>
After:
</object>
<script type="text/javascript"
src="ieupdate.js"></script>
</center>
It occurs to me that one could easily modify the "seed" HTML
page Captivate uses when it creates the HTML page. This page is
named standard.htm and is found in the following location:
C:\Program Files\Macromedia\Captivate\Templates\Publish
This would save tweaking the HTM each time you publish. Then
you would only need to worry about making sure you copied the
associated ieupdate.js file to the same folder.
You gotta love lawsuits. I really hope those that "won" are
happy that we all now have to jump through all the hoops to make
things work. Sheesh
Hopefully this helps... Rick -
Problem with XML SQL JDBC adapter
Hello All.
I have quite strange problem with my PI.
Whole scenario is SOAP -> JDBC, asynchronous. Everything works fine on DEV server. After transporting objects (using CTS) to QA env I'm getting this error:
JDBC Message processing failed, due to Error processing request in sax parser:
No 'action' attribute found in XML document
(attribute "action" missing or wrong XML structure)
But document seems to be correct. I've compared it to DEV server documents - they are identical. What could be wrong??
Document looks like this:
<ns2:BIPMessage xmlns:ns2="http://mynamespace.com/xi/sn"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<synchSlLok>
<STATEMENTNAME>
<SYNCH_SL_LOK ACTION="INSERT">
<TABLE>SYNCH_SL_LOK</TABLE>
<ACCESS>
<ID_TRANS>22050</ID_TRANS>
<ID_LOK>1234</ID_LOK>
<ID_CBK>1000050911</ID_CBK>
<NR_LOK>1234</NR_LOK>
<OPIS_LOK>12312312312312</OPIS_LOK>
<TYP>D</TYP>
<OPERACJA>U</OPERACJA>
</ACCESS>
</SYNCH_SL_LOK>
</STATEMENTNAME>
</synchSlLok>
</ns2:BIPMessage>
TIA
Best Regads
MaciejHi,
i was also facing the same error few days back in a JDBC -RFC-JDBC Synchronous scenario. In that scenario, i was using 2 modules in JDBC sender module tab. It was working fine. later i change polling interval and then i started getting same error. it happened coz of sequence of Module got changed somehow.
So please check in Receiver JDBC adapter and SOAP sender adapter CC if anything is changed. If this scenario is working in DEV as it is then it should work after transport.
Else have a look here
Re: attribute "action" missing or wrong XML structure
JDBC - No 'action' attribute found in XML document - error
Regards
Aashish Sinha
Edited by: Aashish Sinha on Mar 15, 2011 10:42 AM -
Best practice? Loading text with XML or AS?
I am developing some instructional material that will include
some practice questions. I know of 2 ways to handle the dynamic
text, but am not sure what is considered best practice in the Flash
community. Is XML the best, fastest or more efficient than
embedding the text into actionscript?
Thanks!
BradIf the questions will ever need to be changed, updated, or
edited, then XML would be the best.
If you just need the quickest way to build your Flash and not
have to worry about loading external files and what to do if the
file isn't available, then put them into the body of the
FLA. -
I use XSU to generates a document xml with data results from a query.
I want to change the structure of data of this document, so I use XSLT.
The method XSLProcessor.processXSL needs to parameters a "Stylesheet" and a "XMLDocument".
The problem is that XSU gives the result as a "String" format or "Document" format.
What can I do?
ThanksHi,
The Document that XSU returns is in effect an XMLDocument (that is understood by the v2 parser)
Thanks
MUrali -
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. -
Problems loading images dynamically with XML
Hi Everyone,
I am working with a project that was build by another
developer and I have been asked to modify it several ways. This is
an interactive map for a hotel brand where when you click on the
USA, you get a list of all the states, click a state and a list of
all the hotels in that state comes up, click a hotel, the hotel's
information is displayed. I understand the structure of the files,
how they make them work, though I couldn't build it myself.
The problem I am having is this. can't make the hotels'
photos load into the flash through the XML. I created a target
movie file that the image could load into but something is not
happening as far as loading the images. I don't know if the movie
clip that I created is the right way to go (it was made as an
object in the library that is exported via AS), or if I should
create one in the action script file that loads the XML data.
I looked at some tutorials about how to load images with XML
but those didn't get into the level of detail that I need for this
project.
I've attached some partial code to see if anyone can help me
work through this.
Any and all suggestions are welcome.
Thanks for the help in advance.
JeremiahI'm a noob at AS3 and trying to learn this XML stuff myself,
but i have been able to load pictures to the stage...this might
help you...my xml file photo section is similar to yours, only I
have it labeled as "href" instead of "source"...
var imageLoader:Loader;
var xml:XML;
var xmlList:XMLList;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("xmldata/images.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(event:Event) :void {
xml = XML(event.target.data);
xmlList = xml.children();
for (var i:int = 0; i<xmlList.length(); i++) {
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList
.attribute("href")));
imageLoader.x = 0;
imageLoader.y = 0;
addChild(imageLoader); -
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 -
Report with XML as input !
Hello,
I am hv been trying to create a simple report with an XML input but by the end of it, it doesnt give any data on the report.
I tried it with XML + SQL input, it gave me a blank report and when I tried with a pure SQL input it did give data in the report. I enabled the trace option but couldnt get to the core of the problem.
My XML & XSD file are all valid, they are auto-generated.
The report doesnt give any error either.
Any clue what the problem could be ??
Regards,
Madhu.Post Author: ashdbo
CA Forum: Data Connectivity and SQL
I think it can be done by looking at Crystal Report XI.BUTHow can I do this programatically in Java ? Thanks,Ashok -
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 -
How can i load a big xml data using sql loader into oracle
hi,
I have a large xml about 5M at c:\temp and interested to load it in an oracle table with the following structure:
emp
empno number(10),
ename varchar2(250),
sal number(15)i am new with xml database
Best Regards,hi,
when i am trying to follow the steps then getting following error:
any help will be greatly appreciated:
SELECT * FROM v$version;
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
DROP directory xmlstore;
Directory dropped.
my xml file:
< ?xml version="1.0" encoding="UTF-8"?>
<root>
<id>0</id>
<info>
<info_id>0</info_id>
<info_content>Text</info_content>
</info>
</root>
CREATE directory xmlstore11 AS 'c:\temp';
Directory created.
CREATE TABLE test
(xmldata xmltype);
TABLE created.
INSERT INTO test
VALUES
(XMLTYPE(bfilename('XMLSTORE11','info.xml'),NLS_CHARSET_ID('AL32UTF8')));
received error is as follow:
Error starting at line 24 in command:
INSERT INTO test
VALUES
(XMLTYPE(bfilename('XMLSTORE11','info.xml'),NLS_CHARSET_ID('AL32UTF8')))
Error report:
SQL Error: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00231: invalid character 32 (' ') found in a Name or Nmtoken
Error at line 1
ORA-06512: at "SYS.XMLTYPE", line 295
ORA-06512: at line 1
31011. 00000 - "XML parsing failed"
*Cause: XML parser returned an error while trying to parse the document.
*Action: Check if the document to be parsed is valid.
Maybe you are looking for
-
First off, my computer had to be wiped clean back in early January. All my programs was gone and that included my CS6 program. So I re-installed them. Then one day, I see this Adobe update and it had the Adobe Creative Cloud App. I think I did someth
-
Why when I'm in Bridge and use the image processor, it's not closing the files after processing in Photoshop cs5? It did about a day or so ago and now all of a sudden it wont.
-
Flash player needs to be installed everyday and more!
I've downloaded adobe flash player. it works for a little while then later on or the next time i boot up tells me i need to install adobe flash player to view a web page (like youtube, ect.) i've uninstalled it x15 or more and downloaded it all ov
-
Blanket PO/Service PO-- NO Goods recipient field value populating from SRM
Hi, When i post either Service PO (item type D) or blanket PO (Item type B) .e Goods recipient field not being populated in ECC. Where as if its the standard PO, then i am getting this Recipient field populated with requisitioner number. are there a
-
DHCP not handing out IP leases to non-domain members
Recently gotten DHCP working, server gives out IP address for domain computers only, non-domain computers do not get a lease and if I manually assign an IP and the device will gain network and internet access. I used the wizard to create the DHCP IP