cache_usage

Description

Returns cache usage as a percentage of all objects in the cache to which the table belongs.

Syntax

cache_usage(table_name)

Parameters

table_name

is the name of a table. The name can be fully qualified (that is, it can include the database and owner name).

Examples

Example 1

Returns percentage of the cache used by the titles tables:

select cache_usage("titles")
----------------------------
                     98.876953

Example 2

Retuns, from the master database, the percentage of the cache used by the authors tables

select cache_usage ("pubs2..authors")
------------------------------------
                             98.876953

Usage

Permissions

Any user can execute cache_usage.