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

本站中文解释

Oracle视图ALL_REFRESH_DEPENDENCIES显示当前用户(CURRENT_USER)和其他用户(OTHER_USER)中每个引用它的对象(REFRESH_DEPENDANT_NAME)以及它所依赖的对象(REFRESH_REFERENCED_NAME)之间的依赖关系。

该视图常用于为将一个表、索引(INDEX)等对象更新到另一个表时刷新找出它们之间的依赖关系,以避免存在意外依赖的冲突。

使用方法:

1、可以使用视图ALL_REFRESH_DEPENDENCIES查询某个对象需要刷新的对象:
SELECT REFRESH_REFERENCED_NAME
FROM ALL_REFRESH_DEPENDENCIES
WHERE REFRESH_DEPENDANT_NAME = ”;

2、可以使用视图ALL_REFRESH_DEPENDENCIES查询某个对象的刷新依赖的对象:
SELECT REFRESH_DEPENDANT_NAME
FROM ALL_REFRESH_DEPENDENCIES
WHERE REFRESH_REFERENCED_NAME = ”;

官方英文解释

ALL_REFRESH_DEPENDENCIES displays the names of the dependent detail or container tables of all the materialized views in the current schema.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the table

TABLE_NAME

VARCHAR2(128)

NOT NULL

Table name, unique within this schema

PARENT_OBJECT_TYPE

CHAR(17)

MATERIALIZED VIEW

OLDEST_REFRESH_SCN

NUMBER

Minimum SCN of any summary or materialized view that has TABLE_NAME as a detail table

OLDEST_REFRESH_DATE

DATE

SYSDATE when last refreshed


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