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

本站中文解释

视图

Oracle XStream视图ALL_XSTREAM_RULES是Oracle数据库的另一个可用视图,用于查询当前用户可见的XStream规则。它可以用来查看正在处理的XStream规则,从而帮助Oracle DBA和开发人员更好地了解当前的XStream规则实现情况。

ALL_XSTREAM_RULES视图的主要内容包括:

Rule_name:规则的名称。

Object_name:规则操作的对象的名称。

Operation_name:对对象执行的操作的名称。

Stream_name:要使用的XStream的名称。

Status:规则的状态,当前规则的状态可以是“ ENABLED(启用)”,“ DISABLED(禁用)”或“ INACTIVE(不活动)”。

Rule_type:规则类型。

Object_type:规则操作的对象类型。

Object_owner:对象所有者。

Source_environment:表或表列的源环境。

Target_environment:表或表列的目标环境。

Source_client_name:源环境的XStream客户端的名称。

Target_client_name:目标环境的XStream客户端的名称。

Source_table_locator:按顺序包含源表的信息:
(1)源数据库名称
(2)源架构名称
(3)源表名称

Target_table_locator:按顺序包含目标表的信息:
(1)目标数据库名称
(2)目标架构名称
(3)目标表名称

To使用ALL_XSTREAM_RULES视图:

1.首先建立连接
sqlplus / as sysdba

2.查询ALL_XSTREAM_RULES表
SELECT * FROM ALL_XSTREAM_RULES;

3,根据需要设置过滤条件,来查询XStream规则使用情况
SELECT * FROM ALL_XSTREAM_RULES WHERE STATUS = ‘ENABLED’;

在Oracle数据库中使用ALL_XSTREAM_RULES视图可以很容易地查询出当前数据库中正在使用的XStream规则,查看当前的XStream规则实现情况。使用ALL_XSTREAM_RULES视图可以帮助更好的管理和处理XStream规则,从而提高Oracle数据库的性能。

官方英文解释

ALL_XSTREAM_RULES displays information about the XStream rules accessible to the current user.

Related View

DBA_XSTREAM_RULES displays information about all XStream server rules in the database.

Column Datatype NULL Description

STREAMS_NAME

VARCHAR2(128)

Name of the XStream process

STREAMS_TYPE

VARCHAR2(12)

Type of the XStream process:

  • CAPTURE

  • APPLY

STREAMS_RULE_TYPE

VARCHAR2(9)

The XStream type of the rule:

  • TABLE

  • SCHEMA

  • GLOBAL

RULE_SET_OWNER

VARCHAR2(128)

Owner of the rule set

RULE_SET_NAME

VARCHAR2(128)

Name of the rule set

RULE_SET_TYPE

CHAR(8)

Type of the rule set:

  • POSITIVE

  • NEGATIVE

RULE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the rule

RULE_NAME

VARCHAR2(128)

NOT NULL

Name of the rule

RULE_TYPE

VARCHAR2(9)

The type of the rule:

  • DML

  • DDL

RULE_CONDITION

CLOB

Current rule condition

SCHEMA_NAME

VARCHAR2(128)

For table and schema rules, the schema name

OBJECT_NAME

VARCHAR2(128)

For table rules, the table name

INCLUDE_TAGGED_LCR

VARCHAR2(3)

Indicates whether to include tagged LCRs (YES) or not (NO)

SUBSETTING_OPERATION

VARCHAR2(6)

For subset rules, the type of operation:

  • INSERT

  • UPDATE

  • DELETE

DML_CONDITION

VARCHAR2(4000)

For subset rules, the row subsetting condition

SOURCE_DATABASE

VARCHAR2(128)

The global name of the database where the LCRs originated. In a PDB, this is the global name of the PDB.

ORIGINAL_RULE_CONDITION

VARCHAR2(4000)

For rules created by the XStream administrative APIs, the original rule condition when the rule was created

SAME_RULE_CONDITION

VARCHAR2(3)

For rules created by the XStream administrative APIs, indicates whether the current rule condition is the same as the original rule condition (YES) or not (NO)

SOURCE_ROOT_NAME

VARCHAR2(128)

The global name of the source root database

SOURCE_CONTAINER_NAME

VARCHAR2(128)

The container name of the database where the transactions originated

See Also:

“DBA_XSTREAM_RULES”


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