IBM 000-8697 Manuale Utente Pagina 665

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 702
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 664
Product Environment 9-45
Two-Phase Commit and Logical Log Records
TABLOCKS
The TABLOCKS logical log record can be written by either a coordinator or a
participant OnLine databaseserver. Itis associated with eithera BEGPREP or
a PREPARE record and contains a list of the locked tblspaces (by tblspace
number) held by the transaction. (Within the IBM Informix STAR
environment, transactions, not database server processes, are shown as the
owners of locks.)
Theoutputfromtblogcontainsthreefields:type;numberof locks,expressed
as an integer; and locked tblspace number, expressed as a hexadecimal. (If
youconvertthehexadecimalvaluetoaninteger,theresultisthevaluestored
as partnum in the systables system catalog table.) The output appears as
follows:
TABLOCKS number_of_locks hex_tblspace_number
HEURTX
The HEURTX logical log record is written by a participant OnLine database
server to record a heuristic decision to roll back the transaction. It should be
associated witha standard ROLLBACK record indicating that thetransaction
was rolled back.
The output from tblog contains two fields: type and a heuristic flag,
expressed as a hexadecimal. The value of the flag is always one. The output
appears as follows:
HEURTX 0x01
ENDTRANS
The ENDTRANS logical log record is written by both the coordinator and
participant OnLine database servers to record the end of the transaction.
ENDTRANS instructs OnLine to removethetransaction entry fromitsshared-
memory transaction table and close the transaction.
In the coordinator logical log, each BEGPREP that results in a committed
transaction is paired with an ENDTRANS record. If the coordinator’s final
decision is to roll back the transaction, no ENDTRANS record is written.
In the participant logical log, each ENDTRANS record is paired with a corre-
sponding HEURTX record.
Vedere la pagina 664
1 2 ... 660 661 662 663 664 665 666 667 668 669 670 ... 701 702

Commenti su questo manuale

Nessun commento