UTL_TCP is a system package used for communication with external servers via the TCP/IP protocol.
Applicability
This content is only applicable to the Oracle-compatible mode of OceanBase Database.
Subprograms of UTL_TCP
The following table lists the subprograms supported by the UTL_TCP package in the current version of OceanBase Database, along with a brief description of each subprogram.
| Subprogram | Description |
|---|---|
| OPEN_CONNECTION | Opens a TCP/IP connection with the specified service. |
| CLOSE_CONNECTION | Closes an opened TCP/IP connection. |
| CLOSE_ALL_CONNECTIONS | Closes all opened TCP/IP connections. |
| WRITE_LINE | Transmits a text line to the service with the opened connection. |
| WRITE_TEXT | Transmits a text message to the service with the opened connection. |
| WRITE_RAW | Transmits binary data to the service with the opened connection. |
| GET_LINE | Returns the read text line data. The return continues until the end of the line or the end of input is reached. |
| GET_TEXT | Returns the read text data. |