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

本站中文解释

_WAIT

V$SUBCACHE_WAIT是Oracle内部虚拟列或视图,可以用来检查缓冲区池子的等待信息,如缓存游标的重新编码等。它将显示当前执行的 Oracle 请求或用户的每个副缓存的等待池子。V$SUBCACHE_WAIT 视图可显示许多细节,特别是调试目的。可以在V$SUBCACHE_WAIT视图中,使用 NAME 和 LAST_WAIT_CLASS 列来查看有等待事件的副缓存缓存凭据名称和当前等待事件的等待事件名称。

此外,它可以提供有关缓存子池的统计信息,包括活动查询、等待线程数量以及锁瓶颈等信息,以帮助诊断较慢的查询速度。V$SUBCACHE_WAIT视图可以帮助 DBAs 对运行的系统进行监控并根据其觿情况,合理调整资源分配,以提高数据库系统的性能。 例如,当 V$SUBCACHE_WAIT 中的等待查询执行时间低于预期,则可能需要调整缓存的大小;或者,如果

官方英文解释

V$SUBCACHE displays information about the subordinate caches currently loaded into library cache memory. The view walks through the library cache, printing out a row for each loaded subordinate cache per library cache object.
Column Datatype Description

OWNER_NAME

VARCHAR2(64)

Owner of the object containing these cache entries

NAME

VARCHAR2(1000)

Object Name

TYPE

NUMBER

Object Type

HEAP_NUM

NUMBER

Heap number containing this subordinate cache

CACHE_ID

NUMBER

Subordinate cache ID

CACHE_CNT

NUMBER

Number of entries for this cache in this object

HEAP_SZ

NUMBER

Amount of extent space allocated to this heap

HEAP_ALOC

NUMBER

Amount of extent space allocated from this heap

HEAP_USED

NUMBER

Amount of space utilized in this heap

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


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