Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: transaction table

RE: transaction table

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Wed, 31 Jan 2007 13:00:58 -0500
Message-ID: <AA29A27627F842409E1D18FB19CDCF270B1D50AE@AABO-EXCHANGE02.bos.il.pqe>


Hi Joe,

I think this could be worded better. The transaction exists as an entry in the transaction table of an undo segment. When the transaction commits, the only thing that is guaranteed is that the transaction slot of that undo segment is guaranteed to be written. The rest can and will be up in the air.

The V$TRANSACTION view, and the underlying X$, X$KTCXB, is a map of transaction state objects. These are in-memory structures. If the instance crashes, their contents are lost. What matters is whether the transaction header in the undo (or rollback) segment is marked as committed or not.

On instance recovery, subsequent to a crash, Oracle first checks the datafile headers and the controlfile, to determine the range of SCNs it needs to read from redo and apply to the datafiles, to get them up to date. After that, it looks at the undo segment transaction slots, and looks for transactions that are not committed, and rolls those back.

Hope that helps,

-Mark

--

Mark J. Bobak
Senior Oracle Architect
ProQuest Information & Learning

There is nothing so useless as doing efficiently that which shouldn't be done at all. -Peter F. Drucker, 1909-2005

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Joe Smith Sent: Wednesday, January 31, 2007 12:37 PM To: oracle-l_at_freelists.org
Subject: transaction table

In the Oracle DB Concepts 10g pdf from Oracle the following is on page 4-4:

When a transaction is committed, the following occurs:

  1. The internal transaction table for the associated undo tablespace records that the transaction has committed, and the corresponding unique system change number (SCN) of the transaction is assigned and recorded in the table.

Is the " internal transaction table" referred to here v$transaction or is it
a $X table?

thanks.



From predictions to trailers, check out the MSN Entertainment Guide to the
Academy Awards(r)
http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline1

--

http://www.freelists.org/webpage/oracle-l

--

http://www.freelists.org/webpage/oracle-l Received on Wed Jan 31 2007 - 12:00:58 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US