Skip Headers
Oracle® TimesTen In-Memory Database Reference
Release 11.2.1

Part Number E13069-03
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

ttRepStateSave

Description

Saves the state of a remote peer data store in an active standby pair to the currently connected data store. Currently, may only be used to indicate to the active data store that the standby data store, storeName on hostName, has failed, and that all updates on the active data store should be replicated directly to the read-only subscribers.

Required privilege

This procedure requires the ADMIN privilege.

Syntax

ttRepStateSave('state', 'storeName', 'hostName')

Parameters

ttRepStateSave has these parameters:

Parameter Type Description
state TT_VARCHAR (20) NOT NULL The replication state of the indicated data store. May only be specified as FAILED in this release. Recording that a standby data store has failed indicates that all replicated updates are to be sent directly from the active data store to the read-only subscribers.
storeName TT_VARCHAR (200) NOT NULL Name of the data store for which the state is indicated.
hostName TT_VARCHAR (200) Name of the host where the data store resides.

Result set

ttRepStateSave returns no results.

Examples

To indicate to the active data store that the standby data store standby on host backup1 has failed, use:

ttRepStateSave('FAILED', 'standby', 'backup1');

See also


ttRepDeactivate
ttRepTransmitSet
ttReplicationStatus
ttRepPolicySet
ttRepStateGet
ttRepStateSet
ttRepStop
ttRepSubscriberStateSet
ttRepSubscriberWait
ttRepSyncGet
ttRepSyncSet
"ttRepDuplicateEx" in Oracle TimesTen In-Memory Database C Developer's Guide