Session: C03

DB2 pureXML – live !

Matthias Nicola IBM Silicon Valley Lab, USA

5 November 2007 • 4:15 p.m. – 5:15 p.m.

Platform: DB2 for , , Windows

Tired of presentations and looking at slide after slide after slide...? Want to see the real thing and how the new XML features in DB2 9 actually run? In this session I will project a DB2 command window (in a large font) and go through creating, populating, indexing, querying, and trouble-shooting a for managing XML data. This will give you the most close-up look at the array of new XML capabilities in DB2 V9, including XML columns, XML indexes, XQuery, SQL/XML, XML schema support and XML import/export. We will inspect the running system, analyze and improve XML query execution plans, and we'll capture & examine snapshots of our XML activities in DB2. We'll open the hood while the engine's running. You'll see some of the things that can go wrong - and how to avoid or fix them. And there is no such thing as "don't try this at home": the entire demo scenario incl. test data and all commands & scripts will be made available to the attendees on the IDUG Insider.

Dr. Matthias Nicola is a senior software engineer for DB2 and XML at IBM's Silicon Valley Lab. His work focuses on all aspects of XML performance in DB2, including XQuery, SQL/XML, and all pureXML features in DB2. Matthias works closely with the DB2 XML development teams as well as with customers and business partners who are using XML, assisting them in the design, implementation, and optimization of XML solutions. Prior to joining IBM, Matthias worked on data warehousing performance for Informix Software. He also worked for four years in research and industry projects on distributed and replicated databases. He received his doctorate in computer science in 1999 from the Technical University of Aachen, Germany. 1 DB2 pureXML – live !

• Get a close-up of the look & feel of XML in DB2. See how the new XML features in DB2 9 actually run • Explore XML-related objects in the DB2 catalog • Analyze & improve XML query execution plans • Examine snapshots of XML activities in DB2. • We'll open the hood while the engine's running • Get the scripts and try this all of this at home !

2

Objective 1: Provide a good understanding of the new XML features in DB2 9 through real examples which convey the actual look & feel of XML in DB2 Objective 2: Describe how XML support is deeply integrated in all existing DB2 components by seeing the actual nuts and bolts in DB2 (db2 catalog, explain, etc.). Objective 3: Cover the details which people have to pay attention to when they start their own hands-on work with XML in DB2. These are the little hands-on details which you often don't see on slides. Objective 4: Explain XML query execution, and how to get the "right" execution plans. Understand how XML and relational data can be combined. Objective 5: Another objective is to make my sample commands and scripts (to explore DB2/XML) available to interested IDUG insiders. They're not available elsewhere. Attendees can repeat my session at home, and dig deeper from there.

2 Agenda • Let’s switch to the DB2 CLP • Part 1: Create database, table space, and table for XML • Examine XML system indexes in the catalog • Part 2: Import XML Data • XML-specific information in the catalog • Part 3: XML Queries, Indexes, and Explains • From simple to more complex XML queries in DB2 9 • Analyzing & improving XML query execution plans • Part 4: Monitoring XML activity • Using new XML counters in the snapshot monitor to diagnose & fix an XML performance issue • Part 5: XML Schema Validation

• Part 6: Joins over XML data etc.3

3 Let’s switch to the DB2 CLP…

4

4 Session: C03 DB2 pureXML – live !

Matthias Nicola IBM Silicon Valley Lab [email protected]

5

5