SYS_INTEGRATION_ACTIVITY - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

SYS_INTEGRATION_ACTIVITY

SYS_INTEGRATION_ACTIVITY 显示有关已完成集成运行的详细信息。

SYS_INTEGRATION_ACTIVITY 仅对超级用户可见。有关更多信息,请参阅 系统表和视图中的数据可见性

有关零 ETL 集成的信息,请参阅《Amazon Redshift 管理指南》中的使用零 ETL 集成

表列

列名称 数据类型 描述
integration_id character(128) 与集成关联的标识符。
target_database character(128) Amazon Redshift 中接收集成数据的数据库。
source character(128) 集成的源数据。可能的类型包括 MySQLPostgreSQL
checkpoint_name character(128) 复制二进制日志坐标的检查点的名称。
checkpoint_type character(16) 检查点的类型。可能的值包括:snapshotcdc
checkpoint_bytes bigint 此检查点中的字节数。
last_commit_timestamp 时间戳 上次在此检查点中提交的时间戳。
modified_tables 整数 在检查点中修改的表的数量。
integration_start_time time 此检查点的集成开始时间 (UTC)。
integration_end_time time 此检查点的集成结束时间 (UTC)。

示例查询

以下 SQL 命令显示集成日志。

select * from sys_integration_activity; integration_id | target_database | source | checkpoint_name | checkpoint_type | checkpoint_bytes | last_commit_timestamp | modified_tables | integration_start_time | integration_end_time --------------------------------------+-----------------+--------+---------------------------------------------+------------------+------------------+-------------------------+-----------------+----------------------------+---------------------------- 76b15917-afae-4447-b7fd-08e2a5acce7b | demo1 | MySQL | checkpoints/checkpoint_3_241_3_510.json | cdc | 762 | 2023-05-10 23:00:14.201 | 1 | 2023-05-10 23:00:45.054265 | 2023-05-10 23:00:46.339826 76b15917-afae-4447-b7fd-08e2a5acce7b | demo1 | MySQL | checkpoints/checkpoint_3_16329_3_17839.json | cdc | 13488 | 2023-05-11 01:33:57.411 | 2 | 2023-05-11 02:19:09.440121 | 2023-05-11 02:19:16.090492 76b15917-afae-4447-b7fd-08e2a5acce7b | demo1 | MySQL | checkpoints/checkpoint_3_5103_3_5532.json | cdc | 1657 | 2023-05-10 23:13:14.205 | 2 | 2023-05-10 23:13:23.545487 | 2023-05-10 23:13:25.652144