|
biti_rainy:
希望继续讨论。
下面是我从OCP培训教材中找到的。
Using Extents
Transactions use extents of a rollback segment in a sequential, circular fashion,
moving from one to the next after the current extent is full. A transaction writes an
entry to its current location in the rollback segment and advances the current pointer
by the size of the entry.
More than one transaction can write to the same extent of a rollback segment;
however, each rollback segment block contains information from one and only one
transaction.
Example
In the example in the slide, two transactions have been assigned to a rollback segment,
which has four extents.
1 When the transactions commence, they begin writing to Extent 3 of the rollback
segment.
2 As the two transactions generate more rollback information, they continue to write
into Extent 3.
3 When Extent 3 is full, the transactions write to the next extent in the ring, which is
Extent 4. When transactions start writing to a new extent as in this step, it is called
a wrap.
4 When the last extent for the rollback segment (Extent 4) is full, the transactions
can use the first in the ring (Extent 1) if it is free or inactive. An extent is only free
or inactive if there are currently no active transactions using the extent—that is, all
transactions that wrote to the extent have completed. |
|