Thursday, July 24, 2008

V$CONTROLFILE

Oracle 11gR1

V$CONTROLFILE displays the names of the control files.

Column

Datatype

Description

STATUS

VARCHAR2(7)

INVALID if the name cannot be determined (which should not occur); NULL if the name can be determined

NAME

VARCHAR2(513)

Name of the control file

IS_RECOVERY_DEST_FILE

VARCHAR2(3)

Indicates whether the file was created in the flash recovery area (YES) or not (NO)

BLOCK_SIZE

NUMBER

Control file block size

FILE_SIZE_BLKS

NUMBER

Control file size (in blocks)

Oracle dynamic performance views

V$BGPROCESS

Oracle 11gR1

V$BGPROCESS displays information about the background processes.

Column

Datatype

Description

PADDR

RAW(4 | 8)

Address of the process state object

PSERIAL#

NUMBER

Process state object serial number

NAME

VARCHAR2(5)

Name of this background process

DESCRIPTION

VARCHAR2(64)

Description of the background process

ERROR

NUMBER

Error encountered

Example:


select * from V$BGPROCESS; --Oracle 10gR2ee

PADDR

PSERIAL#

NAME

DESCRIPTION

ERROR

00

0

ARB0

ASM Rebalance 0

0

00

0

ARB1

ASM Rebalance 1

0

00000007B772D4D0

1

ARC0

Archival Process 0

0

00000007BE71AC18

1

ARC1

Archival Process 1

0

00

0

ASMB

ASM Background

0

00000007B96EA648

1

CJQ0

Job Queue Coordinator

0

00000007B86F0380

1

CKPT

checkpoint

0

00

0

CTWR

Change Tracking Writer

0

00000007B772BD18

1

DBW0

db writer process 0

0

00000007BE719460

1

DBW1

db writer process 1

0

00

0

DBW2

db writer process 2

0

00

0

DIAG

diagnosibility process

0

00

0

DMON

DG Broker Monitor Process

0

00

0

EMN0

Event Monitor Process 0

0

00

0

FMON

File Mapping Monitor Process

0

00

0

GMON

diskgroup monitor

0

00

0

INSV

Data Guard Broker INstance SlaVe Process

0

00

0

LCK0

Lock Process 0

0

00000007B96E9E60

1

LGWR

Redo etc.

0

00

0

LMD0

global enqueue service daemon 0

0

00

0

LMON

global enqueue service monitor

0

00

0

LMS0

global cache service process 0

0

00

0

LNS0

Network Server 0

0

00

0

LNS1

Network Server 1

0

00

0

LSP0

Logical Standby

0

00

0

LSP1

Dictionary build process for Logical Standby

0

00

0

LSP2

Set Guard Standby Information for Logical Standby

0

00000007B86EFB98

1

MMAN

Memory Manager

0

00000007B772CCE8

1

MMNL

Manageability Monitor Process 2

0

00000007B86F0B68

1

MMON

Manageability Monitor Process

0

00

0

MRP0

Managed Standby Recovery

0

00

0

NSV0

Data Guard Broker NetSlave Process 0

0

00000007BE718C78

1

PMON

process cleanup

0

00000007B96E9678

1

PSP0

process spawner 0

0

00000007B86F2B08

3

QMNC

AQ Coordinator

0

00

0

RBAL

ASM Rebalance master

0

00000007BE719C48

1

RECO

distributed recovery

0

00

0

RSM0

Data Guard Broker Resource Guard Process 0

0

00

0

RSM1

Data Guard Broker Resource Guard Process 1

0

00

0

RVWR

Recovery Writer

0

00000007B772C500

1

SMON

System Monitor Process

0


Oracle dynamic performance views

V$BACKUP_FILES

Oracle 11gR1

V$BACKUP_FILES displays information about all RMAN backups (both image copies and backup sets) and archived logs.

This view simulates the LIST BACKUP and LIST COPY RMAN commands. This view requires that the database be set using the DBMS_RCVMAN.SETDATABASE procedure.

Column

Datatype

Description

PKEY

NUMBER

Primary key for the backup

BACKUP_TYPE

VARCHAR2(32)

Type of the backup:

· BACKUP SET

· COPY

· PROXY COPY

FILE_TYPE

VARCHAR2(32)

Type of the file:

· DATAFILE

· CONTROLFILE

· SPFILE

· REDO LOG

· COPY (for an image copy backup)

· PIECE (for a backup piece)

KEEP

VARCHAR2(3)

Indicates whether the backup has a retention policy different from the value for CONFIGURE RETENTION POLICY (YES) or not (NO)

KEEP_UNTIL

DATE

If the KEEP UNTIL TIME clause of the BACKUP command was specified, then this column shows the date after which the backup becomes obsolete. If the column is null and KEEP_OPTIONS is not null, the backup never becomes obsolete.

KEEP_OPTIONS

VARCHAR2(13)

KEEP options for the backup:

· LOGS - RMAN keeps the logs needed to recover the backup

· NOLOGS - RMAN does not keep the logs needed to recover the backup

If this column is null, then the backup has no KEEP options and will be made obsolete based on the retention policy.

STATUS

VARCHAR2(16)

Status of the backup:

· AVAILABLE

· UNAVAILABLE

· EXPIRED

· OTHER

FNAME

VARCHAR2(1024)

Name of the file

TAG

