Chapter 4. TAS Information Views

Table of Contents

4.1. TAS Disk Space Related Views
4.1.1. V$AS_ALIAS
4.1.2. V$AS_DISK
4.1.3. V$AS_DISKSPACE
4.1.4. V$AS_OPERATION
4.1.5. V$AS_EXTENT_MAP
4.1.6. V$AS_FILE

This chapter describes how to view TAS information by using dynamic views.

4.1. TAS Disk Space Related Views

The following views can be used to display TAS disk space information.

These views can only be used in TAS instances.

ViewDescription
V$AS_ALIASAll aliases in the disk space mounted by a TAS instance.
V$AS_DISKAll disks discovered by a TAS instance.
V$AS_DISKSPACEAll disk spaces discovered by a TAS instance.
V$AS_OPERATIONAll jobs that are being processed in all disk spaces mounted by a TAS instance.
V$AS_EXTENT_MAPPhysical location of all extents managed by a TAS instance.
V$AS_FILEAll files in all disk spaces mounted by a TAS instance.

When using V$AS_* views, the disk space number may have been changed. This is because a disk space number is given when a disk space is mounted.

4.1.1. V$AS_ALIAS

V$AS_ALIAS view displays all aliases in the disk space mounted by a TAS instance.

ColumnData TypeDescription
NAMEVARCHAR(48)Alias.
DISKSPACE_NUMBERNUMBERDisk space number included in the alias.
FILE_NUMBERNUMBERFile number of the alias.
FILE_INCARNATIONNUMBERFile incarnation number of the alias.
ALIAS_INCARNATIONNUMBERIncarnation number of the alias.

4.1.2. V$AS_DISK

V$AS_DISK view displays all disks discovered by a TAS instance.

ColumnData TypeDescription
DISKSPACE_NUMBERNUMBERDisk space number that contains the disk.
DISK_NUMBERNUMBERDisk number in the disk space.
STATEVARCHAR(16)

Disk status in the disk space.

  • ONLINE: Disk is in use.

  • NOT_USED: Disk is not used in the disk space. The DISKSPACE_NUMBER is displayed as 255.

  • PREPARE_ADD: Disk is to be added to the disk space. The disk cannot be used until rebalancing starts.

  • PREPARE_DROP: Disk is to be dropped from the disk space. The disk can be used until rebalancing is complete.

  • PREPARE_FORCE: Disk is to be removed. The disk cannot be used during rebalancing.

  • ADDING: Disk is currently being added through rebalancing.

  • DROPPING: Disk is currently being dropped through rebalancing.

  • FORCING: Disk is currently being dropped without offloading its data.

  • SYNC: Synchronization is in progress for changes that could not be applied due to a temporary disk failure.

  • FAIL: An error has occurred on the disk or the disk has been forcibly taken offline.

OS_MBNUMBERSize of the disk recognized by the OS.
TOTAL_MBNUMBERDisk size.
FREE_MBNUMBERAvailable disk space.
NAMEVARCHAR(48)Disk name.
FAILGROUPVARCHAR(48)Failure group name that contains the disk.
PATHVARCHAR(256)Disk path.
CREATE_DATEDATEDate at which the disk was added to the disk space.

4.1.3. V$AS_DISKSPACE

V$AS_DISKSPACE view displays all disk spaces discovered by the TAS instance.

ColumnData TypeDescription
DISKSPACE_NUMBERNUMBERNumber given in the disk space.
NAMEVARCHAR(48)Disk space name.
SECTOR_SIZENUMBERPhysical block size. (Unit: byte)
BLOCK_SIZENUMBERTAS metadata block size. (Unit: byte)
ALLOCATION_UNIT_SIZENUMBERAllocation unit size. (Unit: byte)
STATEVARCHAR(16)

Disk space state in the TAS instance.

  • MOUNTING: Disk space is currently being mounted.

  • CREATING: Disk space is being created.

  • MOUNT: Disk space has been mounted.

TYPEVARCHAR(8)

Disk space redundancy level.

  • EXTERN: User files are not mirrored.

  • NORMAL: User files are two-way mirrored across 2 or more failgroups.

  • HIGH: User files are three-way mirrored across 3 or more failgroups.

