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

本站中文解释

Oracle视图DBA_HIST_TEMPFILE该视图查看系统的临时文件使用情况,包括临时文件的名称、路径、使用大小、增长等情况。

使用方法:

1、查询指定的临时文件的使用情况,可以使用下面的SQL:

SELECT TEMPFILE_NAME, BYTES, BYTES_USED_DELTA, BYTES_FREE_DELTA, MAX_SIZE
FROM DBA_HIST_TEMPFILE
WHERE TEMPFILE_NAME = ‘TEMPFILENAME’;

2、查询当前系统所有临时文件使用情况,可以使用下面的SQL:

SELECT TEMPFILE_NAME, BYTES, BYTES_USED_DELTA, BYTES_FREE_DELTA, MAX_SIZE
FROM DBA_HIST_TEMPFILE;

官方英文解释

DBA_HIST_TEMPFILE displays a history of the temp file information from the control file. This view contains snapshots of V$TEMPFILE.

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 temp file was created

FILENAME

VARCHAR2(513)

NOT NULL

Name of the temp file

TS#

NUMBER

NOT NULL

Tablespace number

TSNAME

VARCHAR2(30)

Name of the tablespace

BLOCK_SIZE

NUMBER

Block size of the temp 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$TEMPFILE”


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