Drops the current connection to a database.
disconnect [{identifier | string | hostvar} | current | all]
is the login name you are using to make the connection.
identifier – is the identifier you are using for the connection information.
string – is the string you are using for the connection information.
hostvar – is the variable information for the host name and port.
indicates that you are disconnecting the current connection.
indicates that you are disconnecting all connections.
Disconnects all connections:
disconnect all
disconnect drops a connection to the database server and releases all resources used by it. If the connection to be dropped was named on the connect statement, the name can be specified. Specifying all drops all of the application’s connections to all database environments. current is the default, and drops the current connection.
An implicit rollback is executed on connections that are dropped.
Any user can execute this command.