Professional Documents
Culture Documents
1
Manually Managing Undo Data
(Rollback Segments)
1 2
Transaction 1 Transaction 2
4 3
1 2
1 2
5 3
4 3
4
Inactive extent
6 1
1 2
5 2
6 3
4 3
Active extent
ROLLBACK_SEGMENTS=(rbs01, rbs02)
Compute No
Acquire
the required Are there
named private
number enough
rollback
of rollback RBS’s?
segments.
segments.
Yes
Acquire
public
rollback
segments.
Bring all acquired
rollback segments
online.
• OLTP
– Many small rollback segments
– Four transactions per rollback segment
– Up to ten transactions per rollback segment
• Batch
– Few large rollback segments
– One per transaction
0.50
0.40
Probability
of extending 0.30
0.20
0.10
0.00
0 10 20 30 40
Number of extents
• No space in tablespace:
– Extend data files
– Enables automatic extension of data files
– Add data files
• MAXEXTENTS reached for segment
– Increase MAXEXTENTS
– Re-create segments with larger extent sizes
SELECT *
Tabl FROM table Reused block
e
New image
Image at statement commencement
Blocking
session
1 2
4 1
Extent 3
5 3
3 2
4
Existing extent
New extent