TOTAL_MBNUMBERDisk space size.
FREE_MBNUMBERSize of available disk space.
REQUIRED_MIRROR_FREE_MBNUMBERExtra disk space used for disk failures.
USABLE_FILE_MBNUMBERSize of available disk space adjusted for mirroring.

4.1.4. V$AS_OPERATION

V$AS_OPERATION view can display all jobs that are being processed in all disk spaces mounted by a TAS instance.

ColumnData TypeDescription
DISKSPACE_NUMBERNUMBERDisk space number.
OPERATIONVARCHAR(16)

Job type in progress.

  • REBALANCE: Rebalancing is in progress.

  • SYNC: Synchronization is in progress for failed disk(s).

  • SCRUB: File scrubbing is in progress.

STATEVARCHAR(8)Current job state. Since this view displays a job in progress, the job state is always RUN.
POWERNUMBERPower of the operation. Configuring it is not supported currently. (Default value: 10)
JOB_DONENUMBERNumber of extents completed.
JOB_REMAINNUMBERNumber of extents remained.
JOB_TOTALNUMBERTotal number of extents of the job.
EST_SPEEDNUMBEREstimated job speed. (Unit: extents/second)
EST_REMAIN_TIMEVARCHAR(32)Estimated time required to complete the job. (Unit: seconds)

The following example displays the rebalancing job that is being processed in the disk space ds0 by using V$AS_OPERATION.

[Example 4.1] Viewing Jobs in Progress

SQL> SELECT diskspace_number, operation, job_remain, est_remain_time
        FROM V$AS_OPERATION;

DISKSPACE_NUMBER OPERATION        JOB_REMAIN EST_REMAIN_TIME
---------------- ---------------- ---------- --------------------------------
               0 REBALANCE                72                        30.6

1 row selected.

4.1.5. V$AS_EXTENT_MAP

V$AS_EXTENT_MAP view displays the physical location of all extents managed by a TAS instance.

ColumnData TypeDescription
DISKSPACE_NUMBERNUMBERDisk space number to which the file belongs.
FILE_NUMBERNUMBERFile number in the disk space.
EXTENT_NUMBERNUMBERExtent number in the file.
REDUN_NUMBERNUMBERRedundancy number of the extent.
EXTENT_SIZENUMBERExtent size. (Unit: AU)
DISK_NUMBERNUMBERNumber of the disk that saves the extent.
AU_NUMBERNUMBERAU number of the extent in the disk.

4.1.6. V$AS_FILE

V$AS_FILE view displays all files in the disk space mounted by a TAS instance.

ColumnData TypeDescription
DISKSPACE_NUMBERNUMBERDisk space number to which the file belongs.
FILE_NUMBERNUMBERFile number in the disk space.
INCARNATIONNUMBERFile incarnation number.
BLOCK_SIZENUMBERFile block size. (Unit: bytes)
BYTESNUMBERFile size. (Unit: bytes)
TYPEVARCHAR(8)

File type.

  • DATA: General data file.

  • CTRL: Control file.

  • CM: CM file.

REDUNDANCYVARCHAR(8)

File redundancy level.

  • EXTERN: Files are not mirrored.

  • NORMAL: Files are two-way mirrored across 2 or more failgroups.

  • HIGH: Files are three-way mirrored across 3 or more failgroups.

STRIPEDVARCHAR(8)

Striping type.

  • COARSE: Files are striped in AU size units.

  • FINE: Files are striped in 1/8 * AU size units.

The following is an example of displaying the alias, number, and size of all files in a disk space by using V$AS_ALIAS and V$AS_DISK.

[Example 4.2] Viewing Files and Aliases

SQL> SELECT name, a.file_number, bytes FROM V$AS_ALIAS a, V$AS_FILE f
     WHERE a.file_number = f.file_number
       AND a.diskspace_number = f.diskspace_number;

NAME                                             FILE_NUMBER      BYTES
------------------------------------------------ ----------- ----------
c1.ctl                                                   256    3145728
log001.log                                               257   52428800
log002.log                                               258   52428800
log003.log                                               259   52428800
system001.dtf                                            266   52428800
undo001.dtf                                              267   85983232
temp001.dtf                                              268    2097152
usr001.dtf                                               269    2097152

8 rows selected.