About this XML database
Today I have found these definitions:
1.Native XML Database (NXD):
a) Defines a (logical) model for an XML document -- as opposed to the data in that document -- and stores and retrieves documents according to that model. At a minimum, the model must include elements, attributes, PCDATA, and document order. Examples of such models are the XPath data model, the XML Infoset, and the models implied by the DOM and the events in SAX 1.0.
b) Has an XML document as its fundamental unit of (logical) storage, just as a relational database has a row in a table as its fundamental unit of (logical) storage.
c) Is not required to have any particular underlying physical storage model. For example, it can be built on a relational, hierarchical, or object-oriented database, or use a proprietary storage format such as indexed, compressed files.
2.XML Enabled Database (XEDB) - A database that has an added XML mapping layer provided either by the database vendor or a third party. This mapping layer manages the storage and retrieval of XML data. Data that is mapped into the database is mapped into application specific formats and the original XML meta-data and structure may be lost. Data retrieved as XML is NOT guaranteed to have originated in XML form. Data manipulation may occur via either XML specific technologies(e.g. XPath, XSL-T, DOM or SAX) or other database technologies(e.g. SQL). The fundamental unit of storage in an XEDB is implementation dependent. The XML solutions from Oracle and Microsoft as well as many third party tools fall into this category.
3.Hybrid XML Database (HXD) - A database that can be treated as either a Native XML Database or as an XML Enabled Database depending on the requirements of the application. An example of this would be Ozone.
Which of them would you put XML DB in?
If we consider the duality of the XMLType (store XML documents in CLOB's and structured storage with XML Schemas), could we say that it is an hybrid XML database?
Native->CLOB's
Enabled->structured storage
I suppose this cuestion is a bit subjective, but I would like to know your opinions.
Thanks in advance!
Similar Messages
-
My "itunes library" folder is empty. My libray music (prior to upgrading itunes) is now in an .xml file in my itunes location under my music. How do I extract/convert this .xml file to a Itunes database and restore my Itunes music library??? Thanks, Tom
Empty/corrupt library after upgrade/crash
Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
When you get it all working make a backup!
tt2 -
XML Database Development with JDeveloper?
Hello, folks:
I am trying to create XML database through JDeveloper.
Database: Oracle 10g
IDE: JDeveloper 11.1.2.2.0
JDBC Driver: Oracle ojdbc6.jar
I connect successfully to the database through JDeveloper. There I see many folders listed, e.g. Tables, Views, Indexes, XML Schemas, XML DB Repository, and others. My problem is that when I try to save a large schema file (that I already validated on my local machine) that is roughly more than 300 lines, then JDeveloper is unable to save the file. It saves only very small files that are about 100 lines or less. The error message simply is: "Unable to save XML Schema blah.filename@local (Error saving XML Schema).
I tried to do it in Oracle SQL Developer too, but got the same error. Can someone please help me understand this problem and how to fix it? Do I need to specify some settings in JDeveloper or SQL Developer? Thanks a lot in advance.
AsifPlease raise your question to the forum dedicated to JDeveloper 11:
JDeveloper and OC4J 11g Technology Preview
Regards,
Didier. -
XML Database in Apps Databases
Hi,
What is the use of XML database in Apps Databases...it has XML Schema...etc etc..what purpose is that...If you are using XMLTYPE in stored procedures,
views, functions, columns or tables you need the XDB
feature in order for the base XMLTYPE to have
complete functionality of it's member functions.
This means if you were directed to remove XDB for
some other reason you must follow the steps to put
it back in if you want to use the XMLTYPE. You will
also require it if you are using any of the standard
pl/sql apis such as DBMS_XMLDOM and DBMS_XMLQUERY
to name a couple.Yes, this is from the first note. If you check the other one, you would also find that Oracle XML Database has to be installed correctly (Oracle 10g Release 2 and above) in order to have a successful interMedia installation. For getting more details about "Oracle interMedia", check the the same note (Question 1). -
XML database query through Java
Hi all.
I am collecting information about a little application i am trying to build:
I have an XML database with records divided in a lot of subdirectory (with three or four .xml files);
directories' names are defined by date in format "yyyymmdd",
the file within are "date_something.xml":
what is the best way to access it by a web app or a java class to search all the dirs adn print results in a readable way (aka not in cmd) ? I need first to define a period of time to search and then some attribute or node to print referred to some element.
I was guessing to use xpath, anyway I ve tryed JSP but it is too difficult and the query i have to do are really simple to build a full servlet.
I am learning xalan through servlet and I think in future this will be my choice but now i need to collect the data by queries without any automation, just to have results for researching and paper writing.
The main problem I found is to search a full series of directory, with transformations i can find out stuff from a single file, but how to do it for a system of directories?
Any suggestion or link to resource would be good also.lm00 wrote:
ProjectMoon wrote:
By XML database do you mean an actual XML native database, or just a bunch of XML files in a directory structure? If it is an actual XML native database, you should probably use the XML:DB API. If they are just flat files you will need to probably make something that is able to navigate through your directory structure to the documents you want. Once you have that, you can then use XQuery or XPath to get information from those documents.The data is a bunch of directories named by date in format "yyyymmdd", inside each of these there are three or four files .xml
All files have data definitions and schemas but i dont think they are a 'database'. What do u mean "something to navigate through"? A class? Suppose I would like to do it as a webapp what should i have to do?
Yes, I basically meant a class. Before querying the XML file you need something that will retrieve its location. If it's by date you could probably concoct something that takes a Date object and returns a set of File objects. Internally it would traverse the directory trees and find the proper XML file(s).
>>
If you have a LOT of XML documents I honestly recommend something like the eXist XML Native Database, or another XND. I have been playing with them lately and they are very useful.in this case what i have to do? Take the data and put it into a database by this tool? And then I should acces it by a JSP? There is a program using Xpath instead?Well, yes. You would put the files in the XND. Although I don't know if that's useful or not in your situation. It all depends. I also think you're a bit confused as to what JSPs and XPath are...
JSPs are just Java Server Pages, which get dynamically compiled into servlets. If you are following the MVC pattern for servlets/JSP (which you should), JSPs represent your views while servlets are the controllers. The model would be your XML data in this case. XPath is a way to get at that data. If it was in an XND, you could just throw an XQuery/XPath expression at the database and it would give you back XML documents/fragments representing the results of your query. You don't have to make your own system to find the XML documents. Of course, you do have to learn how to use an XND.
Perhaps you should separate what you are trying to do. You have two problems: 1) how to get the XML data you need. 2) How to present it. You should separate those two completely and learn how to do both before attempting to put it together.
Edited by: ProjectMoon on Oct 21, 2009 12:05 PM -
XML Database Contract in Hoffman Estates, IL
Hi,
Sorry about using this forum for job posting, but I can't find any candidates with XML database experience. I have a two month Oracle XML Database contract in Hoffman Estates, IL. The pay rate for this position is open and you do not have to be located in Hoffman Estates. In this contract you will be working with Enterprise Application Integration utilizing J2EE development platform, which includes: IBM WebSphere apps server, Oracle XML DB, and SonicMQ/XQ messaging infrastructure.
Job Description:
Design, develop and deploy the Oracle XML database. Work closely with the project team on the overall integration.
Skill Experience Need
1) XML technology Expert Required
2) Oracle XML DB Expert Required
3) J2EE technology Expert DesiredI have some Interface Mapping questions I was hoping someone could help me with. As you know, my source is an XML File and my target is an OracleDB. I'll start with the "EFFECTIVEDATE" field which was automatically mapped when I added the Source and Target Datastores. As I previously mentioned, this caused an error "Target Column EFFECTIVEDATE: Data may be truncated: the target Column is smaller than the source Column". After looking further into it, would the problem be that the "EFFECTIVEDATE" datatype in the XML is "DATETIME" whereas the "EFFECTIVEDATE" datatype in the database is "TIMESTAMP"? If so, what would be the fix for this? Could I convert it in the Implemenation Mapping like so? -
CONVERT(MONEY.EFFECTIVEDATE,TIMESTAMP)
Would using that in the Implementation simply do the trick?
Anyway, moving onto some of the other TARGET fields...
-ACTIVITYGUID
This should be an automatically generated new GUID value. How could I implement this into the Implementation?
-TRANSACTIONGUID
I'll need to query some of the other tables in the database in order to get this value. Is this allowed in the Implemenation? Do I have to add said tables to the target somehow? Can I just query the other tables in the Implementation field using normal select statements, etc.? I'm a bit confused on how this would work...
-TYPECODE
This needs to be a fixed value of '01'. How do I simply do that in the Implementation?
The other fields will all be implemented similar to the above so those are the main questions I have for now. Any help would be appreciated.
Thanks again for your help. -
JDeveloper and Oracle XML Database Development
Hello, folks:
I am trying to create XML database through JDeveloper.
Database: Oracle 10g
IDE: JDeveloper 11.1.2.2.0
JDBC Driver: Oracle ojdbc6.jar
I connect successfully to the database through JDeveloper. There I see many folders listed, e.g. Tables, Views, Indexes, XML Schemas, XML DB Repository, and others. My problem is that when I try to save a large schema file (that I already validated on my local machine) that is roughly more than 300 lines, then JDeveloper is unable to save the file. It saves only very small files that are about 100 lines or less. The error message simply is: "Unable to save XML Schema blah.filename@local (Error saving XML Schema).
I tried to do it in Oracle SQL Developer, but got the same error. Can someone please help me understand this problem and how to fix it? Do I need to specify some settings in JDeveloper or SQL Developer? Thanks a lot in advance.
AsifThe XML database engine used in JDev is in fact from SQL Developer. In other words the SQL Developer code base is used by JDev though typically it is an older version than the latest SQL Developer. As such best post this question to the SQL Developer forum and ensure to state which standalone SQL Developer version you're using.
CM. -
First time with Oracle XML database
Hi!
I'm a beginner with XML and with Oracle XML database so i need same help. I've read the documentation (example for XML Oracle).
What do i need to write XML files from an oracle database and the other way to read XML files into the database?
Or does anyone know how i can get information about this?
Thank's for help!
With best regards
NicoleNicole,
One quick way to get xml out of the database is to use the dbms_xmlgen.getXML package.
i.e. in sqlplus
set long 4000
select dbms_xmlgen.getxml('select * from emp') from dual;
or
set long 4000
select dbms_xmlgen.getxml('select column_name from owner.tablename') from dual;
HTH -
Recover star ratings from old XML database?
Is there a way to recover the star-ratings of my music from an old iTunes XML database file?
Hi there,
I copied the whole entire iTunes folder into my music directory on my new mac (as I had my own account on his mac), and then once that was done I dragged and dropped this folder onto my iTunes icon.
It's imported playlists, but not star ratings.
Is there something I should have done before exporting my music onto my hardrive in the first place? I've read somewhere about exporting ratings or exporting playlists or something....
Cheers,
Hannah -
Create/Maintain an XML database
Hello everybody,
In the scope of a training period, I have to create an online database of, let's say, music CDs. I want to be able to regularly update it through my internet browser. To be more precise, I want other people to be able to modify it without ever writing a single line of code.
Here is a typical scenario:
I open my browser, let's say IE, to see my whole list of CDs; I realise that "Stiff Upper Lip" was not made by the Rolling Stones but by ACDC, so I click on the "Band" field and enter ACDC. The background programs modifies the database file so that the modification is immediately taken into account.
From what I have read until now about XML, it seems to be just the right solution for me, but I still have not found how to modify live the database source files, and I want to be sure that XML can do that before I go head first deep into the project.
So my questions are:
1) Is it possible to modify an XML database so intuitively (through Internet Explorer) ?
2) If yes, which skills does it require ? I already know C, C++, Java, a bit of Visual Basic and HTML and I would like to learn XML, which one is the most appropriate tool ?
Thanks for your help,
RegisLet me thank you for your quick and detailed answer Doc,
First you would have to decide what an XML database
is. There are several products that claim to be "XML
databases" and they fall into three categories:
1. Databases that hold scraps of XML, or collections
of XML files.
2. Very large XML documents that contain data.
3. More complex structures.I would say that my database falls in the first category, since I have to manage a simple and not too big list of different devices; if I continue to follow the comparison I established in my first post, let's say that I have to manage a database that consists in several lists: one of CDs, one DVDs and one of VHS.
Next, Internet Explorer is only a browser. You could
write a Java application that accesses a database,
but you wouldn't need IE. Or you could write a web
application (also in Java) that ran on a server, and
you could access that via IE.The thing is that I want other people to be able to use it easily, and the internet browser interface is easy of access.
What you are saying about the Java web application sounds good, but I have never used Java this way (I only created local applications). Are you thinking of JavaScript? If yes, I believe it is usable in coordination with XML, perhaps that this could lead me somewhere?
From the scenario you described, I would say that SQL
would be more suitable than XML. Why so? (I do not know SQL either, so that could also be interesting to learn.)
However if you want
to experiment with XML, by all means go ahead. Just
don't force Internet Explorer to be your preferred
tool.Unfortunately, this is a choice that I cannot make... Just for information, which browser would you recommend?
And also: I discovered after some research the XSLT language. Perhaps that could the right solution?
Regis -
Not able to see the VOs through about this page.
Hi all,
I am unable to see the VOs and COs, AMs through about this page link.
When I clik on about this page link in FinalReviewPG of iExpense it only shows as below --
Page Personalization Page Context Technology Components Java System Properties Profiles Patches
/oracle/apps/ap/oie/entry/summary/webui/FinalReviewPG 120.0.12000000.2
Return to Page: Create Expense Report: Review Printable Page Generate Bug Report
I am unable to find the "Expand all' link to show the structure of page.
is there any way or profile option to show "about this page" in detail
I have to check query of VO for fields.
I have checked that the selected tab is "Page" tab.
Pls help.
Thanks AmitHi Amit,
In IExpense In R12 the Final Review Page and the confirmation page are not available under About this page link since they are linked to some other main page and thats how it works.
The only way you can check this page is use the below command to print the details of the page.
set serveroutput on;
begin
jdr_utils.printdocument('/oracle/apps/ap/oie/entry/summary/webui/FinalReviewPG');
end;
please run this in toad or sql plus you will get the page details in Xml format,
Thanks
Deeksha -
Xml data into non-xml database.. solution anyone?
Hi,
My current project requires me to store the client's data on our servers. We're using Oracle9i. Daily, I will download the client's data for that day and load it into our database. My problem is that the data file is not a flat file so I can't use sql*loader to load the data. Instead, the data file is an xml file. What is the best way to load xml data into a non-xml database? Are there any tools similar to sql*Loader that will load xml data into non-xml database? Is it the best solution for the client to give me an XML dump of their data to load into our database, or should I request a flat file? My last resort would be to write some sort of a script to parse the xml data into a flat file, and then run it through sql*loader. Is this the best solution? One thing to note is that these files could be very large.
Thanks in advance.
-PVI assume that just putting the XML file into an
extremely large VARCHAR field is not what you want.
Instead, you want to extract data elements from the
XML and write them to columns in a table in your
database. Right?Yes. Your assumption is correct.
It sounds like you already have a script that loads a
flat file into your database. In that case I would
write an XSL transformation that converts the client's
XML into a correctly-formatted flat file.Thank you. I'll look into that. Other suggestions are welcome. -
A question about CREATE PUBLIC DATABASE LINK and ORA-12154 error
Dear all,
I have a problem about public database link creation and I would appreciate if you could kindly give me a hand. I have the following connection parameters in my
tnsnames.ora file:
DGPAPROD.WORLD =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY=tcp.world)
(PROTOCOL=TCP)(HOST=ORASR001)(PORT=1521)
(CONNECT_DATA = (SID = DGPAPROD))
...Having the above mentioned parameters I can connect to this remote database directly in a SQL*Plus shell:
$ sqlplus username/[email protected] works pretty well and the connection is established without any problem.
Now, what I would like to do is to create a public database link to this remote database in order to avoid the user/connection switching for viewing the
content of this database. I proceeded according to the syntax indicated in the Oracle online documentation:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_5005.htm#SQLRF01205
Therefore I run the following in order to create a public database link
CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING 'DGPAPROD.WORLD';Apparently there is no error and the link is created successfully. However it cannot resolve the remote host and whenever I run the following query
(myenterprise is the name of a table in that remote database)
SELECT *
FROM myenterprise@SR001_dblink
ERROR at line 1:
ORA-12154: TNS:could not resolve the connect identifier specifiedWhat causes this problem?
Thanks in advance,
Kind Regards,
Dariyooshspajdy wrote:
You must have defined DGPAPROD.WORLD in tnsnames.oar on server where you DB is runnig.Hello there,
Thanks a lot for this nice solution. In fact I had to add the connection parameters into the tnsnames.ora file of the server on which the link was created (not the tnsnames.ora of my oracle client stored on the localhost)
After a bit googling I found another solution that allows to create the database link:
CREATE PUBLIC DATABASE LINK SR001_dblink CONNECT TO user IDENTIFIED BY password USING '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY=tcp.world)
(PROTOCOL=TCP)(HOST=ip_adresse)(PORT=1521)))(CONNECT_DATA = (SID = GPAPROD)))';Thanks a lot for your help!
Kind Regards,
Dariyoosh
Edited by: dariyoosh on 18 nov. 2009 07:15 -
After intalling some updates for Final cut, I m asked to put my first and last names and serial number which unfortunatelt i do not have. how do i go about this?
To add to what BenB advised, make sure you have proof of purchase when you call Apple for a replacement serial number.
For future reference, it is a good idea to keep all software serial numbers in a database or text document. Considering the cost of the software, keeping a list of serial numbers can come in very handy at times like this.
-DH -
How to create simple XML database in oracle 11g
Hi,
what are the steps to followed to create a simeple custormer XML database.
Like storing .xml file into XMLType, writing simple xml schema.....like that
how to register the .xsd
how to insert the xml data
how to querying the the data base with xquery
Thanks in AdvanceHave a look a the FAQ on the main page of this XMLDB forum. That's a good source to start (besides the XMLDB Developer Guide manual).
Maybe you are looking for
-
I want an iPhone 3gs as I currently have a nokia lumia 620 but can I use my micro sim in the 3gs
Hi i want an iPhone 3gs but can i use my micro sim or do i need a sim adapter? answer soon
-
How to do validation in jsp using javascript
how to do validation in jsp using javascript
-
Hi I am using 10g.i have one report.In that report query return 2 values but my table report shows only one value.Could you please let me know how it will take data from DB into report. e.g Report Activity Value FF01 10 FF05 1.4 Same DB query while e
-
I tried to download icloud for pc windows vista with 2.1.2 and when it was downloading almost finished it said it belonged to an unknown to me user?
-
1250737 - SMMS: Trace file dev_ms could not be opened
Hi All, "1250737 - SMMS: Trace file dev_ms could not be opened" I have this error in smms on a CRM 7.0 W2k8 Failover Cluster, but the snote does not apply due to the version. Everything works, so I think it's not Security related. Could you please he