欢迎光临
我们一直在努力

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

本站中文解释

V$OFFLINE_RANGE是一个视图,用于报告数据表、分区和子分区的存储空间状态,可以和V$FILESEGMENT表一起报告每个数据表及其对于的存储空间状态。该视图是只读的,接受3个参数:表名,分区名和子分区名。

使用视图 V$OFFLINE_RANGE时,首先需要确定要查询的表,然后再确定查询表的分区和子分区。最后,使用SELECT语句查询表、分区和子分区的存储空间状态,方法如下:

SELECT segment_name, partition_name, subpartition_name, offline_status FROM V$OFFLINE_RANGE WHERE segment_name=’表名’ [AND partition_name=’分区名’] [AND subpartition_name=’子分区名’];

官方英文解释

V$OFFLINE_RANGE displays datafile offline information from the control file.

Note that the last offline range of each datafile is kept in the DATAFILE record.

An offline range is created for a datafile when its tablespace is first altered to be OFFLINE NORMAL or READ ONLY, and then subsequently altered to be ONLINE or read/write. Note that no offline range is created if the datafile itself is altered to be OFFLINE or if the tablespace is altered to be OFFLINE IMMEDIATE.

See Also:

“V$DATAFILE”

Column Datatype Description

RECID

NUMBER

Record ID

STAMP

NUMBER

Record stamp

FILE#

NUMBER

Datafile number

OFFLINE_CHANGE#

NUMBER

SCN at which offlined

ONLINE_CHANGE#

NUMBER

SCN at which onlined

ONLINE_TIME

DATE

Time of offline SCN

RESETLOGS_CHANGE#

NUMBER

Resetlogs change number of the record

RESETLOGS_TIME

DATE

Resetlogs timestamp of the record

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

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。