Concurrent Transactions: Archives and Updates - TARA/ABU

Teradata Archive/Recovery Utility Reference

Product
TARA/ABU
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-05-01
dita:mapPath
utr1488824663491.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2412
lifecycle
previous
Product Category
Teradata Tools and Utilities

When an archive with a group read HUT lock is finished, the archive may contain partial results of a concurrently executing update transaction. Consider the following example:

  1. The archive operation reads row 1 and sends it to the client.
  2. Transaction A reads and updates row 3.
  3. The archive operation reads row 2 and sends it to the client.
  4. Transaction A reads and updates row 1.
  5. Transaction A ends, releasing its HUT lock on rows 1 and 3.
  6. The archive operation reads row 3 and sends it to the client.

The archive described above contains:

  • A copy of row 3 after an update by transaction A, and
  • A copy of row 1 before its update by the transaction.

For this reason, define an after-image permanent journal for tables to be archived using a group read HUT lock. After the archive finishes, archive the corresponding journal. The after-images on the journal archive provide a consistent view of any transaction that executes concurrently with the archive.