I created an xml that contains a lot of data. Now I'm trying to write the created xml to a file.
Declaration:
prodFeed_file UTL_FILE.FILE_TYPE;
prodFeed_file := UTL_FILE.FOPEN ('CSV_DIR', 'feed.xml', 'w', 32767);
LETTER TO FILE:
UTL_FILE.PUT_LINE(prodFeed_file,l_xmltype.getClobVal);
UTL_FILE.FCLOSE(prodFeed_file);
If it l_xmltype.getClobValreturns a limited record, then this is a working file, but if the size l_xmltype.getClobValexceeds the size (almost 35 KB), it gives an error:
ORA-06502: PL/SQL: numeric or value error
source
share