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

本站中文解释

Oracle视图ALL_GG_AUTO_CDR_TABLES是Oracle GoldenGate表示自动检测可用来建立流量分发、同步和迁移的源和目标表的视图。可以用ALL_GG_AUTO_CDR_TABLES来检测哪些表可以被用来作为流量分发、同步和迁移的源和目标表,此视图反映了Oracle GoldenGate数据库定义自动识别表的Server端状态。

使用ALL_GG_AUTO_CDR_TABLES时,可以通过指定表名作为参数检索表信息,即可以使用如下语句检索ALL_GG_AUTO_CDR_TABLES视图中表tablename的详细信息:

select *
from ALL_GG_AUTO_CDR_TABLES
where tablename = ‘tablename’;

不止如此,还可以使用该视图检测数据库中已设定的自动识别表的状态及字段信息,以及与该表相关的其它表的字段信息,如将检测ALL_GG_AUTO_CDR_TABLES视图中的表tablename的字段信息如下:

select tablename, fieldname
from ALL_GG_AUTO_CDR_TABLES
where tablename = ‘tablename’;

最后,总结一下,可以使用ALL_GG_AUTO_CDR_TABLES视图来检测哪些表可以用来进行流量分发、同步和迁移,以及检测表的字段信息等。

官方英文解释

ALL_GG_AUTO_CDR_TABLES provides details about tables configured for Oracle GoldenGate automatic conflict detection and resolution (CDR) that are owned by the current user.

Related View

DBA_GG_AUTO_CDR_TABLES provides details about all the tables configured for Oracle GoldenGate automatic conflict detection and resolution (CDR).

Column Datatype NULL Description

TABLE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the table

TABLE_NAME

VARCHAR2(128)

NOT NULL

Table name

RESOLUTION_GRANULARITY

VARCHAR2(6)

Resolution granularity:

  • ROW

  • COLUMN

FETCHCOLS

VARCHAR2(3)

Extract fetchcols configuration:

  • Yes: Extract will fetch non-scalar data

  • No: Extract will not fetch non-scalar data

RECORD_CONFLICTS

VARCHAR2(3)

Monitoring of conflicts:

  • Yes: Conflict info is recorded

  • No: Conflict info is not recorded

USE_CUSTOM_HANDLERS

VARCHAR2(4)

Use of customized or automatic conflict handlers:

  • All: If using custom handlers

  • None: If using automatic handlers

ROW_RESOLUTION_METHODFoot 1

VARCHAR2(18)

 

Indicates which row-level conflict resolution method to use when the old value of the logical change record (LCR) timestamp column is different from the timestamp column value in the table. Possible values:

  • EARLIEST TIMESTAMP: The conflict will be resolved in favor of the LCR when the new value of the LCR timestamp column is less than the timestamp column value in the table
  • LATEST TIMESTAMP: The conflict will be resolved in favor of the LCR when the new value of the LCR timestamp column is greater than the timestamp column value in the table

DELETE_ALWAYS_WINSFoot 1

VARCHAR2(3)

 

When a conflict occurs between a delete operation and another operation, a YES value indicates that the delete operation succeeds and the other operation is discarded, and a NO value indicates that there is no special preference for the delete operation

IGNORE_SITE_PRIORITYFoot 1

VARCHAR2(3)

 

When a conflict occurs between a target table change and a source table change, and SITE PRIORITY has been specified, this value indicates whether SITE PRIORITY should be ignored (YES) or not (NO)

TOMBSTONE_TABLE

VARCHAR2(128)

Tombstone table name (if table has delete tombstoning enabled)

ROW_RESOLUTION_COLUMN

VARCHAR2(128)

NOT NULL

Name of row-level timestamp column

KEY_VERSION_COLUMNFoot 1

VARCHAR2(8)

 

Indicates whether the table contains a hidden column named KEYVER$$, which contains a version timestamp

Possible values:

  • KEYVER$$ – The table contains a KEYVER$$ column
  • NONE – The table does not contain a KEYVER$$ column

EXISTING_DATA_TIMESTAMP

TIMESTAMP(6)

Timestamp to give existing rows when a new timestamp column is added

Footnote 1 This column is available starting with Oracle Database 21c.

See Also:

“DBA_GG_AUTO_CDR_TABLES”


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