Oracle 视图 DBA_HIST_DATAFILE 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图DBA_HIST_DATAFILE显示每个数据文件的历史情况,空间使用情况以及可用空间。可以用来查看数据文件大小,当前使用空间,可用空间,内存数据库中的每个数据库文件等信息。它可以用来检查每个数据文件的历史状况,例如增加的大小,时间等。

使用方法:
要访问DBA_HIST_DATAFILE,你需要以SYSDBA身份登录数据库,然后执行以下查询:
SELECT *
FROM dba_hist_datafile
ORDER BY DBID, file#;
这将显示所有已知的数据文件的信息。可以使用相关列来过滤查询结果,以显示有关特定文件的数据。

官方英文解释

DBA_HIST_DATAFILE displays a history of the data file information from the control file.

This view contains snapshots of V$DATAFILE.

Column Datatype NULL Description

DBID

NUMBER

NOT NULL

Database ID

FILE#

NUMBER

NOT NULL

File identification number

CREATION_CHANGE#

NUMBER

NOT NULL

Change number at which the data file was created

FILENAME

VARCHAR2(513)

NOT NULL

Name of the data file

TS#

NUMBER

NOT NULL

Tablespace number

TSNAME

VARCHAR2(30)

Name of the tablespace

BLOCK_SIZE

NUMBER

Block size of the data file

CON_DBID

NUMBER

The database ID of the PDB for the sampled session

CON_ID

NUMBER

The ID of the container that CON_DBID identifies. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data

See Also:

“V$DATAFILE”


数据运维技术 » Oracle 视图 DBA_HIST_DATAFILE 官方解释,作用,如何使用详细说明