Command Line Examples; Exception Transactions - Compaq AA-Q88CE-TE System Manager's Manual

Rtr
Table of Contents

Advertisement

Transaction Management
4.1 Overview
this transaction is removed from memory and can no longer be monitored by the
command.
The RTR
transaction. The RTR journal saves all of the information about a transaction,
its transaction journal state, the transaction messages (records) received from the
RTR client, and the content of a message sent to the server. The information will
be kept until a transaction is committed and forgotten.
The RTR
change the current state of a transaction to a new state. This command can be
used to circumvent a difficult situation. For example, in a situation where two
shadowed servers are configured, the system administrator might decide not
to replay (recover) all transactions in a shadowed RTR journal after a failure.
The
SET TRANSACTION
or remember state to a DONE state and avoid the delay of transactions being
remembered from a journal for fast recovery. The
should only be used by experienced RTR system administrators as the command
introduces the risk of corrupting or losing transactions if used incorrectly. It can
be used on the backend only and the RTR log file must be turned on for this
command.
Log file entries are made for all transaction state changes for debugging and
auditing purposes.

4.1.0.1 Command Line Examples

An example of the use of the
RTR> start rtr
RTR> set log/file=settran
RTR> set transaction/state=PRI_DONE/new_state=DONE/facility=Facility1/partition=Partition1 *
This example would set all transactions with the wildcard * in the current state
of PRI_DONE (remember) to DONE on the facility Facility1 and the partition
Partition1. The log file, settran, would record the transaction state changes.
The changes could be viewed with the
JOURNAL
remember transactions and provide for a fast recovery of access to the database if
needed.
For detailed information on these commands see Chapter 6.

4.1.1 Exception Transactions

Transactions can cause servers to fail after the VOTE phase and impact
availability of a server in a recovery. These "EXCEPTION" transactions can
now be flagged by RTR as "fail transactions" after the user sets the attempts
at recovery from a failure with the
command. They then can be identified and removed from the RTR journal
and from the system to allow recovery to continue with the
command. In the case of a flagged "EXCEPTION" transaction the system
administrator can take action by changing the state of the "EXCEPTION"
transaction to that of "DONE" with the
/NEW_STATE=DONE
4–2 Transaction Management
command can be used to trace and review the flow of a
DUMP JOURNAL
SET TRANSACTION
command is used to modify a live transaction to
command could set specified transactions in a PRI_DONE
SET TRANSACTION
command. In a shadow recovery situation this would clear the journal of
to allow the recovery to continue.
SET TRANSACTION
command:
command or the
SHOW TRANSACTION
SET PARTITION/RECOVERY_RETRY_COUNT=nn
SET TRANSACTION/STATE=EXCEPTION
command
DUMP
SET TRANSACTION

Advertisement

Table of Contents
loading

This manual is also suitable for:

Reliable transaction router, version 3.2

Table of Contents