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

本站中文解释

Oracle视图V$BT_SCAN_OBJ_TEMPS用于查看磁盘和其他扫描对象中段的缓存信息。该View可以用来查看每个段和文件的时间戳、大小等信息。此外,它还可以查看每个段癿当前缓存占用的内存数量,以及其上次缓存的时间。视图V$BT_SCAN_OBJ_TEMPS的指标定义如下:

Object ID:扫描对象标识符。对象可以是文件、段、距离或其他临时数据类型。

Object Type:标识扫描对象类型。

Time Stamp:显示文件或段的时间戳。

Size:表示文件或段大小,以字节为度量单位。

Current Pins:表示当前文件或段实体占用的缓存数量。

Last Pin Time:显示文件或段上次被缓存的时间。

缓存信息可以帮助用户对对象使用情况进行跟踪,并帮助定位缓存异常情况的原因。

要使用视图V$BT_SCAN_OBJ_TEMPS,首先需要使用SELECT语句进行查询,语句如下:

SELECT * FROM V$BT_SCAN_OBJ_TEMPS;

该查询将返回所有文件、段和其他扫描对象中的缓存信息。

官方英文解释

V$BT_SCAN_OBJ_TEMPS shows the active objects currently tracked by the big table cache.

Column Datatype Description

TS#

NUMBER

Tablespace number

DATAOBJ#

NUMBER

Data object number (objd)

SIZE_IN_BLKS

NUMBER

Size of the object being scanned on this instance, in blocks

TEMPERATURE

NUMBER

Temperature of this object

POLICY

VARCHAR2(10)

Caching policy of this object. Possible values:

  • MEM_ONLY: This object will be fully cached in memory.

  • MEM_PART: This object will be partially cached in memory and some portion will remain on disk and will not be cached.

  • DISK: this object will not be cached in memory or flash for the scan at all.

  • INVALID: The caching policy is not valid.

CACHED_IN_MEM

NUMBER

The number of blocks that are cached/allocated in memory for this object

CON_ID

NUMBER

The ID of the container to which the data pertains. 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:

“DB_BIG_TABLE_CACHE_PERCENT_TARGET” for more information about enabling the big table cache


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