-
1. Re: DeleteXml() causing xml data format error in database
KnightOfBlueArmor Jul 21, 2013 4:48 PM (in response to alexjingsi)What is the exact database version (like, "11.2.0.1") that you are using?
-
2. Re: DeleteXml() causing xml data format error in database
alexjingsi Jul 23, 2013 3:01 PM (in response to KnightOfBlueArmor)I'm using the database version 11.2.0.1.0. This problem just appeared three times during the last week, and I had to restore the whole xmltype table to fix it, because any operation on the table failed even the data exists.
-
3. Re: DeleteXml() causing xml data format error in database
KnightOfBlueArmor Jul 23, 2013 3:06 PM (in response to alexjingsi)With 11.2.0.2 and onwards, we've had problems in the past with using updateXML(), deleteXML(), or insertXML() with binary XMLTYPE storage. I'm not sure whether this is the same for 11.2.0.1, though. The better idea is to use XMLPatch() if you can. I think you might be able to use XMLQuery() in that version as well.
-
4. Re: DeleteXml() causing xml data format error in database
odie_63 Jul 23, 2013 4:27 PM (in response to KnightOfBlueArmor)KnightOfBlueArmor wrote:
The better idea is to use XMLPatch() if you can.
XMLPatch?
Do you use it yourself on a regular basis?
Personally, I find it fun to use but the performance doesn't match my expectations (no piecewise update/streaming eval AFAIK).
Message was edited by: odie_63
-
5. Re: DeleteXml() causing xml data format error in database
KnightOfBlueArmor Jul 23, 2013 5:30 PM (in response to odie_63)No, I don't use it on a regular basis, but our Oracle contractor tells us it's a good idea.
The BEST option, IMHO, is to use XmlQuery, but I'm not sure XQUF is supported in that version.
-
6. Re: DeleteXml() causing xml data format error in database
Marco Gralike Jul 23, 2013 7:22 PM (in response to KnightOfBlueArmor)XQUF is supported from 11.2.0.3.0 and upwards
-
7. Re: DeleteXml() causing xml data format error in database
alexjingsi Jul 24, 2013 3:25 PM (in response to KnightOfBlueArmor)Thanks for your tip, it's very helpful.
BTW, could you please show me how to use XMLQuery to delete or insert xml data into the XML DB ? Since I used to use XMLQuery to query data only.
I prefer to keep high performance in my website, so the XMLPatch may not be a better choice. I'll try to use OR storage instead Binary storage to see if the problem occurs again.
-
8. Re: DeleteXml() causing xml data format error in database
odie_63 Jul 24, 2013 3:37 PM (in response to alexjingsi)BTW, could you please show me how to use XMLQuery to delete or insert xml data into the XML DB ?
As Marco said :
XQUF is supported from 11.2.0.3.0 and upwards
so not available for your version.