Oracle8i Reference
Release 8.1.5

A67790-01

Library

Product

Contents

Index

Prev Next

3
Dynamic Performance (V$) Views

This chapter describes the dynamic performance views These views are typically referred to as V$ views.

The following topics are included in this chapter:

Dynamic Performance Views

The Oracle server contains a set of underlying views that are maintained by the server and accessible to the database administrator user SYS. These views are called dynamic performance views because they are continuously updated while a database is open and in use, and their contents relate primarily to performance.

Although these views appear to be regular database tables, they are not. These views provide data on internal disk structures and memory structures. These views can be selected from, but never updated or altered by the user.

The file CATALOG.SQL contains definitions of the views and public synonyms for the dynamic performance views. You must run CATALOG.SQL to create these views and synonyms.

V$ Views

Dynamic performance views are identified by the prefix V_$. Public synonyms for these views have the prefix V$. Database administrators or users should only access the V$ objects, not the V_$ objects.

The dynamic performance views are used by Enterprise Manager and Oracle Trace, which is the primary interface for accessing information about system performance.

Suggestion: Once the instance is started, the V$ views that read from memory are accessible. Views that read data from disk require that the database be mounted.

Warning: Information about the dynamic performance views is presented for completeness only; this information does not imply a commitment to support these views in the future.

GV$ Views

In Oracle, there is an additional class of fixed views, the GV$ (Global V$) fixed views. For each of the V$ views described in this chapter (with the exception of V$CACHE_LOCK, V$LOCK_ACTIVITY, V$LOCKS_WITH_COLLISIONS, and V$ROLLNAME), there is a GV$ view. In a parallel server environment, querying a GV$ view retrieves the V$ view information from all qualified instances. In addition to the V$ information, each GV$ view possesses an additional column named INST_ID with type integer. The INST_ID column displays the instance number from which the associated V$ view information was obtained. The INST_ID column can be used as a filter to retrieve V$ information from a subset of available instances. For example, the query:

SELECT * FROM GV$LOCK WHERE INST_ID = 2 OR INST_ID = 5 

retrieves the information from the V$ views on instances 2 and 5.

The GV$ views can be used to return information on groups of instances defined with the OPS_ADMIN_GROUP parameter. For more information see "OPS_ADMIN_GROUP" and Oracle8i Parallel Server Concepts and Administration.

Restrictions on GV$ Views

GV$ views have the following restrictions:

Access to the Dynamic Performance Tables

After installation, only username SYS or anyone with SYSDBA ROLE has access to the dynamic performance tables.

For more information, see Oracle Enterprise Manager Administrator's Guide.

View Descriptions

This section lists the columns and public synonyms for the dynamic performance views.

V$ACCESS

This view displays objects in the database that are currently locked and the sessions that are accessing them.

Column   Datatype   Description  

SID  

NUMBER  

Session number that is accessing an object  

OWNER  

VARCHAR2(64)  

Owner of the object  

OBJECT  

VARCHAR2(1000)  

Name of the object  

TYPE  

VARCHAR2(12)  

Type identifier for the object  

V$ACTIVE_INSTANCES

This view maps instance names to instance numbers for all instances that have the database currently mounted.

Column   Datatype   Description  

INST_NUMBER  

NUMBER  

The instance number  

INST_NAME  

VARCHAR2(60)  

The instance name  

V$AQ

This view describes statistics for the queues in the database.

Column   Datatype   Description  

QID  

NUMBER  

The unique queue identifier  

WAITING  

NUMBER  

Number of messages in the queue in the state 'WAITING'  

READY  

NUMBER  

Number of messages in the queue in the state 'READY'  

EXPIRED  

NUMBER  

Number of messages in the queue the state 'EXPIRED'  

TOTAL_WAIT  

NUMBER  

Total wait time of all 'READY' messages in the queue  

AVERAGE_WAIT  

NUMBER  

Average wait time of 'READY' messages in the queue  

V$ARCHIVE

This view contains information on redo log files in need of archiving. Each row provides information for one thread. This information is also available in V$LOG. Oracle recommends that you use V$LOG. For more information, see "V$LOG".

