Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-19277 when calling dbms_xmlstorage_manage.xpath2tabcolmapping

Markus WiegandNov 7 2011 — edited Nov 7 2011
Hello,

i'm trying to identify indexes on a structured storage xml table with the xpath2tabcolmapping function of the dbms_xmlstorage_manage package. But every time i execute the function i get the following error:
select dbms_xmlstorage_manage.xpath2tabcolmapping(
         'DS0815BQ',
         'PK_LIEFERUNG',
         null,
         '/pk:lieferung/pk:eintragsbestand',
         '''http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0'' as "pk"')
from dual
/


ORA-19277: XPST0005 - XPath-Schritt gibt einen Elementtyp an, der mit keinem Knoten übereinstimmt: (text())
ORA-06512: in "XDB.DBMS_XMLSTORAGE_MANAGE", Zeile 1404
ORA-06512: in Zeile 1
19277. 00000 -  "XP0005 - XPath step specifies an item type matching no node: (%s)"
*Cause:    The XPath step specified an item type that did not match any nodes according to the input XML schema or structure.
*Action:   Correct the item type defintion as node of such type does not exit in the input XML schema or structure.
The xml schema looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pk="http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0" 
            xmlns:xdb="http://xmlns.oracle.com/xdb" targetNamespace="http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0" 
            elementFormDefault="qualified" attributeFormDefault="qualified" 
            xdb:storeVarrayAsTable="true" 
            xdb:schemaURL="http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0/pk_abgabe_teilnehmerdaten_v1.1.xsd">
  <xsd:element name="lieferung" xdb:SQLName="pk_lieferung" xdb:SQLType="pk_lieferung" xdb:defaultTable="PK_LIEFERUNG" xdb:SQLSchema="DS0815BQ" xdb:defaultTableSchema="DS0815BQ">
  <xsd:complexType xdb:SQLType="pk_lieferung" xdb:SQLSchema="DS0815BQ">
...
and any xml instance document looks like this:
<pk:lieferung xmlns:pk="http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0" 
  xsi:schemaLocation="http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0 http://www.t-com.de/prokom/abgabe/teilnehmerdaten/1.0/pk_abgabe_teilnehmerdaten_v1.1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <pk:eintragsbestand>
  <pk:eintrag pk:prokom_id="10251238246">
   <pk:eintragsversion pk:stichwort="Deutsche Telekom" pk:bundesweit="J" pk:gueltig_von="2011-06-01">
    <pk:nutzung pk:auskunft="J" pk:emedien="J" pk:pmedien="J"/>
    <pk:hierarchie>
     <pk:hierarchiewurzel>
      <pk:eintragsdaten pk:eintragsdaten_id="10251238246" pk:redak_key="240519950" pk:teilnehmerart="F">
       <pk:person_liste>
        <pk:person pk:name="Deutsche Telekom"/>
       </pk:person_liste>
      </pk:eintragsdaten>
     </pk:hierarchiewurzel>
    </pk:hierarchie>
   </pk:eintragsversion>
  </pk:eintrag>
 </pk:eintragsbestand>
</pk:lieferung>
The database version is
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE	11.2.0.2.0	Production
TNS for 64-bit Windows: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Any help would be appreciated.

Thanks,
Markus

Edited by: wiegand.runtime on 07.11.2011 03:33
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2011
Added on Nov 7 2011
1 comment
235 views