start heartbeat

Description

Sets up and starts a heartbeat process from a specified primary connection to a specified replicate connection.

Syntax

start heartbeat from pds.pdb to rds.rdb
	[set interval [to] hb_interval]
	[set maximum rows [to] max_rows]
	[do not load rs_ticket_report]

Parameters

pds.pdb

The name of the primary data server and database. The name must be associated with an existing primary connection.

rds.rdb

The name of the replicate data server and database. The name must be associated with an existing primary and replicate, or replicate-only connection.

hb_interval

The interval in seconds that the RMS executes the rs_ticket command. The default is 60 seconds.

max_rows

The maximum number of rows that the rms_ticket_history table can contain. The RMS tests the size of the table at every heartbeat interval. If the size is greater then max_rows, the RMS removes the oldest entries. The RMS deletes 10% of the max_row size rows in the table. The default is 5000 rows.

do not load rs_ticket_report

If this flag is included, the RMS does not load the rs_ticket_report and you can provide a custom stored procedure instead. You must provide an rs_ticket_report procedure that loads the rms_ticket_history table with the required information.

Examples

Example 1

Sets up and starts the heartbeat process, then executes the rs_ticket procedure every 60 seconds; limits the rms_ticket_history table to 5000 rows:

start heartbeat
      from inventory_pds.vendor to inventory_dss.vendor

Usage

See also

get heartbeat, get heartbeat tickets, stop heartbeat