Column   Datatype   Description  

GROUP#  

NUMBER  

Log file group number  

THREAD#  

NUMBER  

Log file thread number  

SEQUENCE#  

NUMBER  

Log file sequence number  

CURRENT  

VARCHAR2(3)  

Archive log currently in use  

FIRST_CHANGE#  

NUMBER  

First SCN stored in the current log  

V$ARCHIVE_DEST

This view describes, for the current instance, all the archive log destinations, their current value, mode, and status.

Column   Datatype   Description  

DEST_ID  

NUMBER  

ID (1-5)  

STATUS  

VARCHAR2(9)  

Status: VALID: Initialized and available; INACTIVE: No destination information; DEFERRED: Manually disabled by the user; ERROR: Error during open or copy; DISABLED: Disabled after error; BAD PARAM: Parameter has errors  

BINDING  

VARCHAR2(9)  

Requirement for success: MANDATORY- must succeed or OPTIONAL - need not succeed (depends on LOG_ARCHIVE_MIS_SUCCEED_DEST)  

NAME_SPACE  

VARCHAR2(7)  

Definition scope: SYSTEM-System definition or SESSION-Session definition  

TARGET  

VARCHAR2(7)  

Target: PRIMARY-Copy to primary or STANDBY-Copy to standby  

REOPEN_SECS  

NUMBER  

Retry time in seconds (after error)  

DESTINATION  

VARCHAR2(256)  

Destination text string (translated primary location or standby service name)  

FAIL_DATE  

DATE  

Date and time of any last error  

FAIL_SEQUENCE  

NUMBER  

Any log sequence number at last error  

FAIL_BLOCK  

NUMBER  

Any block number at last error  

ERROR  

VARCHAR2(256)  

Text of any last error  

For more information on archived log destinations, see "LOG_ARCHIVE_DEST", "LOG_ARCHIVE_DUPLEX_DEST", and "LOG_ARCHIVE_DEST_n" "LOG_ARCHIVE_DEST_STATE_n", "STANDBY_ARCHIVE_DEST", "LOG_ARCHIVE_MIN_SUCCEED_DEST".

V$ARCHIVED_LOG

This view displays archived log information from the controlfile including archive log names. An archive log record is inserted after the online redo log is successfully archived or cleared (name column is NULL if the log was cleared). If the log is archived twice, there will be two archived log records with the same THREAD#, SEQUENCE#, and FIRST_CHANGE#, but with a different name. An archive log record is also inserted when an archive log is restored from a backup set or a copy.

Column   Datatype   Description  

RECID  

NUMBER  

Archived log record ID  

STAMP  

NUMBER  

Archived log record stamp  

NAME  

VARCHAR2(512)  

Archived log file name. If set to NULL, the log file was cleared before it was archived  

THREAD#  

NUMBER  

Redo thread number  

SEQUENCE#  

NUMBER  

Redo log sequence number  

RESETLOGS_CHANGE#  

NUMBER  

Resetlogs change# of the database when this log was written  

RESETLOGS_TIME  

DATE  

Resetlogs time of the database when this log was written  

FIRST_CHANGE#  

NUMBER  

First change# in the archived log  

FIRST_TIME  

DATE  

Timestamp of the first change  

NEXT_CHANGE#  

NUMBER  

First change in the next log  

NEXT_TIME  

DATE  

Timestamp of the next change  

BLOCKS  

NUMBER  

Size of the archived log in blocks  

BLOCK_SIZE  

NUMBER  

Redo log block size  

ARCHIVED  

VARCHAR2(3)  

YES/NO  

DELETED  

VARCHAR2(3)  

YES/NO  

COMPLETION_TIME  

DATE  

Time when the archiving completed  

V$ARCHIVE_PROCESSES

This view provides information about the state of the various ARCH processes for the instance.

Column   Datatype   Description  

PROCESS  

NUMBER  

The identifier for the ARCH process for the instance, numbered from 0-9  

STATUS  

VARCHAR2(10)  

