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

本站中文解释

ALL_RULES视图是Oracle数据库中的系统视图,它存储着当前用户创建的规则信息。它用于查询特定视图或表上定义的规则,其中视图/表名可以通过传字符参数指定。

使用ALL_RULES视图时,用户应该指定表和视图名(如果有),以限定查询结果。将要查询的视图或表作为WHERE 子句中的参数,紧跟在OWNER和NAME 字段之后,如下所示:

SELECT * FROM all_rules
WHERE owner = ‘schema_name’ AND name = ‘table_or_view_name’;

官方英文解释

ALL_RULES describes the rules accessible to the current user.

Related Views

  • DBA_RULES describes all rules in the database.

  • USER_RULES describes the rules owned by the current user. This view does not display the RULE_OWNER column.

Column Datatype NULL Description

RULE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the rule

RULE_NAME

VARCHAR2(128)

NOT NULL

Name of the rule

RULE_CONDITION

CLOB

Expressions and operators that constitute the rule condition

RULE_EVALUATION_CONTEXT_OWNER

VARCHAR2(128)

Owner of the evaluation context associated with the rule, if any

RULE_EVALUATION_CONTEXT_NAME

VARCHAR2(128)

Name of the evaluation context associated with the rule, if any

RULE_ACTION_CONTEXT

RE$NV_LIST

Action context associated with the rule, if any

RULE_COMMENT

VARCHAR2(4000)

Comment specified with the rule, if any

See Also:

  • “DBA_RULES”

  • “USER_RULES”


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