I am trying to pass a large XML document to an Oracle PLSQL procedure as a CLOB via an MII SQL Fixed Query. It works if the file size is relatively small but not for large files. Beyond a certain point I get a "string literal too long" error.
Here is what my fixed query looks like:
DECLARE
xmlData CLOB;
BEGIN
xmlData := '[Param.1]';
-- line below is calling my PLSQL procedure
insert_from_xml_doc( xmlData, 'tableNameHere');
END
I believe the "string literal too long" error is because of this statement above:
xmlData := '[Param.1]';
It makes sense to me that it would break if that string literal in the single quotes is too long but I don't know of another way to get the data to the CLOB variable.
Does anyone know of a workaround for this limitation? I am getting the XML data from a machine's log file in the factory and posting it to an MII transaction via the PCo File Monitor capability. From the transaction I am calling the SQL query.
Thank you,
Mike