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

本站中文解释

Oracle视图V$JAVA_LIBRARY_CACHE_MEMORY显示库缓存专用存储占用内存的情况。 此视图显示存储池资源分配情况,可帮助您确定根据可用资源更改库缓存参数大小。

此视图有三列:

* POOL_ID:内存池ID。
* USED_BYTES:对应内存池ID所占用内存的实际大小,以字节表示。
* MAX_BYTES:当前内存池内存分配最大大小,以字节表示。

使用方法:

1. 使用SELECT语句从该视图获取库缓存专用存储占用内存的信息:

SELECT pool_id, used_bytes, max_bytes FROM v$java_library_cache_memory;

2. 使用以下查询来确定以 MB 为单位的所有 POOL_ID 使用的内存大小:

SELECT pool_id, used_bytes/1024/1024 “Used Memory (MB)”, max_bytes/1024/1024 “Max Memory (MB)” FROM v$java_library_cache_memory;

此外,您可以与此视图以及V$RESOURCE_LIMIT视图结合使用,以查看 Oracle 数据库是否正在设置库缓存资源,也可以利用此处提供的信息确定是否需要进一步更改库缓存参数大小。

官方英文解释

V$JAVA_LIBRARY_CACHE_MEMORY displays information about memory allocated to library cache memory objects in different namespaces for Java objects.

A memory object is an internal grouping of memory for efficient management. A library cache object may consist of one or more memory objects.

Column Datatype Description

LC_NAMESPACE

VARCHAR2(15)

Library cache namespace

LC_INUSE_MEMORY_OBJECTS

NUMBER

Number of library cache memory objects currently in use in the Java pool

LC_INUSE_MEMORY_SIZE

NUMBER

Total size of library cache in-use memory objects (in megabytes)

LC_FREEABLE_MEMORY_OBJECTS

NUMBER

Number of freeable library cache memory objects in the Java pool

LC_FREEABLE_MEMORY_SIZE

NUMBER

Size of library cache freeable memory objects (in megabytes)

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$JAVA_LIBRARY_CACHE_MEMORY 官方解释,作用,如何使用详细说明