1

我正在使用 Oracle 11gR2,有人能告诉我为什么临时 lob 没有被释放吗?

    ... 
    -- Apply stylesheet to DOM document
    outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
    outnode := dbms_xmldom.makenode(outdomdocf);

    -- Write the transformed output to the CLOB
    dbms_lob.createTemporary(outfile, true, DBMS_LOB.CALL);
    dbms_xmldom.writetoCLOB(outnode, outfile);

    -- Free Cursors
    outXML := XMLTYPE.createXml(outfile);
    dbms_lob.freeTemporary(outfile);            <-- not working
    ...

当我做

select * from v$temporary_lobs;

它还在那里。

4

1 回答 1

2

你需要DBMS_LOB.CLOSE()在调用之前关闭它DBMS_LOB.FREETEMPORARY()

于 2012-09-06T20:09:03.453 回答