Skip to Main Content

SQL & PL/SQL

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!

[11g] most efficient way to calculate size of xmltype type column

user8704911Sep 24 2013 — edited Sep 25 2013

I need to check the current size of some xmltype column in a BIU trigger.

I don't think it's good to use

  length(:new.xml_data.GetStringVal());

or

  dbms_lob.GetLength(:new.xml_data.GetClobVal());

What's the most efficient way to get the storage size?

I don't need the string serialized size.

It could also be the internal storage size (incl. administration data overhead).

- thanks!

regards,
Frank

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2013
Added on Sep 24 2013
9 comments
3,980 views