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

本站中文解释

ALL_XTERNAL_TAB_PARTITIONS视图是用于查看某特定用户的外部表分区的,可以根据不同的参数来查看该用户的外部表分区的数据。

使用该视图需要使用SELECT语句,查询的字段可以是EXT_TAB_OWNER, EXT_TABLE_NAME, EXT_PARTITION_NAME,PARTITION_TYPE, PARTITION_EXPRESSION等。

1. EXT_TAB_OWNER: 外部表所属的拥有者名称
2. EXT_TABLE_NAME: 外部表名称
3. EXT_PARTITION_NAME: 外部表分区名称
4. PARTITION_TYPE: 分区类型
5. PARTITION_EXPRESSION: 分区表达式

示例:

SELECT EXT_TAB_OWNER,EXT_TABLE_NAME,EXT_PARTITION_NAME,PARTITION_TYPE,PARTITION_EXPRESSION
FROM ALL_XTERNAL_TAB_PARTITIONS
WHERE EXT_TAB_OWNER=’your_owner’
AND EXT_TABLE_NAME=’your_external_table’;

官方英文解释

ALL_XTERNAL_TAB_PARTITIONS describes partition-level information for partitioned external tables accessible to the current user.

Related Views

  • DBA_XTERNAL_TAB_PARTITIONS describes partition-level information for partitioned external tables in the databae

  • USER_XTERNAL_TAB_PARTITIONS describes partition-level information for partitioned external tables owned by the current user. This view does not display the TABLE_OWNER column.

Column Datatype NULL Description

TABLE_OWNER

VARCHAR2(128)

Owner of the partitioned external table

TABLE_NAME

VARCHAR2(128)

Name of the partitioned external table

PARTITION_NAME

VARCHAR2(128)

Name of the partition

DEFAULT_DIRECTORY_OWNER

CHAR(3)

Owner of the default directory for the external table partition

DEFAULT_DIRECTORY_NAME

VARCHAR2(128)

Name of the default directory for the external table partition

ACCESS_TYPE

VARCHAR2(7)

Type of access parameters for the partition (BLOB, CLOB)

ACCESS_PARAMETERS

CLOB

Access parameters for the external table partition

PROPERTYFoot 1

VARCHAR2(10)

 

Property of the external table partition:

  • REFERENCED – Referenced columns

  • ALL – All columns

INMEMORYFoot 1

VARCHAR2(8)

 

Indicates whether the In-Memory Column Store (IM column store) is enabled (ENABLED) or disabled (DISABLED) for the external table partition

INMEMORY_COMPRESSIONFoot 1

VARCHAR2(17)

 

Indicates the compression level for the IM column store:

  • NO MEMCOMPRESS

  • FOR DML

  • FOR QUERY [ LOW | HIGH ]

  • FOR CAPACITY [ LOW | HIGH ]

  • NULL

Footnote 1 This column is available starting with Oracle Database 21c.

See Also:

  • “DBA_XTERNAL_TAB_PARTITIONS”

  • “USER_XTERNAL_TAB_PARTITIONS”


数据运维技术 » Oracle 视图 ALL_XTERNAL_TAB_PARTITIONS 官方解释,作用,如何使用详细说明