The status of the ARCH process, displayed as a keyword. Possible values are: STOPPED, SCHEDULED, STARTING, ACTIVE, STOPPING, and TERMINATED.  

LOG_SEQUENCE  

NUMBER  

This is the online redo log sequence number currently being archived, if STATE="BUSY"  

STATE  

VARCHAR2(4)  

This is the current state of the ARCH process, displayed as a keyword. Possible keywords are: IDLE or BUSY  

V$BACKUP

This view displays the backup status of all online datafiles.

Column   Datatype   Description  

FILE#  

NUMBER  

File identifier  

STATUS  

VARCHAR2(18)  

File status: NOT ACTIVE, ACTIVE (backup in progress), OFFLINE NORMAL, or description of an error  

CHANGE#  

NUMBER  

System change number when backup started  

TIME  

DATE  

Time the backup started  

V$BACKUP_ASYNC_IO

This view displays backup set information from the controlfile. A backup set record is inserted after the backup set is successfully completed.

Column   Datatype   Description  

SID  

NUMBER  

The Oracle SID of the session doing the backup or restore  

SERIAL  

NUMBER  

The use count for the SID doing the backup or restore  

USE_COUNT  

NUMBER  

A counter that can be used to identify rows from different backup sets  

DEVICE_TYPE  

VARCHAR2(17)  

The device type where the file is located  

TYPE  

VARCHAR2(9)  

INPUT; OUTPUT; or AGGREGATE  

STATUS  

VARCHAR2(11)  

NOT STARTED; IN PROGRESS; or FINISHED  

FILENAME  

VARCHAR2(513)  

The name of the backup file being read or written  

SET_COUNT  

NUMBER  

The set_count of the backup set being read or written  

SET_STAMP  

NUMBER  

The set_stamp of the backup set being read or written  

BUFFER_SIZE  

NUMBER  

The size of the buffers being used to read/write this file, in bytes  

BUFFER_COUNT  

NUMBER  

The number of buffers being used to read/write this file  

TOTAL_BYTES  

NUMBER  

The total number of bytes that will be read or written for this file, if known. If not known, this column will be null  

OPEN_TIME  

DATE  

The time this file was opened. If TYPE='AGGREGATE', then this is the time that the first file in the aggregate was opened  

CLOSE_TIME  

DATE  

The time this file was closed. If TYPE='AGGREGATE', then this is the time that the last file in the aggregate was closed  

ELAPSED_TIME  

NUMBER  

The time, in 100ths of seconds, that the file was open  

MAXOPENFILES  

NUMBER  

The number of concurrently open DISK files. This value is only present in rows where TYPE='AGGREGATE'  

BYTES  

NUMBER  

The number of bytes read or written so far  

EFFECTIVE_BYTES_PER_SECOND  

NUMBER  

The I/O rate that was achieved with this device during this backup  

IO_COUNT  

NUMBER  

The number of I/Os that were performed to this file  

READY  

NUMBER  

The number of asynchronous requests for which a buffer was immediately ready for use  

SHORT_WAITS  

NUMBER  

The number of times that a buffer was not immediately available, but a buffer became available after doing a non-blocking poll for I/O completion  

SHORT_WAIT_TIME
_TOTAL  

NUMBER  

The total time, in 100ths of seconds, taken by non-blocking polls for I/O completion  

SHORT_WAIT_TIME
_MAX  

NUMBER  

The maximum time taken for a non-blocking poll for I/O completion, in 100ths of seconds  

LONG_WAITS  

NUMBER  

The number of times that a buffer was not immediately available, and only became available after a blocking wait was issued  

LONG_WAIT_TIME
_TOTAL  

NUMBER  

The total time, in 100ths of seconds, taken by blocking waits for I/O completion  

LONG_WAIT_TIME
_MAX  

NUMBER  

The maximum time taken for a blocking wait for I/O completion, in 100ths of seconds  

V$BACKUP_CORRUPTION

This view displays information about corruptions in datafile backups from the controlfile. Note that corruptions are not tolerated in the controlfile and archived log backups.

