Oracle 视图 V$ASM_FILE 官方解释,作用,如何使用详细说明
本站中文解释
Oracle ASM文件视图是查询ASM存储相关信息的只读视图。它可以用于显示Oracle ASM实例中存在的特定ASM文件和其相关属性的信息。
在Oracle数据库中,可以使用SQL选项 v$asm_file 来查询与 ASM文件有关的信息。此视图具有以下几列:
– 大小:表示ASM文件的大小(以字节为单位);
– 格式:表示文件的格式,包括磁盘组、相同的条带宽度和控制文件名;
– 文件类型:表示ASM文件的类型;
– 文件名:表示ASM文件的名称;
– 备份文件:表示ASM文件是否已进行了备份;
– 全路径描述符:表示ASM文件的全路径名;
– 文件日期:表示最近更新ASM文件的日期;
– 手册状态:表示ASM文件当前的状态;
– 全局名称:表示ASM文件的全局名称;
– 覆盖状态:表示ASM文件是否被其他文件覆盖;
– 节点编号:表示ASM文件所在的节点编号;
– FILE# :表示文件的编号。
要使用 v$asm_file 视图,可以使用以下SQL代码段:
SELECT FILE_NAME, FILE_SIZE FROM V$ASM_FILE;
这将列出ASM文件的名称和大小。
官方英文解释
In an Oracle Automatic Storage Management (Oracle ASM) instance, V$ASM_FILE
displays one row for each file in each disk group mounted by the Oracle ASM instance.
For example, if there are three disk groups and five files in each, fifteen rows are displayed (unless the query is qualified with a WHERE
clause).
Column | Datatype | Description |
---|---|---|
|
|
Number of the disk group containing the file (composite primary key) |
|
|
Number of the file within the disk group (composite primary key) |
|
|
A 32-bit number consisting of a disk group number in the high-order 8 bits and a file number in the low-order 24 bits (for efficient access to the view) |
|
|
Incarnation number for the file (composite primary key) |
|
|
Block size of the file (in bytes) |
|
|
Number of blocks in the file |
|
|
Number of bytes in the file |
|
|
Number of bytes allocated to the file |
|
|
Type of the file. Possible values are as follows:
|
|
|
Redundancy of the file:
|
|
|
Indicates how the file is striped:
|
|
|
Date on which the file was created |
|
|
Date of the last open/close for writing, rounded back to the nearest hour |
|
|
Indicates whether a file has lower redundancy than what was expected ( This column is deprecated, and it always displays a value of |
|
|
Access permissions of the file, in order of user, group, and other |
|
|
User number |
|
|
Incarnation number of the user |
|
|
User group number |
|
|
Incarnation number of the user group |
|
|
Region used for allocating primary extents:
|
|
|
Region for allocating mirrored extents:
|
|
|
This column is not meaningful and its value is always |
|
|
This column is not meaningful and its value is always |
|
|
This column is not meaningful and its value is always |
|
|
This column is not meaningful and its value is always |
|
|
Number of reads from the file |
|
|
Number of writes to the file |
|
|
Number of bytes read from the file |
|
|
Number of bytes written to the file |
|
|
Shows the number of the associated file group |
|
|
The incarnation number for the file group the file belongs to in a flex redundancy disk group |
|
|
This column has the value |
|
|
For internal use only. |
|
|
For internal use only. |
|
|
The ID of the container to which the data pertains. Possible values include:
For this view, the value is always |
Footnote 1 Intelligent Data Placement is desupported starting with Oracle Database 21c. As a result, the PRIMARY_REGION
and MIRROR_REGION
columns are no longer meaningful. Also, the HOT_READS
, HOT_WRITES
, HOT_BYTES_READ
, and HOT_BYTES_WRITTEN
columns are no longer meaningful and always return 0
, and the COLD_READS
, COLD_WRITES
, COLD_BYTES_READ
, and COLD_BYTES_WRITTEN
columns return statistics for the entire file.
See Also:
Oracle Automatic Storage
Management Administrator’s Guide for additional information about using views to display Oracle ASM information