Your SlideShare is downloading. ×
0
[PowerPoint]
[PowerPoint]
[PowerPoint]
[PowerPoint]
[PowerPoint]
[PowerPoint]
[PowerPoint]
[PowerPoint]
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

[PowerPoint]

126

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
126
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. <ul><li>- Introduce IBM DB2 XML Extender </li></ul>Enabling DB2 Applications for the Next Generation Web and e-Commerce Dr. Jane Xu IBM Almaden Research Center [email_address]
  • 2. <ul><li>Enterprise Information </li></ul>Web Client Enterprise Server Web Server XML XML XML XML XML is the Key to Leverage DB2 Data for the Next Generation Web Enterprise Data B2C, B2B Data Purchasing Data ERP Data DB2 Extract, Generate, Transform, Shred, Load XML Extender DB2 UDB Enterprise Information Portal
  • 3. <ul><li>DB2 XML Extender Overview </li></ul>Document Access Definition (DAD) specifies how to map XML documents into tables XML Document Your application DB2 XML Extender DB2 tables DAD
  • 4. <ul><li>Feature 1: XML Column </li></ul><ul><li>A whole XML document is stored in a table column </li></ul><ul><li>The DAD can identify elements and attributes to be indexed (in side tables) for fast access. SQL data type conversion is supported. </li></ul><ul><li>You can retrieve the whole document or specific elements/attributes identified by XPath expressions. </li></ul><ul><li>Validation on input XML documents is supported. </li></ul><ul><li>Appropriate for XML documents that have irregular structure and are not frequently updated. </li></ul><ul><li>XML Extender can be used together with Text Extender to provide full-text search (stem-matching, etc.) for XML documents. </li></ul>Select db2xml.extractDouble(order, '/Order/Part/Price) from order_tab where invoice = 356 Example: <?xml version=&quot;1.0&quot;?> <!--DOCTYPE Order SYSTEM &quot;Order.dtd&quot;--> <Order key=&quot;1&quot;> <Part key=&quot;1&quot;> <Customer>37</Customer> <Status>O</Status> <Price> 131251.81 </Price> <Date>1996-01-02</Date> <Priority>5-LOW</Priority> <Clerk>Clerk#000000951</Clerk> <ShipPriority>0</ShipPriority> <Comment>first part</Comment> </Part> </Order> Invoice Order order_tab 356
  • 5. <ul><li>Feature 2: XML Collection </li></ul><ul><li>XML document is generated or decomposed from or into a set of tables, linked by primary and foreign keys. </li></ul><ul><li>Each table represents a repeating group of elements in the document. </li></ul><ul><li>Permits update of individual elements and attributes inside a document. </li></ul><?xml version=&quot;1.0&quot;?> <!--DOCTYPE Order SYSTEM &quot;Order.dtd&quot;--> <Order key=&quot;1&quot;> <Part key=&quot;1&quot;> <Customer>37</Customer> <Status>O</Status> <Price>131251.81</Price> <shipment> <Date>1996-01-02</Date> </shipment> <shipment> <Date>1999-11-26</Date> </shipment> </Part> </Order> order_tab Key Order ship_tab date part_key Key Order_key Customer Status Price part_tab
  • 6. <ul><li>Feature 2: XML Collection (Con't) </li></ul><ul><li>The DAD controls the mapping: </li></ul><ul><ul><li>SQL Statement method: an SQL statement generates XML by joining the underlying tables. </li></ul></ul><ul><ul><li>RDB-Node method: Each XML node is mapped individually to a table and column. </li></ul></ul><ul><li>Documents can be generated or shredded based on specified conditions. </li></ul><ul><li>Dynamic override of conditions is supported. </li></ul><ul><li>Appropriate for XML documents that have a regular repeating structure. </li></ul><ul><li>Also appropriate for presenting an XML view of existing DB2 tables. </li></ul>Access Method: Stored Procedure calls through JDBC, ODBC, Embedded SQL.
  • 7. Feature 3: XML Transform <ul><li>A method of producing XML documents from information stored in a IBM Universal database. </li></ul><ul><li>Specifies a language for transforming DB2 database information into XML documents, and a means of invoking transformations at a DB2 server. </li></ul><ul><li>The lightweight transform language is similar to XSLT (W3C XSL Transformations), providing specific constructs for retrieving information from DB2 databases. </li></ul><ul><li>The language is not intended to be a full transformation language, or a rival to XSLT, but simply a way for IBM customers to generate nontrivial XML documents from their data servers. </li></ul>XML Transform tables DB2 XML Document
  • 8. <ul><li>Provides storage, retrieval, and update of XML documents in a single column. </li></ul><ul><li>Composes existing DB2 data into XML documents. </li></ul><ul><li>Stores XML documents as a collection of DB2 data, in multiple columns and tables. </li></ul><ul><li>Manages your DTD repository. </li></ul><ul><li>Extracts XML elements and attributes into traditional SQL data types, leveraging DB2 sophisticated indexing and SQL query. </li></ul><ul><li>Provides a wizard for easy administration. </li></ul><ul><li>Supports international code pages. </li></ul><ul><li>Support platforms of AIX, Linux, NUMA-Q, Solaris, UNIX, Windows 2000 and Windows NT, OS/390(V6), AS/400(V5R1). </li></ul>Summary URL: http://www-4.ibm.com/software/data/db2/extenders

×