If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > XML Storage as BLOB or XML

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-06-06, 07:00
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
XML Storage as BLOB or XML

What are the pros and cons of storing XML data (zipped form) in DB2 as a BLOB?

So also, what is the advantage 'n disadvantage of storing XML data as XML using the XML data type in DB2 v9?

I'm looking for some document on this.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-06-06, 09:18
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
What are you planning to achieve???

If you intend to store XML as a zipped BLOB, you cannot access it as XML. You will have to extract the data as a bitstream using an application, unzip and parse it ...

If you store the XML as XML type data in V9, you will be able to exploit the new functionality to manipulate XML data ... But it is likely to take more disk space and maintanence ...

I don't think there will be a document about storing XML data as blob

HTH
sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 09-06-06, 11:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The advantage in V9 is that you can do SQL operations against the individual XML components just like they were columns in a DB2 table.

XML Extender (the old technology before V9) will externalize XML CLOBs into a separate table with individual columns, but I would not suggest that it be used because XML Extender will not be supported beyond version 10 according to IBM.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On