| Subcribe via RSS

Store native XML in a DB2 table

August 23rd, 2009 | 1 Comment | Posted in IBM DB2 |

IBM DB2 is the first RDBMS to provide a native XML facility, in a table. You will be able to insert in a column, some XML data. It will be easier to make direct requests to these data with XQuery.

So, it’s funny, but why it’s interesting to do that ? Because XML data are hierarchic (instead of relational data which are flat) and data self-describing through XML tags. XML also allows a better flexibility for data structures required to change very often. In the other hand, access time performances will be a little slower, we lose the integrity constraints, and OLAP queries will be more difficult. The important question is “Which flexibility-performance ratio do you need ?”.

Let’s start now with the creation of a database, which should be encoded with UTF-8, to store XML. For that, we use the CREATE DATABASE command:

CREATE DATABASE xmldb USING CODESET UTF-8 TERRITORY US

We have our table, now we should create the “client” table, with an “info” column who contain client information, in XML format:

CONNECT TO xmldb
CREATE TABLE client (id INT, info XML)

Let’s try to insert a new client with a SQL query:

INSERT INTO client (id, info) VALUES (1, '<clientinfo xmlns="http://posample.org" Cid="1"><name>Sophie Bool</name><addr country="France"><street>5 rue du chateau de stable</street><city>Paris</city></addr><phone type="work">01 72 92 02 88</phone></clientinfo>')

The first thing you will told me is this query is a normal SQL query, and this is right, insert XML isn’t more difficult. The second thing is about the XML, here we have a short XML data, but if we have more, it will be very difficult to use. This why, we will use XQuery to manipulate these data or use a XDS import. I’ll come back soon on these points.

Tags: , ,

SQL tuning teleconference on September 1 from IBM

August 23rd, 2009 | No Comments | Posted in IBM DB2, IBM system z |

A new teleconference from IBM on SQL tuning for DB2 on system z coming on Tuesday, September 1, starting at 3pm (UTC). Aim for application programmers, application development managers, database administrators and database managers,  with an intermediate technical level. With the growing of the IT infrastructure, we must find how can we deliver a scalable, reliable, available and highly secure database infrastructure, in a cost-effective data server environment !

The case study will explain:

  • How the project was started
  • Which techniques and strategy were used
  • How follow-up was done
  • What investments where made
  • What was the return on investment

The speakers are Surekha Parekh, DB2 Market Manager/Strategist, IBM Software Group and Kurt Struyf, Senior Consultant from Competence Partners.

You can register at SQL tuning: the necessity, the benefits, a business case.

Tags: , , ,

z/OS 1.11 available on september 25, 2009

August 19th, 2009 | No Comments | Posted in IBM system z |

The last version of the operating system for system z has just been announced officially. z/OS 1.11 will focus on technologies that make the success of the mainframe, hardware virtualization for performance improvement, very high availability, security, flexibility, and ease of administration.

IBM took the opportunity to launch a new product called z/OS Management Facility, which will allow programmers to manage and administrate a mainframe with more ease, on the daily z/OS operation.

z/OS 1.11 and z/OS Management Facility will be available on Septembre 25, 2009

Tags: ,

Understand the difference between TCO et TCA

August 19th, 2009 | No Comments | Posted in Green IT |

When you buy servers, equipments, or softwares, the first question is “how much this cost ?”. The first approch is to say that it’s cost the price when I click on “buy” or when I give cash to the constructor. But, indeed, it’s not really true.

We will define what is the Total Cost of Acquisition and the Total Cost of Ownership. The first is the buy cost, what we just introduce, and the second is the buy cost with all the external costs (cooling, staff,..)

To be more clear, we want to buy 10 x86 servers to use as web cluster. TCA will be 10*500€, so 5.000€. For the TCO, we should add some other costs:

  • Server electricity
  • Servers cooling
  • Infrastructure (floor space)
  • Hire 10 employees
  • Training your staff on clustering technologies
  • Software and hardware installation
  • Equipment insurance
  • Cost of softwares
  • Repair and daily check
  • Downtime, outage and failure expenses
  • ..

All these points are important, this is the TCO. When you have a project, you should think of the project cost on several years, not only the first day, when you buy servers. Some solutions can be expensive at the beginning, but can be cheaper on two years (low consumption ? low downtime ? small staff ?).

Tags: ,

Get documented with IBM Redbooks

August 16th, 2009 | No Comments | Posted in IBM |

IBM Redbooks

It’s always very hard to find good documentation on some products (IBM or else). Internet is really nice, but sometime it’s the jungle, we can find lot of good, but also lot of bad/false.. Shop sells very good books, but come on.. they’re too expensive, I’m student, I can’t buy 10 or 20 books near 50/60€ each..

Hopefully, IBM have a huge ebook library named Redbooks. There are 5 kinds of IBM ebook, first is the classic RedBook, it’s a guide on one or multiple producs, Drat are RedBook in beta version, RedPapers are short technical articles, RedGuides are a kind of praticals business example, and TechNotes are brief technical help on something very precise.

IBM have more than 5.000 RedBooks, in 2008 more than 400 Redbooks have been published. Each month, more than 500.000 ebooks and 100.000 RedPapers are downloaded.

Here are some “must have” Redbooks:

And, the most important, all these ebooks are free !

Tags: , ,