The WRITE_TEXT procedure is used to transmit text messages to the open connection service.
Applicability
This topic applies only to OceanBase Database in Oracle mode.
Syntax
UTL_TCP.WRITE_TEXT (
c IN OUT NOCOPY connection,
data IN VARCHAR2 CHARACTER SET ANY_CS,
len IN PLS_INTEGER DEFAULT NULL)
RETURN PLS_INTEGER;
Parameters
| Parameter | Description |
|---|---|
| c | The TCP/IP connection. |
| data | The buffer containing the data to be sent. |
| len | The number of characters to be transmitted. If NULL, all data is transmitted. Due to network conditions, the actual number of characters written may be less. |
Return value
The actual number of characters transmitted.
Considerations
- The connection must have been opened using
open_connection. - Convert the text character set to the specified online character set before transmission.
- If
lenexceeds the number of characters indata, abad argumentexception is thrown.
