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!

updating a node leads to ORA-21500: internal errorcode, arguments: [%s], [%s], [%s], [%s], [%s], [%s

CarstenDDJul 3 2019 — edited Jul 4 2019

Hello,

I am using Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production and try to update a single node in a xml-file. I have a simple example

WITH testdata(xmlfile) AS (

SELECT xmltype(

'<pubDat>

      <bNumber>string</bNumber>

      <fld>string</fld>

      <dbInstance>string</dbInstance>

</pubDat>')

FROM dual)

SELECT XMLQUERY(

    'copy $tmp := .

     modify replace value of node $tmp/pubDat/bNumber with "test"

     return $tmp

    '

PASSING xmlfile RETURNING CONTENT)

FROM testdata

All attempts lead to ORA-21500: internal errorcode, arguments:...

I've tried

...

SELECT XMLQUERY(

    'copy $tmp := $p1

     modify replace value of node $tmp/pubDat/bNumber with $p2

     return $tmp

    '

PASSING xmlfile as "p1",

'test' as "p2"

RETURNING CONTENT)

FROM testdata

...

as well, but the errormessage stays the same. I'm a little bit confused because I don't have a clue what is wrong with this little example.

Thanks a lot in advance for any help.

Regards Carsten

This post has been answered by CarstenDD on Jul 4 2019
Jump to Answer

Comments

Post Details

Added on Jul 3 2019
5 comments
1,295 views