Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

DB2 XML evaluation guide

A step-by-step introduction to the XML storage and query capabilities of DB2 Viper

Gerald Leung (gktleung@ca.ibm.com), Database Technology Advocate, EMC
Gerald Leung is a computer science co-op student at the University of Toronto. He expects to complete his B. Sc. in August 2007. Gerald is working at IBM Toronto lab's Developer Initiatives department to take advantage of his interest in experimenting, configuring, and testing client/server technologies.
Grant Hutchison (ghutchis@ca.ibm.com), Senior Product and Release Manager, EMC
Grant Hutchison is a Senior Product and Release Manager in the IBM Data Server development team. He is focused on deliverying the next generation of tools and drivers for Web 2.0 applications and web based administration tools for DB2 and Informix Dynamic Server (IDS). Grant has been a member of the IBM Information Management team for 15 years holding various technical and management positions in development, sales, and marketing. He has a graduate degreee in Software Engineering from the University of Waterloo and a B.Sc.from Wilfrid Laurier University. He also co-authored the first DB2 UDB Certification Guide (1996) and frequently presents at conferences.

Summary:  The DB2 XML evaluation guide is a step-by-step tutorial to introduce the reader to the DB2® Viper data server on Windows® platforms using the XML storage and searching (SQL/XML, XQuery) capabilities available to support next-generation applications.

Date:  01 Jun 2006
Level:  Intermediate PDF:  A4 and Letter (267 KB | 21 pages)Get Adobe® Reader®

Activity:  11358 views
Comments:  

Before you start

The DB2 Viper data server provides many new capabilities including: flexible security options, data storage optimization, and improved support for storing, managing, and querying XML data. DB2 is designed to optimize access to XML and relational data and these capabilities are available to C++, .NET®, COBOL, Java™, and PHP application developers. DB2 Viper is now available (for evaluation purposes) and this tutorial can be used to aid in understanding how to use XML and SQL together to build the basis of a flexible scheduling application.

About this tutorial

The DB2 XML Evaluation Guide is a step-by-step tutorial to introduce the reader to the DB2 Viper data server on Windows platforms using the XML storage and searching (SQL/XML, XQuery) capabilities available to support next-generation applications.


Introduction to DB2 Viper

DB2 Viper is the industry's first hybrid data server for managing data from both relational and pure XML formats. DB2 has been providing high-performance data storage and access for relational data based on SQL standards and data storage optimizations such as data partitioning and advanced indexing and query optimization techniques. Now, DB2 has introduced an optimized data storage engine for XML data alongside the existing relational engine.

Application developers can now store XML data directly inside a DB2 server and reap the benefits of transactions, advanced data resiliency, secure access, and, of course, the ability to search large amounts of XML data using XQuery.

XML data is often used for inter-application data exchange and document management purposes. The flexible and self-describing nature of XML data makes it ideal for many application scenarios.

The ability to query XML data has been quite limited. Recently, a new standards-based XML query language has been published. This query language is known as XQuery Version 1.0.

XQuery Version 1.0 was released in November 2005 and it is an extension of the existing XPath Version 2.0 standard. See Resources for Web sites to read more about XQuery and XPath.


Objectives

This tutorial will help familiarize you with DB2's new support for XML data. You will perform the following tasks:

  1. Create a DB2 Viper database (to support relational and XML data objects).
  2. Create a DB2 table to store XML data.
  3. Add data to the table using SQL INSERT statements.
  4. Query a table using SQL and XQuery.
  5. Adding additional data into DB2 tables using the DB2 IMPORT utility.
  6. Issue various queries using XQuery.
  7. Querying using XQuery on a XML column of an indexed table.
  8. Create and test a view for simplified data access.

Prerequisites

This tutorial is written for database administrators who have limited experience with DB2 Viper and have some experience with SQL and some knowledge of XML.


System requirements

To run the examples in this tutorial, you need a Windows 2000 or higher machine with an account having administrator privileges.

1 of 13 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management, XML
ArticleID=125548
TutorialTitle=DB2 XML evaluation guide
publish-date=06012006
author1-email=gktleung@ca.ibm.com
author1-email-cc=gerald.leung@utoronto.ca
author2-email=ghutchis@ca.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.