Column   Datatype   Description  

RECID  

NUMBER  

Backup corruption record ID  

STAMP  

NUMBER  

Backup corruption record stamp  

SET_STAMP  

NUMBER  

Backup set stamp  

SET_COUNT  

NUMBER  

Backup set count  

PIECE#  

NUMBER  

Backup piece number  

FILE#  

NUMBER  

Datafile number  

BLOCK#  

NUMBER  

First block of the corrupted range  

BLOCKS  

NUMBER  

Number of contiguous blocks in the corrupted range  

CORRUPTION
_CHANGE#  

NUMBER  

Change# at which the logical corruption was detected. Set to 0 to indicate media corruption  

MARKED_CORRUPT  

VARCHAR2(3)  

YES/NO. If set to YES the blocks were not marked corrupted in the datafile, but were detected and marked as corrupted while making the datafile backup  

V$BACKUP_DATAFILE

This view displays backup datafile and backup controlfile information from the controlfile.

Column   Datatype   Description  

RECID  

NUMBER  

Backup datafile record ID  

STAMP  

NUMBER  

Backup datafile record stamp  

SET_STAMP  

NUMBER  

Backup set stamp  

SET_COUNT  

NUMBER  

Backup set count  

FILE#  

NUMBER  

Datafile number. Set to 0 for controlfile  

CREATION_CHANGE#  

NUMBER  

Creation change of the datafile  

CREATION_TIME  

DATE  

Creation timestamp of the datafile  

RESETLOGS_CHANGE#  

NUMBER  

Resetlogs change# of the datafile when it was backed up  

RESETLOGS_TIME  

DATE  

Resetlogs timestamp of the datafile when it was backed up  

INCREMENTAL_LEVEL  

NUMBER  

(0-4) incremental backup level  

INCREMENTAL_CHANGE#  

NUMBER  

All blocks changed after incremental change# is included in this backup. Set to 0 for a full backup  

CHECKPOINT_CHANGE#  

NUMBER  

All changes up to checkpoint change# are included in this backup  

CHECKPOINT_TIME  

DATE  

Timestamp of the checkpoint  

ABSOLUTE_FUZZY
_CHANGE#  

NUMBER  

Highest change# in this backup  

MARKED_CORRUPT  

NUMBER  

Number of blocks marked corrupt  

MEDIA_CORRUPT  

NUMBER  

Number of blocks media corrupt  

LOGICALLY_CORRUPT  

NUMBER  

Number of blocks logically corrupt  

DATAFILE_BLOCKS  

NUMBER  

Size of the datafile in blocks at backup time. This value is also the number of blocks taken by the datafile restarted from this backup  

BLOCKS  

NUMBER  

Size of the backup datafile in blocks. Unused blocks are not copied to the backup  

BLOCK_SIZE  

NUMBER  

Block size  

OLDEST_OFFLINE
_RANGE  

NUMBER  

The RECID of the oldest offline range record in this backup controlfile. 0 for datafile backups  

COMPLETION_TIME  

DATE  

The time completed  

V$BACKUP_DEVICE

This view displays information about supported backup devices. If a device type does not support named devices, then one row with the device type and a null device name is returned for that device type. If a device type supports named devices then one row is returned for each available device of that type. The special device type DISK is not returned by this view because it is always available.

Column   Datatype   Description  

DEVICE_TYPE  

VARCHAR2(17)  

Type of the backup device  

DEVICE_NAME  

VARCHAR2(512)  

Name of the backup device  

V$BACKUP_PIECE

This view displays information about backup pieces from the controlfile. Each backup set consist of one or more backup pieces.

Column   Datatype   Description  

RECID  

NUMBER  

Backup piece record ID  

STAMP  

NUMBER  

Backup piece record stamp  

SET_STAMP  

NUMBER  

Backup set stamp  

SET_COUNT  

NUMBER  

Backup set count  

PIECE#  

NUMBER  

Backup piece number (1-N)  

COPY#  

NUMBER  

Indicates the copy number for backup pieces created with duplex enabled. 1 if the backup piece is not duplexed  

