rs_dumptran

Initiates a coordinated transaction dump.

Examples

Usage

  • Replication Server coordinates transaction dumps by inserting an rs_dumptran function call at the same place in the stream of transactions it distributes to all replicate Replication Servers.

  • rs_dumptran has function-string-class scope.

    Note: Replication Server does not initialize or generate rs_dumptran function strings for the system-provided function-string classes. You must create a function string before using a coordinated dump with Adaptive Server.
  • Create an rs_dumptran function string at the Replication Server that is the primary site for the class.

  • The rs_lastcommit system table should be updated when the rs_dumptran function string executes so that a restarted Replication Server does not perform duplicate dumps. See "rs_commit" for information about rs_lastcommit.

  • To account for different dump devices at multiple replicate sites, create a stored procedure in each replicate database that performs a transaction dump, then write the rs_dumptran function string to execute the stored procedure.

System Variables for rs_dumptran Function Strings

Variable Name

Datatype

Description

rs_destination_db

varchar(30)

Name of the database where a transaction was sent.

rs_dump_dbname

varchar(30)

The name of the database where the dump originated.

rs_dump_label

varchar(30)

Label information for the dump. For Adaptive Server, this variable contains a datetime value for the time the dump began.

rs_dump_status

int(4)

Dump status indicator:
  • 0 – denotes that the dump transaction command does not contain the parameter with standby_access

  • 1 – denotes that the dump transaction command contains the parameter with standby_access

rs_dump_timestamp

varbinary(16)

An Adaptive Server database timestamp taken when the dump was started at the origin. The variable is used for informational purposes only.

rs_origin

int(4)

ID of the originating database for a transaction.

rs_origin_commit_time

datetime

The time that a transaction was committed at the origin.

Note: If you execute select getdate() while ASE is still processing user database recovery, the returned value of select getdate() may be different from the value of rs_origin_begin_time.

rs_origin_qid

varbinary(36)

Origin queue ID of the first command in a transaction.

rs_secondary_qid

varbinary(36)

Queue ID of a transaction in a subscription materialization or dematerialization queue.

Related reference
create function string
rs_commit
rs_dumpdb
rs_get_lastcommit