Free Newsletters
Technology & Business Daily

InfoWorld
Log-in | Register
Page 2 of 3  «  Previous Page    Next Page » 

Databases flex their XML

 

Oracle Database can read and write to WebDAV (Web Distributed Authoring and Versioning) repositories, giving users a nice Web folder view of the XML data they can request. The WebDAV support allows administrators to set up access to thousands upon thousands of XML files without requiring much disk space. This is because these WebDAV files, though they appear to be regular XML files, are just shortcuts, queries that point back to the database. The data that comprise these files doesn't materialize until it's requested by opening the file or copying it to a different location. Along with WebDAV, Oracle also supports transferring XML documents across FTP and HTTP.

Free IT resource

Open Source Business Conference (OSBC) May 22-23, 2007

Sponsored by OSBC

Free IT resource

TechNet: More ways to know it, share it, and keep it running.

Sponsored by Microsoft

DOWNLOAD PDF

Click here to download InfoWorld's special report Databases get a grip on XML


Perhaps the most important improvement in Database 10g is XML schema evolution. Schema evolution allows you to implement changes to XML schema by mapping the existing data to the new schema. Instead of having to export and re-import all of your XML data, you just create the XSLT (XSL Transformation) style sheet to transform your old documents to the new schema, and the database takes care of the rest. Schema evolution greatly eases the management of XML data, because one thing administrators can count on is constantly changing requirements. 

Oracle Database 10g offers some superb options for storing XML data. The XMLType data type obscures much of the complexity of storing and querying XML data, allowing admins to manipulate the data using familiar SQL tools and concepts. For instance, you can create an XMLType table or an XMLType column in a relational table. Creating an XMLType table is how you implement the structured storage method and preserve your XML hierarchy. Creating an XMLType column in a relational table is how you implement the unstructured storage method, which is useful for storing entire XML documents for attachment to relational records.

And what can be done with a table can be done with a view. You can also use these tables and views in stored procedures and process data based on them, so there are some very advanced possibilities here.

How easy is managing XML data in Oracle? Assuming you already understand all things XML, including SQL/XML, XQuery, and DTD (Document Type Definition), XML processes in Oracle Database are very easy to manage. In fact, as in schema evolution, the database handles many data management processes on its own, with a minimum of admin intervention.

In my speed tests, which involved importing thousands of files, creating thousands of files, and importing very large documents, Database 10g proved very fast, beating all comers at imports and finishing a close second to IBM in the file-creation test. 

Big Blue, B Student

IBM is on the ball, too. DB2 implements XML as a collection of options called the XML Extender. Another key piece, the Information Integrator, is licensed separately from DB2. Although the XML Extender may sound like a separate program that sits outside the database and interacts with the relational engine, it is in fact just a collective name for the stored procedures and functions that provide the XML functionality inside DB2. These stored procedures and functions sit inside the relational engine like any other objects in the database and are accessible to any user who needs them. It's only slightly annoying that there's a separate install to get the Information Integrator functionality.

The Information Integrator sits outside the relational engine and extends the functionality of XML in DB2 by adding the XML Wrapper, which allows you to treat XML documents as relational sources. The XML Wrapper is a very powerful tool that could be useful in receiving transmitted XML files that you want to be able to query and possibly report on, but which you don't want to import into the database.

Like Oracle Database, DB2 allows you to store structured XML, unstructured documents, or shredded data. And like Oracle's XMLType, DB2's XML datatype allows you to obscure the details of XML data storage from both users and admins alike. Views can be created to merge relational data with XML data in a single result set. This same result set can be merged with XML documents on the file system or with other XML or relational data inside the database.

DB2 uses SQL/XML as the main language for creating XML documents from relational data; you use SQL/XML functions to create XML tags, attributes, and the like. SQL/XML also allows you to perform concatenations and aggregations while creating the document. DB2's SQL/XML support isn't complete, but it covers the major functions. If you are using DB2 today, you'll probably be able to do anything you want when creating XML documents.

XQuery, on the other hand, is completely unsupported by DB2. No doubt IBM is waiting for the W3C to solidify the specification before it implements the unfinished standard. Nevertheless, the absence of XQuery imposes significant limitations on DB2's XML search capabilities. I would much prefer to see a partial implementation than for it to be completely left out.

XQuery, which is a language used for crawling through structured data paths, offers significant query functionality beyond what SQL can do. Because XQuery is an identity-based query language, whereas SQL is value-based, you can use XQuery to find out whether a certain element exists; SQL can tell you whether an element that's known to exist holds a certain value. Unlike SQL, XQuery also has knowledge of attributes inside element tags, and it has stronger data types than SQL, providing you greater control over the type of data being written or queried.

XQuery notwithstanding, IBM's commitment to XML is quite apparent when you look at the improvements it has made in DB2 V8.1. Not only does V8.1 support XSLT for on-the-fly translation of XML data, there are more than 1,000 changes to SQL syntax for handling XML alone.

How easy is DB2's XML to manage? Very. The views manage the dynamic data underneath them and provide a layer of abstraction that clients need in order to query the database effectively. However, updating your XML schema will be a hassle. Because DB2 doesn't support schema evolution, you will have to physically map your old data to any new schema produced by changing requirements.


