The FCLOSE procedure closes a file based on the input file handle.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
UTL_FILE.FCLOSE (
file IN OUT FILE_TYPE);
Parameters
| Parameter | Description |
|---|---|
| file | An active file handle returned by calling FOPEN or FOPEN_NCHAR. |
Considerations
If there is buffered data that has not been written to the file when FCLOSE is executed, the buffered data will be attempted to be written to the file. However, a WRITE_ERROR exception may occur.
WRITE_ERROR
INVALID_FILEHANDLE
