Show TOC

disconnectLocate this document in the navigation structure

Terminates connection to a server.

{disconnect | disc} [all]
Example 1
Creates a connection from ost_replinuxvm_02 to ost_replinuxvm_03, and then ost_replinuxvm_02 disconnects from ost_replinuxvm_03:
isql -Usa -P -S ost_replinuxvm_02
1> connect to ost_replinuxvm_03
2> go
Gateway connection to 'ost_replinuxvm_03' is created.
1> disc
2> go
Gateway connection to 'ost_replinuxvm_03' is dropped.
  • disconnect exits the connection stack one at a time. To exit from all the connections, use disconnect all.

  • The disconnect command behaves differently in Replication Server 15.1 and earlier. In these versions, a disconnect command terminates the gateway mode, and returns the working server status to the Replication Server that issued the first connect command. When your connection stack includes Replication Server versions 15.2, and 15.1 or earlier, and you issue a disconnect command, the show connection and show server commands may not display the expected output.


Any user may execute this command.