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

本站中文解释

_STAT

Oracle视图DBA_HIST_TABLESPACE_STAT存储有关表空间统计信息的历史数据。它记录了多年来表空间的容量变化和用户对空间的使用量情况。

该视图可用于查看某些时间段内表空间的使用情况。例如,可以查看最近1小时、最近一天、最近一个月、最近一段时间内表空间使用情况。DBA_HIST_TABLESPACE_STAT视图允许管理员监视表空间使用量情况以便及时计划扩展表空间的容量。

使用DBA_HIST_TABLESPACE_STAT视图的方法如下:
1.查看某个时间段内表空间的使用情况,可以使用以下SQL语句:
SELECT tablespace_name, used_space from DBA_HIST_TABLESPACE_STAT where snap_time >= ‘ ‘ and snap_time = ‘ ‘ and snap_time

官方英文解释

DBA_HIST_TABLESPACE displays tablespace information contained in the Workload Repository.

Column Datatype NULL Description

DBID

NUMBER

NOT NULL

Database ID

TS#

NUMBER

NOT NULL

Tablespace number

TSNAME

VARCHAR2(30)

NOT NULL

Tablespace name

CONTENTS

VARCHAR2(30)

Tablespace contents:

  • UNDO

  • PERMANENT

  • TEMPORARY

SEGMENT_SPACE_MANAGEMENT

VARCHAR2(30)

Indicates whether the free and used space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO)

EXTENT_MANAGEMENT

VARCHAR2(30)

Indicates whether the extents in the tablespace are dictionary managed (DICTIONARY) or locally managed (LOCAL)

BLOCK_SIZE

NUMBER

Block size of the tablespace

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


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