New to XML and Oracle
Just trying to clarify some issues as I try and learn about XML, and specifically how it integrates into the DB.
1 - Is there a way with Oracle tools for me to get an XSD of an existing 9i relational schema? We are not currently using the XML DB, but our middleware developers would like to have an up to date XSD to use for their internal mapping.
2 - Is there any way that I can keep that XSD up-to-date automatically, so I get a new one whenever the schema gets updated?
3 - If I wanted to investigate storing XML docs within the DB in native XML format, I need to have an XML DB, correct? Is this DB construct maintained seperatelly from my "normal" relational schema? or are they kept in sync by Oracle?
I know these may all be real basic questions, but as I said, I'm new to XML and Oracle. I am reading as much as I can, but there are a lot of docs out there.
Thanks,
Mike
Hi
1. On my opinion such a tool doesn't exists. Some parts can be implemented elsewhere, but not as described by you... e.g. with XSU if you specify the parameter "withschema" the XSD of the executed statement is generated. Another example is to use DBMS_METADATA to dump the data dictionary in XML (but not XSD, of course you could write your own XSLT to do this transformation...).
2. -
3. If you use XSD-based tables the XSD and the relational model are stored separately in the data dictionary. Therefore if you change the XSD you have to drop/create the XSD-based table... no schema evolution yet.
Chris
Similar Messages
-
Hi Wizards
I'm in an endeavour to do the following things -
1.Generate XML output from Oracle 8i Lite database
2.Modify the XML and update the database taking the modified XML.
My java platform is JDK 1.2. I've used the XML SQL Utility for Java, and in doing so i've been successful with the 1st step. I've used the Oracle 8.1.6SDK JDBC Driver which is compatible with JDK 2.The code fragment is like the following -
import java.io.*;
import java.sql.*;
import java.math.*;
import oracle.xml.sql.query.*;
import oracle.jdbc.*;
import oracle.jdbc.driver.*;
public class orasql1
public static void main(String args[]) throws SQLException
Connection conn = null;
String tabName = "emp";
try {
Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
conn = DriverManager.getConnection("jdbc:Polite:POlite", "SYSTEM", "manager");
catch (Exception e) {
System.out.println("Oracle Connection error\t:");
System.out.println(e);
System.exit(0);
OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from " + tabName);
qry.setRowsetTag("SCHEMADOC_1");
qry.setRowTag("EMPLOYEE");
qry.setStyleSheet("emp.xsl");
String xmlString = qry.getXMLString(true);
conn.close();
try {
File output = new File("emp.xml");
FileWriter xmlFile = new FileWriter(output);
xmlFile.write(xmlString,0,xmlString.length());
xmlFile.close();
catch (Exception e) {
System.out.println("Output file error\t:");
System.out.println(e);
System.exit(0);
I am putting some sample code for step 2 in the following section -
import oracle.xml.sql.dml.*;
import java.sql.*;
import oracle.jdbc.driver.*;
import oracle.jdbc.*;
import java.net.*;
public class orasql2
public static void main(String args[]) throws SQLException
Connection conn = null;
String tabName = "emp";
String fileName = "emp.xml";
try {
Class.forName("oracle.lite.poljdbc.POLJDBCDriver");
conn = DriverManager.getConnection("jdbc:Polite:POlite", "SYSTEM", "manager");
catch (Exception e) {
System.out.println("An error has occurred.");
System.out.println("Please check your CLASSPATH variable..");
System.out.println(e);
System.exit(0);
OracleXMLSave save = new OracleXMLSave(conn, tabName);
URL url = save.createURL(fileName);
save.setRowTag("SCHEMADOC_1");
int rowCount = save.insertXML(url);
System.out.println("Successfully inserted "+rowCount+" rows into "+tabName);
conn.close();
Compiling the above code is fine, no errors! But while running the application I get the error -
Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: java.lang.Class
CastException: oracle.lite.poljdbc.OracleStatement
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:345)
at oracle.xml.sql.dml.OracleXMLSave.insertXML(OracleXMLSave.java:248)
at orasql2.main(orasql2.java:27)
My question is whether this thing can be done at all using Oracle 8i Lite? If so then how?
Waiting for ur advices.
Biplab
(An Indian, but at present in Houston, Texas)It looks like be a classpath issue. Would you check with the class name.
-
hi, I'm new to xml, actually I'm taking a course in xml and I should choose a certain project related to xml.
I want to ask about xml and java
the things that I know about java is some classes ( I made a program of bouncing ball in java and changed some java game programs). but I need to know how to use java in databases and how to relate it to xml
Is it too dificult or I can learn it knowing that I'm ready to learn and already I'm learning xml.
If anyone wants to help me please send me links to some websites where it is simple to learn java .
Also if any one can give me an example of a certain project that can be done easily using java and xml u'll be more than welcomeCheck the JAVA XML Tutorials provided by the Java Site.
-
Xml and oracle 8i (geom)
I try to excute the program called SampleSDOtoXML; wich exist in sdoapi_samples.zip and ;this program has for role to generate XML file from geom in oracle spatial 8i (sdo_geometry),and i include the directory for SampleSDOtoXML.class in my JAVA Classpath ,the compilation is good ,however, in execution it didnt generate any file but it give me this message:
Exception in thread "main" java.lang.NoClassDefFoundError: SampleSDOtoXML (wrong
name: sample/SampleSDOtoXML)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:471)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:242)
at java.net.URLClassLoader.access$1(URLClassLoader.java:210)
at java.net.URLClassLoader$1.run(URLClassLoader.java:191)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:185)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:279)
at java.lang.ClassLoader.loadClass(ClassLoader.java:249)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:308)
please, if you have any solutions dont hesitate.
thanks.It looks like be a classpath issue. Would you check with the class name.
-
Latest News on MDX and Oracle OLAP (from Simba Technologies)
[http://blogs.simba.com/simba_technologies_ceo_co/2009/05/mdx-query-language-for-oracle-11g-olap-update.html|http://blogs.simba.com/simba_technologies_ceo_co/2009/05/mdx-query-language-for-oracle-11g-olap-update.html]
Excerpt from above Simba Technologies CEO blog*
One interesting thing we found from some of the Beta customers is that they thought this was an Excel only solution. Yes, we are focusing all the efforts for v1 on Excel, but this is planned to be a full blown MDX provider for Oracle OLAP*. Therefore, you will get the entire MDX query language and this interface will be similar to what you have with Microsoft Analysis Services or SAP Business Warehouse. Although v1 will be ODBO only, we are planning to support XMLA in future versions. The priorities for what we support and when will be customer driven. One question I have is after Excel, which MDX application do you think we should test with and support next:
1. SAP Business Objects Crystal Reports
2. SAP Business Objects Voyager
3. MicroStrategy 9
4. Microsoft Reporting Services
5. Microsoft SharePoint BI
6. IBM Cognos Business Intelligence 8
7. Panorama NovaView
.Thanks very much for your response. Pls find the details as requested. You can reach me in [email protected]
Environment Details
- BO XI 3.1 SP4 Enterprise Premium (incl Voyager) on Win2008 R2 [Tomcat Flavour]
- Oracle 11.2.0.1 Enterprise Edition with OLAP on AIX 6.1
- Simbha MDXProviderForOracleOLAP v2.1.0.23 on Win2008 R2
Cubes are built using AWM 11.2.0.2A.
To be more specific, the issue occurs when we attempt put a filter on the dimension (or select members of the dimension) both in the existing workspaces or when we try to create a new workspace in Voyager. Attaching the screenshot of the error message.
Kindly let us know incase you would require further information. Also, if you would like to have a webex session where I can show the issue, I am happy to do the same.
Edited by: user1572606 on Jan 4, 2012 9:00 PM -
Hi Oracle XML Team,
I really need to understand clearly about how 8i supports XML.
Please help to answer the following questions quickly.
1) Using the available components such as XML SQL utilities, XML
Class gen, Parser and the Servlet. Can I use all this to develop
an application to retrieve, store and query XML doc in 8i (do I
need any components such as intermedia)?
2) The licensing scheme for all the above 4 four components
stated that it is not for commercial use? But what if I need to
deploy my application soon ? Is there a separate licensing
scheme for deployment?
3) I am using 8i standard edition now, if I would to use
iFS/intermedia....do I need to get the Enterprise Edition?
Please help me. Thank you very much
Sam
nulli think you want something along the lines of :
stageFade_mc.swapDepths(theMovieOnTopAtTheMoment);
Note that only dynamically created movies have depths. So if
either of the movieclips in question are just sitting in your
timeline you cant swap their depths.
In that case you either need to duplicateMovieClip() or just
set things _visible property where apropriate.
good luck
jon -
XML and Oracle 9.0.1.0.0
how active function XML(XMLElement,..) in [
Oracle9i Enterprise Edition Release 9.0.1.0.0 -]
thanks.Alex,
does a
select xmlelement("SQLX", 'Hello ,World!') from dual; work?
SQL> select xmlelement("SQLX", 'Hello World!') from dual;
XMLELEMENT("SQLX",'HELLOWORLD!')
<SQLX>Hello World!</SQLX>
It works for me in 9.2
SQL> select xmlelement("orderid", order_num) from orders;
XMLELEMENT("ORDERID",ORDER_NUM)
<orderid>1</orderid>
<orderid>2</orderid>
<orderid>3</orderid>
<orderid>1</orderid>
<orderid>2</orderid>
<orderid>3</orderid>
6 rows selected.
SQL> -
XML and oracle 7.3.X Urgent
Dear Sir/Madam
Is there any product/package available to load XML files into database tables when running on a 7.3.X database in a client/server environment?
Thanks a lotI need to do the work on a UNIX box (if I am not mistaken, ODBC/JDBC would not work there). Ideas?
Thanks,
ah -
New to XML - what can XML and java do thogether - brief examples please
I am new to XML and relatively new to Java, thought not new to programming. I am still trying to figure out what can XML do for me in practical terms and when I should use it. Thanks for any examples of when to use XML in conjunction with Java.
xml : Think of it in terms of business solutions, the way you would think of HTML for drawing fun web-pages.
java : If you know anything about databases you would know you can embed java with sql E.T.C.
Therefore because of the fast response times and the amount of constant interaction for business purposes you will need a database type that is strong to handle XML, therefore with such new technology you will be able to use xml databases with java too.
l am sorry : XML Technology is not more simple than that to explain.
If you are a christian or jew it is like saying to someone explain the bible,the prophets,the old and new testament in one sentence!!!You get it.What one can do is slightly break-up the bible and say there's an old and new testament.The old testament refers to the time before Jesus, AND the new testament refers to After Jesus, THE PROPHETS RELATE MORE TO THE TIME BEFORE Jesus.
You can then ask me who is jesus???
And thats a tricky question in its self becuse it depends on one's thinking(concept)
I HOPE IT HELPS YOU !!!!
GOD DAY MATE!! -
Variablize the datatypes in the select of data from XML to Oracle
Hi All,
I'm new to XML to Oracle data integration. I do have clob column that has the XML data and trying to bring it into the Oracle relational tables, as a part of it we are developing PL/SQL procedure that calls this CLOB column, I want to know if we can variablize the data types ( Just like tablename.columnname%type) in the select of the XML data:
select v.instrid, v.endtoendid, v.txid, v.cd, v.ccy,
replace(v.intrbksttlmamt,'.',',') as intrbksttlmamt, v.chrgbr, v.bic1, v.nm1, v.adrline11, v.adrline12, v.ctry1, v.iban1,
v.bic2, v.bic3, v.nm2, v.adrline21, v.adrline22, v.ctry2, v.iban2, v.cdtrref, v.addtlrmtinf
from the_data w,
xmltable(xmlnamespaces(default 'urn:iso:std:iso:20022:tech:xsd:pacs.008.001.01'),
'/Document/pacs.008.001.01/CdtTrfTxInf'
passing xmltype(w.the_column)
columns instrid varchar2(300) path 'PmtId/InstrId',
endtoendid varchar2(150) path 'PmtId/EndToEndId',
txid varchar2(200) path 'PmtId/TxId',
cd varchar2(50) path 'PmtTpInf/SvcLvl/Cd',
) v
As you see above in the bold I do define the data types after every column name , the problem is incase there is change in datatype I do need to manually edit the procedure to change the datatype is there a way I can variablize them something like tablename.columname%type.
Any answers are greatly appreciated.Two questions:
1. Does your database have a version number?
SELECT * FROM v$version;2. Why are you storing XML in a CLOB column rather than one of XMLType? -
Hello,
According to this article http://www.computerworlduk.com/news/applications/3361449/oracle-12c-database-set-for-december-or-january-release/
The new version of Oracle '12c' is scheduled to be released on December this year or January 2013...
I just wanna know if the IZ0-047 : SQL Expert will still be valid for the new version of Oracle?
your thoughts?
ThanksI just wanna know if the IZ0-047 : SQL Expert will still be valid for the new version of Oracle?It depends on what you mean by 'valid'. If you are asking whether people certified as SQL Experts will continue to have a valid certification, I guarantee that will be the case. Oracle does not invalidate existing certifications when new releases come out. The SQL Expert certification, like the PL/SQL developer certifications (and unlike the DBA certifications) is not 'versioned'. Someone getting this certification today does not become an "Oracle 11g SQL Expert".
If you are asking whether the content of the SQL Expert test will still be valid for Oracle 12c, the question becomes (slightly) grayer. I have not been following Oracle 12c. I know that it's supposed to be cloudier, but little else about it. It may well contain significant new SQL functionality that should be included in the SQL Expert exam. However, I'm certain that it will not invalidate the information that exists in the current test. Oracle will not abandon ANSI SQL or remove existing functionality. Even if new functionality exists and Oracle decides to add it to a new version of the Expert test, this is unlikely to happen for quite some time following the release and would probably require a new beta exam. In all, a new 12c-enhanced test (if such were even to happen) wouldn't be available until 2014.
I can't see worrying too much about it myself. If you're interested in obtaining this certification, then I would go for the current version rather than waiting on some future update that may not happen for years. -
Hi,
My flash movie contains a text field and a scrollbar, when i
simply write the text in the text field and then publish the movie
the scrollbar works fine. However i need to read in the text
through XML but when i do this the scrollbar does not work. Is
there code that i need to implement to make the scrollbar
automatically scroll....
All help is appreciated,
ThanksOkay found this:
[Dynamic Text Box Name].autoSize = "center";
[Dynamic Text Box Name].wordWrap = true;
however, the height really doesn't adjust when the copy does.
If I start
off with the dynamic text box at 50 pixels high, it remains
that way
when calculated in ActionScript using the [MovieClip]._height
even
though it is much taller than 50 pixels with the copy in
there.
So I'm back to the drawing board. I want to have an XML file
with
Headline, BodyCopy, and disclaimer copy. I want to call the
nodes into
Flash and stylize them.
I DO NOT want to use CSS since I am using funky fonts that
will not be
available on all machines. Want those fonts embedded in Flash
so it
shows the same on any computer.
-Kirk
W. Kirk Lutz wrote:
> I am brand new to XML and pulling in text to Flash from
it. So far so
> good. The text shows. The only thing I'm having trouble
with is the
> height of the text box the imported text sits in. I want
it to
> dynamically expand if the text is long.
>
> How can I go about importing text into a text Dynamic
text box and have
> the box expand if the text is too long for the manual
setting?
>
> -Kirk -
My name is robert and I am a PhD student at UCLA. I am a novice in using XML and Oracle. I would like to know what utilities and/or drivers I need to go from ascii to xml to oracle.
I am using Oracle 8, Windows 2000 and Ie5. Any suggestions would be greatly appreciated.
Thanks,
RobertMay I know what delimiters are you using? Seems like payload is not UTF-8 encoded and hence SOA is not able to understand the character. Make sure that payload is UTF-8 encoded.
Regards,
Anuj -
New to xml, simple communication
Hi there
I'm new to xml and as a uni project i've been asked to get two independent programs to communicate via xml. Specifically i am looking to exchange data contained in the databases maintained by each program.
I would be very gratefull for any help or direction towards implementing this client/server based problem
many thanks
JosephSo, is your question "How do I read and write XML files" or is it "How do I communicate between two systems"? Either of those are really too vague to be answered on a forum, but the combination of both is hopeless.
-
How to add a new font into Report Builder and Oracle Forms/Reports Server?
Hi,
I've searched the forum and can't find this being discussed.
My developers run Report Builder 10.1.2.0.2 on their XP laptops.
Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
This server runs on MS Windows 2003, SP2.
They've got a client who wants reports using the "Garamond Western" font.
So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
Thanks for your help.Thanks.
This answers 1/2 of my question.
The developer can now use Report Builder on his laptop, with the new fonts.
But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
I have then stopped and restarted the Forms-Reports Server.
Maybe you are looking for
-
Profit center for purchase order without account assignment
I've requirement to include profit centers in purchase orders without account assignment category. The trouble is when there is no profit center maintained in material master. Is there a way to determine profit center in purchase order for such cases
-
Error when testing INTEGRATION_DIRECTORY_HMI rfc port
hi friends, I have created a RFC port of type HTTP INTEGRATION_DIRECTORY_HMI it was working fine tillyesterday.. All of a sudden 2day when i am executing the proxy i got error. when i check the rfc is not working.. and giving this error .. ICM_HTTP_C
-
I subscribe to Adobe PDFpack...have 24 PDF files for my new book...publisher wants to receive only one (1) PDF file...how to I combine all 24 files into one? [email address removed] Terry
-
LMS User Tracking for NEXUS 5548UP
Dear, A while ago I received a ticket from one of our customers because User Tracking was not working for NEXUS 5548UP on LMS 3.2. I opened a TAC case for this but this was normal since it is a Datacenter switch. Now the customer came back on this be
-
My artwork in iTunes is perfect. I have zero problems and I make sure that every song has the correct artwork. My artwork on my phone is crazy. Most show correctly. Some show the same wrong artwork everywhere for the album in question. Others will sh