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

本站中文解释

视图
ALL_REFS视图是Oracle的一种可视化工具,用于查看数据库对象之间的依赖关系。它表示被别的对象引用或被另一个对象所引用。该视图仅能够查看所有已被确定的对象之间的依赖关系,而不能找出尚未确定可能在运行时出现的依赖关系。

使用 ALL_REFS 视图的步骤如下:
1、查询ALL_REFS视图,以找出你想要查看的对象与哪些其他对象相关。
2、根据查询结果,更进一步查看每个关联对象及其依赖关系,以便确定被引用对象以及引用它们的对象。
3、将查询结果用于识别系统中可能出现的相关问题,例如出现循环依赖或者存在被引用但未实际被使用的对象等。

官方英文解释

ALL_REFS describes the REF columns and REF attributes in object type columns accessible to the current user.

Related Views

  • DBA_REFS describes all REF columns and REF attributes in the database.

  • USER_REFS describes the REF columns and REF attributes in object type columns owned by the current user. This view does not display the OWNER column.

Column Datatype NULL Description

OWNER

VARCHAR2(128)

NOT NULL

Owner of the table

TABLE_NAME

VARCHAR2(128)

NOT NULL

Name of the table

COLUMN_NAME

VARCHAR2(4000)

Name of the REF column or attribute. If it is not a top-level attribute, the value of COLUMN_NAME should be a path name starting with the column name.

WITH_ROWID

VARCHAR2(3)

Indicates whether the REF value is stored with ROWID (YES) or not (NO)

IS_SCOPED

VARCHAR2(3)

Indicates whether the REF column is scoped (YES) or not (NO)

SCOPE_TABLE_OWNER

VARCHAR2(128)

Owner of the scope table, if it exists and is accessible by the user

SCOPE_TABLE_NAME

VARCHAR2(128)

Name of the scope table, if it exists and is accessible by the user

OBJECT_ID_TYPE

VARCHAR2(33)

Indicates whether the object ID (OID) is USER-DEFINED or SYSTEM GENERATED

See Also:

  • “DBA_REFS”

  • “USER_REFS”


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