CLOSE_CONNECTION is used to close an open TCP/IP connection.
Applicability
This content applies only to the Oracle-compatible mode of OceanBase Database.
Syntax
UTL_TCP.CLOSE_CONNECTION (
c IN OUT NOCOPY connection);
Parameters
| Parameter | Description |
|---|---|
| c | The TCP/IP connection to be closed. |
Considerations
- The connection to be closed must have been opened using
open_connection. After the connection is closed, the fieldsremote_host,remote_port,local_host,local_port,charset, andprivate_sdwill be reset. - Connections must be explicitly closed. The connection will not be automatically closed when the
connectionvariable goes out of its lifecycle. - Any connections that remain open will be automatically closed when the session is terminated.