Oracle 视图 ALL_FILE_GROUP_TABLES 官方解释,作用,如何使用详细说明
本站中文解释
Oracle视图ALL_FILE_GROUP_TABLES用于从Oracle当前连接用户拥有的表中提取每个文件组中包含的表信息,文件组是Oracle物理存储表数据的单位,并具有某种物理特性。
ALL_FILE_GROUP_TABLES中的列有:
TABLESPACE_NAME:表所在的表空间名称;
TABLE_NAME:表名称;
FILE_NAME:表对应的文件名;
FILE_ID:表对应的文件ID;
BLOCK_SIZE:表对应的文件大小,单位是字节;
INI_TRANS:打开表时的初始事务数;
MAX_TRANS:打开表时的最大事务数;
RESETLOGS_CHANGE#:最后一次重置(RESETLOGS)操作对应的时间戳;
STATUS:表状态,‘ONLINE’或‘OFFLINE’。
使用ALL_FILE_GROUP_TABLES视图,可以通过以下SQL语句来获取当前用户拥有的表在每个文件中所占的大小信息:
SELECT tablespace_name, table_name, file_name, file_id, block_size
FROM all_file_group_tables
ORDER BY table_name;
官方英文解释
ALL_FILE_GROUP_TABLES
shows information about the tables accessible to the current user that can be imported using the file set.
Related Views
-
DBA_FILE_GROUP_TABLES
shows information about all the tables in the database that can be imported using the file set. -
USER_FILE_GROUP_TABLES
shows information about tables owned by the current user that can be imported using the file set. This view does not display theFILE_GROUP_OWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the file group |
|
|
|
Name of the file group |
|
|
|
Version of the file group that contains the table |
|
|
|
Internal version number |
|
|
|
Schema to which the table belongs |
|
|
|
Name of the table |
|
|
Name of the tablespace to which the table belongs |
|
|
|
SCN at which the table was exported (available only for Streams-prepared tables) |
See Also:
-
“DBA_FILE_GROUP_TABLES”
-
“USER_FILE_GROUP_TABLES”