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

本站中文解释

Oracle视图ALL_MVIEW_DETAIL_RELATIONS存储了物化视图中涉及到的详细表之间的关系信息。
它包含物化视图与详细表之间的表名、列名和级联关系。

用途:
ALL_MVIEW_DETAIL_RELATIONS视图可以用来跟踪物化视图及其详细表之间的关系、理解物化视图的组成,以及针对物化视图的其他操作,如备份、还原或故障排除。

使用方法:
要使用ALL_MVIEW_DETAIL_RELATIONS视图,首先要连接到数据库,然后可以执行SELECT语句,检索相关视图范围内涉及到的详细表和物化视图,然后就可以查询物化视图与详细表之间的关系了。

官方英文解释

ALL_MVIEW_DETAIL_RELATIONS describes the named detail relations that are either specified in the FROM list of the subquery that defines a materialized view accessible to the current user, or that are indirectly referenced through views in that FROM list. Inline views in the materialized view definition are not represented in this view or the related views.

Related Views

  • DBA_MVIEW_DETAIL_RELATIONS describes all such detail relations defined for all materialized views in the database.

  • USER_MVIEW_DETAIL_RELATIONS describes such detail relations defined for all materialized views owned by the current user.

Note:

All three views exclude materialized views that reference remote tables or that includes references to a nonstatic value such as SYSDATE or USER. These views also exclude materialized views that were created as snapshots before Oracle8i and that were never altered to enable query rewrite.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the materialized view

MVIEW_NAME

VARCHAR2(128)

NOT NULL

Name of the materialized view

DETAILOBJ_OWNER

VARCHAR2(128)

NOT NULL

Detail object owner

DETAILOBJ_NAME

VARCHAR2(128)

NOT NULL

Detail object name (that is, the name of a table or view)

DETAILOBJ_TYPE

VARCHAR2(9)

Detail object type:

  • TABLE

  • VIEW

  • SNAPSHOT

  • CONTAINER

  • UNDEFINED

DETAILOBJ_ALIAS

VARCHAR2(128)

Implicit or explicit alias for detail relation

DETAILOBJ_PCT

VARCHAR2(1)

Indicates whether the detail object PCT is supported (Y) or not (N)

NUM_FRESH_PCT_PARTITIONS

NUMBER

Number of fresh PCT partitions

NUM_STALE_PCT_PARTITIONS

NUMBER

Number of stale PCT partitions

See Also:

  • “DBA_MVIEW_DETAIL_RELATIONS”

  • “USER_MVIEW_DETAIL_RELATIONS”


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