DEVICE_TYPE  

VARCHAR2(17)  

Type of the device on which the backup piece resides. Set to DISK for backup sets on disk. See V$BACKUP_DEVICE  

HANDLE  

VARCHAR2(513)  

Backup piece handle identifies the backup piece on restore  

COMMENTS  

VARCHAR2(81)  

Comment returned by the operating system or storage subsystem. Set to NULL for backup pieces on disk. This value is informational only; not needed for restore  

MEDIA  

VARCHAR2(65)  

Name of the media on which the backup piece resides. This value is informational only; not needed for restore  

MEDIA_POOL  

NUMBER  

The media pool in which the copy resides. This is the same value that was entered in the POOL operand of the Recovery Manager BACKUP command  

CONCUR  

VARCHAR2(3)  

YES/NO, Indicates whether the piece on a media that can be accessed concurrently  

TAG  

VARCHAR2(32)  

Backup piece tag. The tag is specified at backup set level, but stored at piece level  

DELETED  

VARCHAR2(3)  

If set to YES indicates the piece is deleted, otherwise set to NO  

START_TIME  

DATE  

The starting time  

COMPLETION_TIME  

DATE  

The completion time  

ELAPSED_SECONDS  

NUMBER  

The number of elapsed seconds  

V$BACKUP_REDOLOG

This view displays information about archived logs in backup sets from the controlfile. Note that online redo logs cannot be backed up directly; they must be archived first to disk and then backed up. An archive log backup set can contain one or more archived logs.

Column   Datatype   Description  

RECID  

NUMBER  

Record ID for this row. It is an integer that identifies this row  

STAMP  

NUMBER  

Timestamp used with RECID to uniquely identify this row  

SET_STAMP  

NUMBER  

One of the foreign keys for the row of the V$BACKUP_SET table that identifies this backup set  

SET_COUNT  

NUMBER  

One of the foreign keys for the row of the V$BACKUP_SET table that identifies this backup set  

THREAD#  

NUMBER  

Thread number for the log  

SEQUENCE#  

NUMBER  

Log sequence number  

RESETLOGS_CHANGE#  

NUMBER  

Change number of the last resetlogs before the log was written  

RESETLOGS_TIME  

DATE  

Change time of the last resetlogs before the log was written. These will be the same for all logs in a backup set  

FIRST_CHANGE#  

NUMBER  

SCN when the log was switched into. The redo in the log is at this SCN and greater  

FIRST_TIME  

DATE  

Time allocated when the log was switched into  

NEXT_CHANGE#  

NUMBER  

SCN when the log was switched out of. The redo in the log is below this SCN  

NEXT_TIME  

DATE  

Time allocated when the log was switched out of  

BLOCKS  

NUMBER  

Size of the log in logical blocks including the header block  

BLOCK_SIZE  

NUMBER  

Size of the log blocks in bytes  

V$BACKUP_SET

This view displays backup set information from the controlfile. A backup set record is inserted after the backup set is successfully completed.

Column   Datatype   Description  

RECID  

NUMBER  

Backup set record ID  

STAMP  

NUMBER  

Backup set record timestamp  

SET_STAMP  

NUMBER  

Backup set stamp. The backup set stamp and count uniquely identify the backup set

Primary key for the V$BACKUP_SET table, and the foreign key for the following tables: V$BACKUP_PIECE; V$BACKUP_DATAFILE
V$BACKUP_REDOLOG; V$BACKUP_CORRUPTION  

SET_COUNT  

NUMBER  

Backup set count. The backup set count is incremented by one every time a new backup set is started (if the backup set is never completed the number is "lost"). If the controlfile is recreated then the count is reset to 1. Therefore the count must be used with the stamp to uniquely identify a backup set

Primary key for the V$BACKUP_SET table, and the foreign key for the following tables: V$BACKUP_PIECE; V$BACKUP_DATAFILE; V$BACKUP_REDOLOG; V$BACKUP_CORRUPTION  

BACKUP_TYPE  

VARCHAR2(1)  

