Oracle by Example brandingManage Undo Data

section 0Before You Begin

This 5-minute tutorial shows you how to manage undo data.

Select the Oracle Database release:

Background

Oracle Database uses undo data to roll back transactions, to provide read consistency, as part of database recovery, and to enable features such as Oracle Flashback Query. Oracle Database automatically ensures that undo data that is in use by an active transaction is never overwritten until that transaction has been committed. The database server maintains and automatically tunes an undo retention period to ensure the success of Oracle Flashback features and for read consistency for long-running queries. Auto-tuning of the undo retention period is enabled when you create your database.

What Do You Need?

  • Oracle Database 18c19c

section 1View Undo Information

To view undo data information, perform the following steps:

  1. Select Undo Management in the Storage menu.
    Undo management
    Description of the illustration a1
  2. The Undo Management Details page is displayed. The "Low Undo Retention Threshold" setting shows the minimum undo retention as configured in the UNDO_RETENTION initialization parameter. A "Retention Guaranteed" setting of Yes indicates that the database server should not overwrite unexpired undo data even if current DML transactions must fail to accommodate this setting. A setting of Yes may be necessary to support Oracle Flashback Query. If you receive "Snapshot Too Old Errors" you may need to increase the value of UNDO_RETENTION or increase the size of the undo tablespace.
    Undo summary page
    Description of the illustration a2
  3. Scroll to the right to the view the Undo Advisor graph. The graph shows the minimum size requirement for the undo tablespace given a particular undo retention time. You can change the undo tablespace to a fixed size if necessary. Changing to a fixed size may be required to support Oracle Flashback operations.
    Undo Advisor page
    Description of the illustration a3
  4. Click Change Analysis Parameters to change the values used in the undo configuration analysis and by the Undo Advisor.
    Change Analysis Parameters tab
    Description of the illustration a4
  5. Select Last Week in the Analysis Period menu and click OK.
    Change Analysis Parameters page
    Description of the illustration a5
  6. Click OK on the Confirmation page .
    Confirmation page
    Description of the illustration a6
  7. The Undo Statistics Summary and Undo Advisor sections reflect the analysis for the last week.
    Undo Statistics Summary page
    Description of the illustration a7
  8. Click ORCL to return to the Database Home page.