VARCHAR2(32)

Tag of the piece, copy, or proxy copy

MEDIA

VARCHAR2(80)

Media ID of the piece or proxy copy

RECID

NUMBER

Recid of the record in the control file

STAMP

NUMBER

Stamp of the record in the control file

DEVICE_TYPE

VARCHAR2(255)

Type of media device that stores the backup

BLOCK_SIZE

NUMBER

Block size for the backup (in bytes)

COMPLETION_TIME

DATE

Time when the backup completed

COMPRESSED

VARCHAR2(3)

Indicates whether the backup piece is compressed (YES) or not (NO); valid only if FILE_TYPE is PIECE. Image copies cannot be compressed.

OBSOLETE

VARCHAR2(3)

Indicates whether the backup piece or copy is obsolete (YES) or not (NO); valid only if FILE_TYPE is PIECE or COPY

BYTES

NUMBER

Size of the file (in bytes)

BS_KEY

NUMBER

Primary key of the backup set (valid only if BACKUP_TYPE is BACKUP SET)

BS_COUNT

NUMBER

Count of the backup set from the control file record (valid only if BACKUP_TYPE is BACKUP SET)

BS_STAMP

NUMBER

Stamp of the backup set from the control file record (valid only if BACKUP_TYPE is BACKUP SET)

BS_TYPE

VARCHAR2(32)

Type of the backup set (valid only if BACKUP_TYPE is BACKUP SET):

· DATAFILE

· ARCHIVED LOG

BS_INCR_TYPE

VARCHAR2(32)

Incremental type of the backup set (valid only if BACKUP_TYPE is BACKUP SET)

BS_PIECES

NUMBER

Number of backup pieces in the backup set (valid only if BACKUP_TYPE is BACKUP SET)

BS_COPIES

NUMBER

Number of copies of the backup set (valid only if FILE_TYPE is PIECE and BACKUP_TYPE is BACKUP SET)

BS_COMPLETION_TIME

DATE

Completion time of the backup set (valid only if BACKUP_TYPE is BACKUP SET)

BS_STATUS

VARCHAR2(16)

Status of the backup set (valid only if BACKUP_TYPE is BACKUP SET):

· AVAILABLE

· UNAVAILABLE

· EXPIRED

· OTHER - Pieces which are part of the backup set do not have uniform status (that is, some of them are available, some not)

BS_BYTES

NUMBER

Sum of all backup piece sizes in the backup set (valid only if BACKUP_TYPE is BACKUP SET)

BS_COMPRESSED

VARCHAR2(3)

Indicates whether the backup pieces of the backup set are compressed (YES) or not (NO); valid only if BACKUP_TYPE is BACKUP SET

BS_TAG

VARCHAR2(1024)

Tags of the backup set. If pieces have different tags, then all piece tags are concatenated and separated by commas. Valid only if BACKUP_TYPE is BACKUP SET)

BS_DEVICE_TYPE

VARCHAR2(255)

Device type of the backup set. If there is more than one device type, then they are separated by commas. Valid only if BACKUP_TYPE is BACKUP SET

BP_PIECE#

NUMBER

Number of pieces inside the backup set (valid only if FILE_TYPE is PIECE and BACKUP_TYPE is BACKUP SET)

BP_COPY#

NUMBER

Number of copies of the backup set (valid only if FILE_TYPE is PIECE and BACKUP_TYPE is BACKUP SET)

DF_FILE#

NUMBER

Absolute file number of the datafile (valid only if FILE_TYPE is DATAFILE)

DF_TABLESPACE

VARCHAR2(30)

Tablespace name of the datafile (valid only if FILE_TYPE is DATAFILE)

DF_RESETLOGS_CHANGE#

NUMBER

System change number (SCN) of the most recent RESETLOGS when the control file or datafile was created (valid only if FILE_TYPE is DATAFILE)

DF_CREATION_CHANGE#

NUMBER

Creation SCN of the control file or datafile (valid only if FILE_TYPE is DATAFILE)

DF_CHECKPOINT_CHANGE#

NUMBER

System change number (SCN) of the most recent control file or datafile checkpoint (valid only if FILE_TYPE is DATAFILE)

DF_CKP_MOD_TIME

DATE

Modification time in case of SPFILE, otherwise time when the control file or datafile was checkpointed (valid only if FILE_TYPE is DATAFILE)

RL_THREAD#

NUMBER

Redo log thread number of the archived log (valid only if FILE_TYPE is REDO LOG)

RL_SEQUENCE#

NUMBER

Redo log sequence number of the archived log (valid only if FILE_TYPE is REDO LOG)

RL_RESETLOGS_CHANGE#

NUMBER

System change number (SCN) of the most recent RESETLOGS when the record was created (valid only if FILE_TYPE is REDO LOG)

RL_FIRST_CHANGE#

NUMBER

First SCN of the redo log (valid only if FILE_TYPE is REDO LOG)

RL_FIRST_TIME

DATE

Time when the Oracle Database switched into the redo log (valid only if FILE_TYPE is REDO LOG)

RL_NEXT_CHANGE#

NUMBER

First SCN of the next redo log in the thread (valid only if FILE_TYPE is REDO LOG)

RL_NEXT_TIME

DATE

First timestamp of the next redo log in the thread (valid only if FILE_TYPE is REDO LOG)

Oracle dynamic performance views