Type of files that are in this backup. If the backup contains archived redo logs, the value is `L'. If this is a datafile full backup, the value is `D'. If this is an incremental backup, the value is `I'  

CONTROLFILE
_INCLUDED  

VARCHAR2(3)  

Set to YES if there is a controlfile included in this backup set, otherwise set to NO  

INCREMENTAL
_LEVEL  

NUMBER  

Location where this backup set fits into the database's backup strategy. Set to zero for full datafile backups, non-zero for incremental datafile backups, and NULL for archivelog backups  

PIECES  

NUMBER  

Number of distinct backup pieces in the backup set  

START_TIME  

DATE  

The starting time  

COMPLETION_TIME  

DATE  

When the backup completes successfully, this is set to the completion time. This is the same time that was returned by backupEnd. If the backup is still in progress or has failed, this is set to NULL  

ELAPSED_SECONDS  

NUMBER  

The number of elapsed seconds  

BLOCK_SIZE  

NUMBER  

Block size of the backup set  

V$BACKUP_SYNC_IO

This view displays backup set information from the controlfile. A backup set record is inserted after the backup set is successfully completed.

Column   Datatype   Description  

SID  

NUMBER  

The Oracle SID of the session doing the backup or restore  

SERIAL  

NUMBER  

The use count for the SID doing the backup or restore  

USE_COUNT  

NUMBER  

A counter that can be used to identify rows from different backup sets  

DEVICE_TYPE  

VARCHAR2(17)  

The device type where the file is located  

TYPE  

VARCHAR2(9)  

INPUT; OUTPUT; or AGGREGATE  

STATUS  

VARCHAR2(11)  

NOT STARTED; IN PROGRESS; or FINISHED  

FILENAME  

VARCHAR2(513)  

The name of the backup file being read or written  

SET_COUNT  

NUMBER  

The set_count of the backup set being read or written  

SET_STAMP  

NUMBER  

The set_stamp of the backup set being read or written  

BUFFER_SIZE  

NUMBER  

The size of the buffers being used to read/write this file, in bytes  

BUFFER_COUNT  

NUMBER  

The number of buffers being used to read/write this file  

TOTAL_BYTES  

NUMBER  

The total number of bytes that will be read or written for this file, if known. If not known, this column will be null  

OPEN_TIME  

DATE  

The time this file was opened. If TYPE='AGGREGATE', then this is the time that the first file in the aggregate was opened  

CLOSE_TIME  

DATE  

The time this file was closed. If TYPE='AGGREGATE', then this is the time that the last file in the aggregate was closed  

ELAPSED_TIME  

NUMBER  

The time, in 100ths of seconds, that the file was open  

MAXOPENFILES  

NUMBER  

The number of concurrently open DISK files. This value is only present in rows where TYPE='AGGREGATE'  

BYTES  

NUMBER  

The number of bytes read or written so far  

EFFECTIVE_BYTES_PER_SECOND  

NUMBER  

The I/O rate that was achieved with this device during this backup  

IO_COUNT  

NUMBER  

The number of I/Os that were performed to this file  

IO_TIME_TOTAL  

NUMBER  

The total time, in 100ths of seconds, taken to do I/O for this file  

IO_TIME_MAX  

NUMBER  

The maximum time taken for a single I/O request  

DISCRETE_BYTES_PER_SECOND  

NUMBER  

The average transfer rate for this file  

V$BGPROCESS

This view describes the background processes.

Column   Datatype   Description  

PADDR  

RAW(4)  

Address of the process state object  

NAME  

VARCHAR2  

Name of this background process  

DESCRIPTION  

VARCHAR2  

Description of the background process  

ERROR  

NUMBER  

Error encountered  

V$BH

This is a Parallel Server view. This view gives the status and number of pings for every buffer in the SGA.

Column   Datatype   Description  

FILE#  

NUMBER  

Datafile identifier number (to find filename, query DBA_DATA_FILES or V$DBFILES)  

BLOCK#  

NUMBER  

Block number  

CLASS#  

NUMBER  

