|
There are three types of undo segments. The first two are similar to the two types of tablespacesSYSTEM and non-SYSTEMand the third is called deferred. SYSTEMSYSTEM undo segments are used for objects in the SYSTEM tablespace. The SYSTEM undo segment is created in the SYSTEM tablespace whenever a database is created and works the same regardless of whether the maintenance mode is manual or automatic. Non-SYSTEMNon-SYSTEM undo segments are used for all objects in any tablespace other than the SYSTEM tablespace. These segments can either be created with automatic undo management or manual undo management. The two different ways that segments can be managed are detailed as follows:
DeferredDeferred is used whenever tablespaces are taken OFFLINE IMMEDIATE, OFFLINE TEMPORARY, or OFFLINE FOR RECOVERY, and transactions are accessing the data in these tablespaces. They are used to facilitate the rolling back of transactions when the tablespace is brought back online and are dropped automatically when they are no longer needed. Because they are created and maintained by Oracle, no maintenance is required on the part of the DBA, but the knowledge that they exist and their purpose is important. Oracle suggests that automatic undo management is the preferred method in Oracle 9i. In the next section, we discuss how to configure your instance and database to use automatic undo management. |
|