Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Free up temporary LOBs returned from SQL queries and PL/SQL programs.
Hello,
Following has been taken from
Oracle Database - Application Developer's Guide - Large Objects 10g Release 2 (10.2) Part No. B14249-01
"In PL/SQL, C (OCI), Java and other programmatic interfaces, SQL query results or PL/SQL program executions return temporary LOBs for operation/function calls on LOBs. For example;
SELECT substr(CLOB_Column, 4001, 32000) FROM ....
If the query is executed in PL/SQL, then the returned temporary LOBs automatically get freed at the end of a PL/SQL program block. You can also explicitly free the temporary LOBs any time. in OCI and Java, the returned temporary LOB must be freed by the user explicitly.
Without proper deallocation of the temporary LOBs returned from SQL queries, temporary tablespace gets filled up steadily and you could observe performance degradation."
We have a third party application which is doing a batch processing which includes modifiations to the BLOB and XMLTYPE columns. Its not in PL/SQL.
How can we make sure that the application is freeing up the temporary LOBs? If the application is not freeing then can we free it from the database? if so how?
I would be very glad if the experts share their experience.
Thanking you,
Asif
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Dec 25 2006 - 08:05:31 CST
![]() |
![]() |