The class number  

STATUS  

VARCHAR2(1)  

FREE= not currently in use
XCUR= exclusive
SCUR= shared current
CR= consistent read
READ= being read from disk
MREC= in media recovery mode
IREC= in instance recovery mode  

XNC  

NUMBER  

Number of PCM x to null lock conversions due to contention with another instance. This column is obsolete but is retained for historical compatibility.  

LOCK_ELEMENT
_ADDR  

RAW(4)  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock.  

LOCK_ELEMENT
_NAME  

NUMBER  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock.  

LOCK_ELEMENT
_CLASS  

NUMBER  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock.  

FORCED_READS  

NUMBER  

Number of times the block had to be made re-read from disk because another instance had forced it out of this instance's cache by requesting the PCM lock on this block in lock mode.  

FORCED_WRITES  

NUMBER  

Number of times DBWR had to write this block to disk because this instance had dirtied the block and another instance had requested the PCM lock on the block in conflicting mode.  

DIRTY  

VARCHAR2(1)  

Y = block modified.  

TEMP  

VARCHAR2(1)  

Y = temporary block  

PING  

VARCHAR2(1)  

Y = block pinged  

STALE  

VARCHAR2(1)  

Y = block is stale  

DIRECT  

VARCHAR2(1)  

Y = direct block  

NEW  

VARCHAR2(1)  

Always set to N. This column is obsolete but is retained for historical compatibility  

OBJD  

NUMBER  

Database object number of the block that the buffer represents  

TS#  

NUMBER  

Tablespace number of block  

For more information, see Oracle8i Parallel Server Concepts and Administration.

V$BUFFER_POOL

This view displays information about all buffer pools available for the instance. The "sets" pertain to the number of LRU latch sets. For more information, see "DB_BLOCK_LRU_LATCHES".

Column   Datatype   Description  

ID  

NUMBER  

Buffer pool ID number  

NAME  

VARCHAR2  

Buffer pool name  

LO_SETID  

NUMBER  

Low set ID number  

HI_SETID  

NUMBER  

High set ID number  

SET_COUNT  

NUMBER  

Number of sets in this buffer pool. This is HI_SETID - LO_SETID + 1  

BUFFERS  

NUMBER  

Number of buffers allocated to the buffer pool  

LO_BNUM  

NUMBER  

Low buffer number for this pool  

HI_BNUM  

NUMBER  

High buffer number for this pool  

V$BUFFER_POOL_STATISTICS

This view displays information about all buffer pools available for the instance. The "sets" pertain to the number of LRU latch sets. For more information, see "DB_BLOCK_LRU_LATCHES".

Column   Datatype   Description  

ID  

NUMBER  

Buffer pool ID number  

NAME  

VARCHAR2(20)  

Buffer pool name  

SET_MSIZE  

NUMBER  

Buffer pool maximum set size  

CNUM_REPL  

NUMBER  

Number of buffers on replacement list  

CNUM_WRITE  

NUMBER  

Number of buffers on write list  

CNUM_SET  

NUMBER  

Number of buffers in set  

BUF_GOT  

NUMBER  

Number of buffers gotten by the set  

SUM_WRITE  

NUMBER  

Number of buffers written by the set  

SUM_SCAN  

NUMBER  

Number of buffers scanned in the set  

FREE_BUFFER_WAIT  

NUMBER  

Free buffer wait statistic  

WRITE_COMPLETE_WAIT  

NUMBER  

Write complete wait statistic  

BUFFER_BUSY_WAIT  

NUMBER  

Buffer busy wait statistic  

FREE_BUFFER_INSPECTED  

NUMBER  

Free buffer inspected statistic  

DIRTY_BUFFERS_INSPECTED  

NUMBER  

Dirty buffers inspected statistic  

DB_BLOCK_CHANGE  

NUMBER  

Database blocks changed statistic  

DB_BLOCK_GETS  

NUMBER  

Database blocks gotten statistic  

CONSISTENT_GETS  

NUMBER  

Consistent gets statistic  

PHYSICAL_READS  

