The PUT_RAW stored procedure is used to write binary data to an operating system file.
Applicability
This content applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support it.
Syntax
UTL_FILE.PUT_RAW (
file IN FILE_TYPE,
buffer IN RAW,
autoflush IN BOOLEAN DEFAULT FALSE)
Parameters
Parameter |
Explanation |
|---|---|
| file | ByFOPENThe file handle opened in byte write mode. |
| buffer | The binary data to be written to the file. |
| autoflush | Whether to flush the file immediately after writing. Default value:FALSE. |
Usage instructions
PUT_RAW can only handle files opened in byte mode. If buffer is NULL, no data is written; if autoflush is TRUE, the file is flushed after each write.