The CLOSE procedure is used to close an internally or externally LOB that was previously opened.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_LOB.CLOSE (
lob_loc IN OUT NOCOPY BLOB);
DBMS_LOB.CLOSE (
lob_loc IN OUT NOCOPY CLOB CHARACTER SET ANY_CS);
Parameters
| Parameter | Description |
|---|---|
| lob_loc | The locator for the LOB. For more information, see Use DBMS_LOB. |
Considerations
CLOSErequires a round trip to the server for both internal and externalLOBoperations. For internalLOBoperations,CLOSEtriggers other code that depends on theclosecall.It is not mandatory to wrap all
LOBoperations within the Open/Close interface. If aLOBis opened, it must be closed before committing the transaction, otherwise an error will occur. When closing an internalLOB, the function-based and domain-based indexes on theLOBcolumn will be updated.Submitting a transaction before closing all
LOBobjects opened by the transaction will result in an error. When an error occurs, the openedLOBobjects will be discarded, but the transaction will still successfully commit all changes made toLOBand non-LOBdata within the transaction. However, the domain-based and function-based indexes will not be updated. In such cases, you should rebuild the function-based and domain-based indexes on theLOBcolumn.