NUMBER  

Physical reads statistic  

PHYSICAL_WRITES  

NUMBER  

Physical writes statistic  

V$CACHE

This is a Parallel Server view. This view contains information from the block header of each block in the SGA of the current instance as related to particular database objects.

Column   Datatype   Description  

FILE#  

NUMBER  

Datafile identifier number (to find filename, query DBA_DATA_FILES or V$DBFILES)  

BLOCK#  

NUMBER  

Block number  

CLASS#  

NUMBER  

Class number  

STATUS  

VARCHAR2(1)  

Status of block:
FREE = not currently in use
XCUR = exclusive
SCUR = shared current
CR = consistent read
READ = being read from disk
MREC = in media recovery mode
IREC = in instance recovery mode  

XNC  

NUMBER  

Number of PCM x to null lock conversions due to contention with another instance. This column is obsolete but is retained for historical compatibility  

FORCED_READS  

NUMBER  

The forced reads  

FORCED_WRITES  

NUMBER  

The forced writes  

NAME  

VARCHAR2(30)  

Name of the database object containing the block  

PARTITION_NAME  

VARCHAR2(30)  

The name of the partition; NULL for non-partitioned objects  

KIND  

VARCHAR2(12)  

Type of database object. See Table 3-1  

OWNER#  

NUMBER  

Owner number  

LOCK_ELEMENT_ADDR  

RAW(4)  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock  

LOCK_ELEMENT_
NAME  

NUMBER  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock  

For more information, see Oracle8i Parallel Server Concepts and Administration.

Table 3-1 Values for the KIND column
Type Number  KIND Value  Type Number  KIND Value 
1   INDEX   11   PACKAGE BODY  
2   TABLE   12   TRIGGER  
3   CLUSTER   13   TYPE  
4   VIEW   14   TYPE BODY  
5   SYNONYM   19   TABLE PARTITION  
6   SEQUENCE   20   INDEX PARTITION  
7   PROCEDURE   21   LOB  
8   FUNCTION   22   LIBRARY  
9   PACKAGE   NULL   UNKNOWN  
10   NON-EXISTENT   ------   -------  

V$CACHE_LOCK

This is a Parallel Server view.

Column   Datatype   Description  

FILE#  

NUMBER  

Datafile identifier number (to find filename, query DBA_DATA_FILES or V$DBFILES)  

BLOCK#  

NUMBER  

Block number  

STATUS  

VARCHAR2(4)  

Status of block:
FREE = not currently in use
XCUR = exclusive
SCUR = shared current
CR = consistent read
READ = being read from disk
MREC = in media recovery mode
IREC = in instance recovery mode  

XNC  

NUMBER  

Number of parallel cache management (PCM) lock conversions due to contention with another instance  

NAME  

VARCHAR2(30)  

Name of the database object containing the block  

KIND  

VARCHAR2(12)  

Type of database object. See Table 3-1  

OWNER#  

NUMBER  

Owner number  

LOCK_ELEMENT
_ADDR  

RAW(4)  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock  

LOCK_ELEMENT
_NAME  

NUMBER  

The address of the lock element that contains the PCM lock that is covering the buffer. If more than one buffer has the same address, then these buffers are covered by the same PCM lock  

FORCED_READS  

NUMBER  

Number of times the block had to be made re-read from disk because another instance had forced it out of this instance's cache by requesting the PCM lock on this block in lock mode  

FORCED_WRITES  

NUMBER  

Number of times DBWR had to write this block to disk because this instance had dirtied the block and another instance had requested the PCM lock on the block in conflicting mode  

INDX  

NUMBER  

Platform-specific lock manager identifier  

CLASS  

NUMBER  

Platform-specific lock manager identifier  

V$CACHE_LOCK is similar to V$CACHE, except for the platform-specific lock manager identifiers. This information may be useful if the platform- specific lock manager provides tools for monitoring the PCM lock operations that are occurring. For example, first query to find the lock element address using INDX and CLASS, then query V$BH to find the buffers that are covered by the lock. See also "V$CACHE".