rs_dumpdb

Initiates a coordinated database dump.

Examples

Usage

  • Replication Server coordinates database dumps by placing rs_dumpdb function calls in the same place in the stream of transactions distributed to each replicate Replication Server.

  • rs_dumpdb has function-string class scope.

    Note: Replication Server does not initialize or generate rs_dumpdb 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_dumpdb function string at the Replication Server that is the primary site for the class.

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

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

System Variables for rs_dumpdb Function Strings

Variable Name

Datatype

Description

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 holds a datetime value that is the time the dump originated.

rs_dump_timestamp

varbinary(16)

A timestamp taken when the dump started.

Related reference
create function string class
rs_commit
rs_dumptran
rs_get_lastcommit