本站中文解释
V$DATAFILE_HEADER是Oracle数据库中的一个视图,它可以提供有关每个表空间数据文件的信息。可以回答的问题包括:每个表空间中有多少数据文件?每个数据文件的位置是什么?数据文件的大小?数据文件的状态是什么?
使用V$DATAFILE_HEADER视图的方法:
1、查询每个表空间中有多少数据文件:
SELECT TABLESPACE_NAME, COUNT(*) FROM V$DATAFILE_HEADER GROUP BY TABLESPACE_NAME;
2、查询每个数据文件的详细信息,包括位置、大小以及状态:
SELECT * FROM V$DATAFILE_HEADER;
官方英文解释
V$DATAFILE_HEADER
displays data file information from the data file headers.
Column | Datatype | Description |
---|---|---|
|
|
Data file number (from control file) |
|
|
|
|
|
NULL if the data file header read and validation were successful. If the read failed then the rest of the columns are NULL. If the validation failed then the rest of columns may display invalid data. If there is an error then usually the data file must be restored from a backup before it can be recovered or used. |
|
|
Indicates the format for the header block. The possible values are
|
|
|
File needs media recovery ( |
|
|
File is fuzzy ( |
|
|
Data file creation change# |
|
|
Data file creation timestamp |
|
|
Tablespace name |
|
|
Tablespace number |
|
|
Tablespace relative data file number |
|
|
Resetlogs change# |
|
|
Resetlogs timestamp |
|
|
Data file checkpoint change# |
|
|
Data file checkpoint timestamp |
|
|
Data file checkpoint count |
|
|
Current data file size in bytes |
|
|
Current data file size in blocks |
|
|
Data file name |
|
|
Represents the block address of a space file header block of a locally managed data file |
|
|
Last deallocated SCN |
|
|
For internal use only |
|
|
The ID of the container to which the data pertains. Possible values include:
|
|
|
Indicates whether the file is sparse ( |
|
|
After file encryption is completed, this column indicates whether the file is encrypted ( When file encryption is still in progress, this column has a value of |