I have a GLOBAL TEMPORARY table in Oracle. It uses ON COMMIT DELETE ROWS. One of the columns in the table is an XMLType column. I have used GLOBAL TEMP tables quite a bit...with success. However, after introducing the XMLType columne and running a function against the TEMP table I get this error message:
ORA-14453: attempt to use a LOB of a temporary table
--This code (which is located in a function) barfs. THE_TABLE is the temp table containing the XMLType column and THE_ROWS is a collection object
DECLARE v_table a_collection_table;
SELECT mcs2.THE_ROWS (
xml, f1, f2 )
BULK COLLECT INTO v_table
FROM (SELECT *
FROM THE_TABLE) a;
-- Executing a commit flushes the records
-- for the temp table for this session
COMMIT;
--
RETURN v_table;
--This code works after removing the XMLType column of course, I need the XML column, and can accomplish this using a seperate temp table with an XML column and doing some work to parse it out.... I was just curious as to the cause
DECLARE v_table a_collection_table;
SELECT mcs2.THE_ROWS (
f1, f2 )
BULK COLLECT INTO v_table
FROM (SELECT *
FROM THE_TABLE) a;
-- Executing a commit flushes the records
-- for the temp table for this session
COMMIT;
--
RETURN v_table;
Anybody have any ideas? Thanks