resume connection

Description

Resumes a suspended connection.

Syntax

resume connection to data_server.database
    [skip [n] transaction | execute transaction | skip to resync marker]

Parameters

data_server

The name of the data server that holds the database whose connection is to be resumed.

database

The name of the database whose connection is to be resumed.

skip [n] transaction

Instructs Replication Server to skip a specified number of transactions in the connection queue before resuming the connection. The skipped transactions are written to the database exceptions log, and to either the Replication Server log or the alternative log file specified by the sysadmin dump_file command. The maximum number of transactions that resume connection can skip is the number of transactions in the DSI outbound queue.

If n is not specified, Replication Server resumes execution with the second transaction in the connection’s queue.

execute transaction

overrides the Replication Server restriction against the application of system transactions after a DSI startup if the system transaction is the first transaction in the DSI queue.

skip to resync marker

instructs Replication Server to skip transactions in the DSI outbound queue for the specified replicate database until Replication Server receives and acknowledges a dump database marker sent by Replication Agent. Replication Server skips processing of records in the outbound queue since the data in the replicate database is expected to be replaced with the dump contents.

Examples

Example 1

Resumes the connection to the pubs2 database in the SYDNEY_DS data server:

resume connection to SYDNEY_DS.pubs2

Example 2

Resumes the connection to the pubs2 database in the SYDNEY_DS dataserver after skipping two transactions. The transactions are logged in the database exceptions log and the Replication Server log:

resume connection to SYDNEY_DS.pubs2 skip 2 transaction

Example 3

Resumes the connection to the pubs2 database in the SYDNEY_DS dataserver after skipping two transactions. The transactions are logged in the database exceptions log and in the SYDNEY_RS.log file. The last sysadmin dump_file command closes the SYDNEY_RS.log file:

sysadmin dump_file SYDNEY_RS.log
resume connection to SYDNEY_DS.pubs2 skip 2 transaction
sysadmin dump_file

Example 4

Instruct Replication Server to remove data from the replicate database outbound queue and wait for a resync marker from the primary database Replication Agent:

resume connection to SYDNEY_DS.pubs2 skip to 
resync marker

Usage

Permissions

resume connection requires “sa” permission.

See also

activate subscription, alter connection, assign action, create connection, drop connection, drop subscription, suspend connection