D78846GC20 09
D78846GC20 09
9-2 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Undo Data: Overview
User
9-3 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Transactions and Undo Data
Undo
segment
Data in Undo “old” data
buffer cache in undo tablespace
9-5 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Storing Undo Information
9-6 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Comparing Undo Data and Redo Data
Undo Redo
Undo
segment
Redo log
files
9-7 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Managing Undo
9-8 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Configuring Undo Retention
DBA
9-9 Copyright © 2014, Oracle and/or its affiliates. All rights reserved.
Categories of Undo
Category Description
Retention guarantee:
15 minutes
Undo data in
undo
tablespace
SELECT statements A transaction will fail
running 15 minutes or less if it generates more undo
are always satisfied. than there is space.
Note: This example is based on an UNDO_RETENTION setting of 900 seconds (15
minutes).
• Rationale:
– Supporting Flashback operations
– Limiting tablespace growth
• Steps:
1. Run regular workload.
2. Self-tuning mechanism establishes minimum required size.
3. (Optional) Use the Enterprise Manager Cloud Control Undo
Advisor, which calculates required size for future growth.
4. (Optional) Change undo tablespace to a fixed size.
Stored in Stored in
temporary user
tablespace tablespace
SQL>