8.92 V$NONLOGGED_BLOCK
V$NONLOGGED_BLOCK
displays ranges of nonlogged datafile blocks recorded in the control file.
Prior to Oracle Database 12c, the presence of any nonlogged blocks in a data file was recorded in the file header via the FIRST_NONLOGGED_SCN
column of the V$DATAFILE
view. Now with 12c, in addition to the file header data, the ranges themselves are recorded in the control file. A control file range is a superset of the actual nonlogged blocks, meaning that small ranges can be merged to form larger ranges, even when there are some valid blocks between the smaller ranges.
The information in the view is maintained by RMAN VALIDATE
, RMAN RESTORE
, RMAN RECOVER
, and Flashback Database and Media Recovery. A non RMAN-based restore will cause the data to become invalid, and it will be purged the next time any of those tasks are invoked and involve the file. As a result of space reuse, it is possible for ranges to no longer contain any nonlogged blocks. An RMAN VALIDATE command can be used to synchronize the ranges with the actual nonlogged blocks found from a scan of the data file.
Column | Datatype | Description |
---|---|---|
|
|
Absolute file number of the data file that contains the nonlogged blocks |
|
|
Block number of the first nonlogged block in the range of nologged blocks |
|
|
Number of nonlogged blocks found starting with |
|
|
The smallest SCN on which any block in this block range became nonlogged. NULL if unknown. |
|
|
The time that corresponds to |
|
|
The largest SCN on which any block in this block range became nonlogged. NULL if unknown. |
|
|
The time that corresponds to |
|
|
The resetlogs SCN of the incarnation on which this block range was first marked as nonlogged. NULL if unknown. |
|
|
The resetlogs time of the incarnation on which this block range was first marked as nologged. NULL if unknown. |
|
|
The object ID this range belongs to. If this field is NULL, the object number is unknown. |
|
|
The reason why this block range appears in this list, for example, primary file offline, could not talk to primary, non-standby recovery, and so on. For Oracle Database 12c and later releases, it is always |
|
|
The ID of the container to which the data pertains. Possible values include:
|