How to write large XML doc from XMLTYPE to an OS file
(Doc ID 1567036.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 188.8.131.52 and later
Information in this document applies to any platform.
I have a requirement to export large xml files (couple of MB each file in a single write/put) from an XMLTYPE into an OS file. I have tried the following but each one listed below has its own limitation on the number of characters per single write operation.
- UTL_FILE.PUT_RAW/PUT - Supports only less than 32676 characters.
- DBMS_XSLPROCESSOR.CLOB2FILE supports more than 32676 characters however the written file is chopped off around 50K.
How to get around the 50K limitation?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document