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 Extender

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-04, 15:30
ansonee ansonee is offline
Registered User
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 253
XML Extender

Been trying to get the XML Extender set up. I'm close but no cigar....

When trying to bind dxxbind.lst, I get the following error:

LINE MESSAGES FOR dxxbind.lst
------ --------------------------------------------------------------------
SQL0061W The binder is in progress.

LINE MESSAGES FOR dxxcomp.bnd
------ --------------------------------------------------------------------
1996 SQL0204N "DB2XML.XML_USAGE" is an undefined name.
SQLSTATE=01532

LINE MESSAGES FOR dxxbind.lst
------ --------------------------------------------------------------------
SQL0091N Binding was ended with "0" errors and "1" warnings.

Then when I try to enable a database I get an error saying the database isn't bound.

Any ideas or suggestions?

Thanks in advance...
__________________
Anthony Robinson

"If I'm curt with you, it's because time is a factor here. I think fast, I talk fast, and I need you guys to act fast if you want to get out of this. So, pretty please - with sugar on top..."
Reply With Quote
  #2 (permalink)  
Old 01-16-04, 15:48
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: XML Extender

Are you using the documented method of enabling XML Extender ? (I don't rememebr the command as I don't do it often)

Cheers
Sathyaram





Quote:
Originally posted by ansonee
Been trying to get the XML Extender set up. I'm close but no cigar....

When trying to bind dxxbind.lst, I get the following error:

LINE MESSAGES FOR dxxbind.lst
------ --------------------------------------------------------------------
SQL0061W The binder is in progress.

LINE MESSAGES FOR dxxcomp.bnd
------ --------------------------------------------------------------------
1996 SQL0204N "DB2XML.XML_USAGE" is an undefined name.
SQLSTATE=01532

LINE MESSAGES FOR dxxbind.lst
------ --------------------------------------------------------------------
SQL0091N Binding was ended with "0" errors and "1" warnings.

Then when I try to enable a database I get an error saying the database isn't bound.

Any ideas or suggestions?

Thanks in advance...
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-16-04, 16:32
ansonee ansonee is offline
Registered User
 
Join Date: Feb 2002
Location: Minneapolis, MN
Posts: 253
I actually went into the samples directory and edited the getstart_prep.cmd file to contain the path to the database that I want to enable - et voila!!!

Now I have another question: I've been going through the admin guide and reference and trying to find a way to decompose an xml document into a pre-existing relational table, and don't seem to be having much luck.

Is this something that I need to do manually via the stored procedures? And seccondly: are the stored procedures strictly java stored procedures (or need to be invoked through java code)?

I hope this makes sense....

Thanks!
__________________
Anthony Robinson

"If I'm curt with you, it's because time is a factor here. I think fast, I talk fast, and I need you guys to act fast if you want to get out of this. So, pretty please - with sugar on top..."
Reply With Quote
  #4 (permalink)  
Old 01-16-04, 16:44
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I think you will have to use the function (or is it an SP?) to shred and store XML into a table ....

If you go to www7b.boulder.ibm.com/dmdd and search for XML , you should get a couple of very useful articles

HTH


Sathayram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-16-04, 16:52
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally posted by ansonee
I actually went into the samples directory and edited the getstart_prep.cmd file to contain the path to the database that I want to enable - et voila!!!

Now I have another question: I've been going through the admin guide and reference and trying to find a way to decompose an xml document into a pre-existing relational table, and don't seem to be having much luck.

Is this something that I need to do manually via the stored procedures? And seccondly: are the stored procedures strictly java stored procedures (or need to be invoked through java code)?

I hope this makes sense....

Thanks!
To decompose an xml document into tables and columns you would call a stored procedure (part of XML extender) and pass it a CLOB containing your XML. I think the process is described in the document you're referring to under "Working with XML collections" or something.

You don't have to call those stored procedures from Java - the only requirement is that you need to pass it a CLOB somehow.
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