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 > select from SYSIBM.SYSXSROBJECTS error appears

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-18-11, 14:53
TDVH TDVH is offline
Registered User
 
Join Date: May 2011
Posts: 15
select from SYSIBM.SYSXSROBJECTS error appears

HI,

if I want to execute this query

ResultSet rs = stmt.executeQuery(
"SELECT status, decomposition, decomposition_version FROM SYSIBM.SYSXSROBJECTS WHERE XSROBJECTNAME = 'BOOKDETAIL'");


this error is appears, so plz help me

DB2 SQL Error: SQLCODE=-16266, SQLSTATE=225D2, SQLERRMC=bookdetail;-530;23503;ADMIN.BOOK_AUTHOR.SQL110618213941760, DRIVER=3.62.56

thanks
Reply With Quote
  #2 (permalink)  
Old 06-20-11, 04:33
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
SQLCODE -16266 stands for message SQL16266N

The message says that it basically wraps another SQL error, in this case for SQLCODE -530. And -530 (SQL0530N) is about a foreign key violation. So it seems that you decompose the document into a table on which a foreign key referencing some other table is defined. And that reference cannot be satisfied for at least 1 of the values/rows extracted from the XML document.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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