How to write large XML doc from XMLTYPE to an OS file
(Doc ID 1567036.1)
Last updated on JANUARY 21, 2020
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A 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