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

本站中文解释

Oracle视图DBA_HIST_REPLICATION_TBL_STATS用于确定复制传输的表的状态。可以在ASE平台的维护工作中查看表之间复制的情况,以检测传输状况是否健康,明确大量传输不健康的表。

它还具有查询复制运行状况的功能,可以查看每张表上一次成功复制事件发生时间,以及每个表上复制事务累计数量。在N和P两方数据库之间有很多数据传输时,这样就可以查出哪些表的传输健康,哪些不健康。

使用Oracle视图DBA_HIST_REPLICATION_TBL_STATS时,可以使用联接操作查询其中的信息,也可以通过DBA_HIST_SNAPSHOT视图查询基于SNAPSHOT的信息。

如下所示的查询可以检索DBA_HIST_REPLICATION_TBL_STATS视图中的数据:

SELECT TABLE_NAME,SNAP_ID,TIME ,TOTAL_UPDATES
FROM
DBA_HIST_REPLICATION_TBL_STATS,
DBA_HIST_SNAPSHOT
WHERE
DBA_HIST_REPLICATION_TBL_STATS.SNAP_ID =
DBA_HIST_SNAPSHOT.SNAP_ID;

官方英文解释

DBA_HIST_REPLICATION_TBL_STATS displays replication table statistics for Oracle GoldenGate and XStream sessions. This view is intended for use with Automatic Workload Repository (AWR).

Column Datatype NULL Description

SNAP_ID

NUMBER

NOT NULL

Unique snapshot ID

DBID

NUMBER

NOT NULL

Database ID for the snapshot

INSTANCE_NUMBER

NUMBER

NOT NULL

Instance number for the snapshot

APPLY_NAME

VARCHAR2(128)

NOT NULL

Name of the apply process

TABLE_NAME

VARCHAR2(128)

NOT NULL

Name of the table

TABLE_OWNER

VARCHAR2(128)

NOT NULL

Owner of the table

SESSION_MODULE

VARCHAR2(64)

NOT NULL

Session module. Valid values:

  • XStream

  • GoldenGate

TOTAL_INSERTS

NUMBER

Number of insert operations on this table processed by this apply server

TOTAL_UPDATES

NUMBER

Number of update operations on this table processed by this apply server

TOTAL_DELETES

NUMBER

Number of delete operations on this table processed by this apply server

CDR_SUCCESSFUL

NUMBER

Number of successfully resolved conflicts

CDR_FAILED

NUMBER

Number of conflicts that could not be resolved due to an error during resolution

REPERR_CNT

NUMBER

The total number of errors for the replication operation

HANDLE_COLLISIONS

NUMBER

Number of collisions on this table handled by this apply server

CON_DBID

NUMBER

The database ID of the PDB for the sampled session

CON_ID

NUMBER

The ID of the container that CON_DBID identifies. Possible values include:

  • 0: This value is used for rows containing data that pertain to the entire CDB. This value is also used for rows in non-CDBs.

  • 1: This value is used for rows containing data that pertain to only the root

  • n: Where n is the applicable container ID for the rows containing data


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