如何检查 Golden Gate 延迟或同步状态?

How to check Golden Gate Lag or Syncing status?

我正在尝试通过以下查询获取结果,但是否有任何其他方法可以获得实时金门同步状态?

SELECT delgroup,
     EXTRACT (DAY FROM SYSTIMESTAMP - update_timestamp) * 24 * 3600
   + EXTRACT (HOUR FROM SYSTIMESTAMP - update_timestamp) * 3600
   + EXTRACT (MINUTE FROM SYSTIMESTAMP - update_timestamp) * 60
   + EXTRACT (SECOND FROM SYSTIMESTAMP - source_commit)
      lag_update,totallag

从GG_LOAD.GGS_HEARTBEAT

您可以登录 ggs 实用程序并提供

GGSCI> Info replicat (or) info all -> for all extracts/replicat status

在结果中,您可以看到列名称“lag at chkpt”,如果同步出现问题,您会在其中看到延迟。

下面的查询会给出滞后状态。

SELECT delgroup,
     EXTRACT (DAY FROM SYSTIMESTAMP - update_timestamp) * 24 * 3600
   + EXTRACT (HOUR FROM SYSTIMESTAMP - update_timestamp) * 3600
   + EXTRACT (MINUTE FROM SYSTIMESTAMP - update_timestamp) * 60
   + EXTRACT (SECOND FROM SYSTIMESTAMP - source_commit)
      lag_update,totallag