sysadmin issue_ticket

Injects an rs_ticket marker into an inbound or an outbound queue.

Syntax

sysadmin issue_ticket {,q_number} |{,ds_name, db_name},[,q_type], h1 [, h2 [, h3 [, h4]]] [,v]

Parameters

Examples

Usage

When using the sysadmin issue_ticket command:
  • You must have at least one subscription from the replicated database in Replication Server. If there are no subscriptions, the Distributor (DIST) module will not send the rs_ticket marker to the corresponding Data Server Interface (DSI).

  • The timestamp for the primary database (PDB) and EXEC module is an arbitrary value in the injected rs_ticket marker.

  • You can specify a stable queue only by using q_number, q_type or ds_name, db_name, and q_type. In a warm standby environment, an inbound queue is related to the logical connection, and Replication Server does not have inbound queue for the standby database. When using sysadmin issue_ticket for warm standby:

    • If the user specifies the stable queue by an existing logical connection or the physical connection for the active database, the specific rs_ticket marker is written into Replication Server inbound queue. The corresponding rs_ticket record can be found in both the replicate database and the standby database at the primary site.

      Note: In a two Replication Server(RS) DR setup, if the primary server is down, then bring down both primary Adaptive Server Enterprise (ASE) and RS. In thiss case, ensure that the outbound queue is cleared before client can failover to DR ASE. To do that, you need to inject a ticket to the outbound queue. When the ticket is found in the rs_ticket_history table, clients can failover.
    • If the user specifies the stable queue by an existing physical connection for the standby database, an error message appears indicating that no such inbound queue exists.