本站中文解释
一、关于Oracle视图
Oracle视图是Oracle数据库中只读的逻辑表,由一张或多张物理表的行和列组成,它可以被认为是一种物理表的虚拟映射,具有非常强大的功能。
二、V$DATAFILE视图介绍
V$DATAFILE视图显示实例归属的每个数据文件的当前信息。该视图存储在SGA中,运行中的实例可以实时查看数据库的信息,提供数据库实例浏览。
三、用途及如何使用
V$DATAFILE视图可以用来查看数据文件的名称,大小,当前状态等信息,查看数据文件是否正常工作。
通过Oracle之类SELECT * FROM V$DATAFILE 查看所得到的视图信息,若要更加有效的获取数据文件信息,可以使用Alter Database Command 命令:
例如:ALTER DATABASE DATAFILE ‘c:\oracle\oradata\mydb\mydata.dbf’ RESIZE 5M; 会把文件大小调整成5m,并强制运行中的数据库实例 应用该变更。
官方英文解释
V$DATAFILE
displays datafile information from the control file.
See Also:
“V$DATAFILE_HEADER”, which displays information from data file headers
Column | Datatype | Description |
---|---|---|
|
|
Absolute file number |
|
|
Change number at which the data file was created |
|
|
Timestamp of the data file creation |
|
|
Tablespace number |
|
|
Tablespace relative data file number |
|
|
Type of file (system or user) and its status. Values: |
|
|
Describes how accessible the file is from SQL:
|
|
|
SCN at last checkpoint |
|
|
Timestamp of the checkpoint# |
|
|
Last unrecoverable change number made to this data file. If the database is in |
|
|
Timestamp of the last unrecoverable change. This column is updated only if the database is in |
|
|
Last change number made to this data file (null if the data file is being changed) |
|
|
Timestamp of the last change |
|
|
Offline change number of the last offline range. This column is updated only when the data file is brought online. |
|
|
Online change number of the last offline range |
|
|
Online timestamp of the last offline range |
|
|
Current data file size (in bytes); |
|
|
Current data file size (in blocks); 0 if inaccessible |
|
|
Size when created (in bytes) |
|
|
Block size of the data file |
|
|
Name of the data file |
|
|
Describes whether the tablespace is plugged in. The value is |
|
|
Offset from the beginning of the file to where the Oracle generic information begins. The exact length of the file can be computed as follows: |
|
|
Auxiliary name that has been set for this file via |
|
|
First nonlogged SCN (check in standby database) |
|
|
First nonlogged time (check in standby database) |
|
|
Foreign DBID from which this data file came from. The value is 0 if this file is not a foreign database file. |
|
|
Creation SCN of a foreign data file. The value is 0 if this file is not a foreign database file. |
|
|
Creation time of a foreign data file. The value is 0 if this file is not a foreign database file. |
|
|
|
|
|
SCN at which the foreign data file was transported into the database. The value is 0 if this file is not a foreign database file. |
|
|
The SCN of the |
|
|
The time of the |
|
|
The ID of the container to which the data pertains. Possible values include:
|