I'm doing an assignment where I am to consider two solutions for storing text used in a webpage. Scenario: there is one webpage for one lecture, and several lectures for one subject.
The first alternative is a normal relational database, this one is ok.
The other alternative is a table with two "normal" attributes, and one with Oracle's XmlType. In this xml-file all the data for one subject will be saved. So the xml-file will contain data for several lectures. I need some pros and cons for alternative #2. And why should I consider using alternative #2 in stead of #1??
In your first alternative you will have to use a
LOBdata type for the column storing the webpages. If you useVARCHAR2, you will loose the formatting.In the second alternative for the
XMLTYPEcolumn you can chooseLOB/CLOBstorage or you can choose to break it up into object relational tables and views.XMLTYPEis not stored in external files.The second alternative will give you the capability to search the XML documetns using XPath expressions and index the XML tags. So this is more powerful than the first alternative.