Continued
»  Previous Page | 1 | 2 | 3 | Next Page » 



 


 
Sean McCown is senior corporate DBA at SourceCorp.
 

TOP NEWS:


»  Parts of San Francisco network still locked out
Administrators are still locked out of the city's VoIP system and LANs within the Sheriff's Department and the Recreation & Park Department

»  Intel says Moblin update coming soon
Open-source effort set for mobile Linux should have an alpha-level release in a few weeks

»  Are virtual firewalls a solution for VM security?
Virtual firewalls can be a useful security tool, but their efficacy depends heavily on how you have set up your networks

»  Ubuntu to unveil new version of Launchpad next week
Ubuntu's beta community still has a long way to go to achieve the popularity of competitors such as SourceForge.net

»  Oracle unveils access management suite
Oracle's suite includes a new server that provides controls to fine-tune user privileges

»  5 ways the iPhone 3G still lags in enterprise
Despite Apple's improvements, its iPhone 2.0 software remain less competent and less tested than its BlackBerry and Windows Mobile counterparts




Beyond AntiVirus: Symantec Endpoint Protection
Today's threats to the endpoint are much more dangerous as they rapidly evolve to evade traditional security measures. To combat these threats, companies should supplement existing security with proactive behavioral based technologies. Join this webcast to learn about Symantec's next generation AntiVirus solution that provides that level of protection. Sponsor: Symantec

»  Click here to view this Webcast
  Zombie PCs Are Attacking Your LAN
A recent study showed that malware-infected zombie PCs are now a bigger threat to ISPs and Web infrastructure than DoS attacks. As this brand new IT Strategy Guide explains, an increased use of peer-to-peer techniques by the attackers has made it harder to fight back. Download now, compliments of Verio:

»  Click here to download now

- Special Advertising Partners -
WHITE PAPERS
 

» Technology White Papers Library

Technology White Papers by Topic

Technology White Papers E-mail Alert

Find out when the latest white paper is available:
 
 
INFOWORLD MARKETPLACE
 
» BUY A LINK NOW
 

FIND PRODUCTS AND COMPANIES
» COMPLETE PRODUCT GUIDE



TECHNOLOGY INDEX
• Applications
• Application Development
• Security
• Networking
• Wireless
• Platforms
• Hardware
• Data Management
• Storage
• Web Services
• Business
• Telecom
• Professional Services
• Standards

TECH WATCH 


What's the 411 on GOOG-411?
Just as Google has become synonymous with "performing a Web search," 411 is understood to mean "information" -- as in "what's the 411?" I was thus surprised to discover, from a billboard, no less, that the king of search is taking on the ...

Apple HTML source reveals 'iPhone Extreme'
"This one's a stretch..." reports AppleInsider. Um, yeah. Reporting on HTML code sightings of product names could be called a stretch, but iPhone Extreme has a ring to it. Now, that sounds like the product Apple should have released first, rather ...

COLUMNISTS

Unified under law
Ephraim Schwartz's Column and Blog (InfoWorld) - In the litigious world we live in, deploying a unified communications platform in your enterprise could...
» MORE COLUMNISTS

MORE INFOWORLD BLOGS


Open Sources 
Product Management
When I joined MySQL four years ago, there was quite a lot of debate about product management. We didn't actually have ...

Zero Day 
Botnet herders tending smaller flocks
New research backs up the theory that botnet operators are keeping their networks smaller in a continued effort to keep ...



• Advice Line
• Database Underground
• The Deep End
• Enterprise Mac
• Geeks in Paradise
• Grid Meter
• The Gripe Line
• InfoWorld Daily
• Inside IT
• IT Troubleshooter
• ITXtreme
• Open Sources
• ProdBlog
• Real World SOA
• Reality Check
• Security Adviser
• SMB IT
• The Storage Network
• Tech Watch
• Virtualization Report
• Zero Day

ADVERTISEMENT


RESOURCE CENTERadvertisement 

GOVERNMENT IT & POLICY
'If you don't go after the network, you're never going to stop these guys. Never.'
From the State Department, All the News for Inquiring Minds
TechPresident, the Internet Citizenry's New Consensus Taker



Sponsored Technology Links

 
 
 HOME  NEWS  BLOGS  PODCASTS  VIDEOS  TECHNOLOGIES  TEST CENTER  EVENTS  CAREERS   About | Advertise | Awards | RSS | Contact Us 

Copyright © 2008, Reprints, Permissions, Licensing, IDG Network, Privacy Policy, Terms of Service.
All Rights reserved. InfoWorld is a leading publisher of technology information and product reviews on topics including viruses,
phishing, worms, firewalls, security, servers, storage, networking, wireless, databases, and web services.

CIO :: ComputerWorld :: CSO :: Demo :: GamePro :: Games.net :: IDG Connect :: IDG World Expo
Industry Standard :: IT World :: JavaWorld :: LinuxWorld :: MacUser :: Macworld :: Network World :: PC World :: Playlist